curl --request GET \
--url https://api.dock.us/{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": "[email protected]",
"name": "John Doe"
}
}
}Retrieve a user by ID
curl --request GET \
--url https://api.dock.us/{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": "[email protected]",
"name": "John Doe"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier
"RiHO4e0Ju3DS"
Select the user properties that should be returned
firstName, lastName, avatar, email, name, createdAt, updatedAt User
Show child attributes
Show child attributes
Id of the object
"RiHO4e0Ju3DS"
Last updated date
"2021-01-01T00:00:00.000Z"
Created at date
"2021-01-01T00:00:00.000Z"
Type of the object
user "user"
URL to the resource
"https://api.dock.us/v1/users/RiHO4e0Ju3DS"
First name of the user
"John"
Last name of the user
"Doe"
Avatar of the user
"https://dock.us/avatar.png"
Email of the user
Name of the user
"John Doe"