Admiral

Users

Retrieve a user by ID

GET
/v1/users/{user_id}

Scope: user:read

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Path Parameters

user_id*user_id

The unique identifier of the user.

Match^usr-[0-9a-z]+$

Response Body

application/json

curl -X GET "https://example.com/v1/users/string"
{  "user": {    "id": "string",    "email": "string",    "email_verified": true,    "display_name": "string",    "given_name": "string",    "family_name": "string",    "avatar_url": "string",    "created_at": "2023-01-15T01:30:15.01Z",    "updated_at": "2023-01-15T01:30:15.01Z",    "role": "USER_ROLE_UNSPECIFIED",    "status": "USER_STATUS_UNSPECIFIED"  }}