GET
/
users
/
{id}
curl --request GET \
  --url https://api.dock.so:4000/{version}/users/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "user": {
      "id": "RiHO4e0Ju3DS",
      "updatedAt": "2021-01-01T00:00:00.000Z",
      "createdAt": "2021-01-01T00:00:00.000Z",
      "object": "user",
      "url": "https://api.dock.us/v1/users/RiHO4e0Ju3DS",
      "firstName": "John",
      "lastName": "Doe",
      "avatar": "https://dock.us/avatar.png",
      "email": "john.doe@example.com",
      "name": "John Doe"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier

Example:

"RiHO4e0Ju3DS"

Query Parameters

properties
enum<string>[]

Select the user properties that should be returned

Available options:
firstName,
lastName,
avatar,
email,
name,
createdAt,
updatedAt

Response

200
application/json
User
data
object