Description
Retrieve details of a specific user.
Request
HTTP Method: GET
Query Parameter | Description |
---|---|
N/A |
Path Parameter | Description |
---|---|
user-id | ID of the user. |
curl -X GET \
https://<tenant-name>.tines.io/api/v1/admin/users/<user-id> \
-H 'content-type: application/json' \
-H 'x-user-email: <email-address>' \
-H 'x-user-token: <api-token>'
Response
A successful request will return a JSON object describing the User.
Field description
Parameter | Description |
---|---|
id | User ID. |
User email. | |
admin | Boolean flag indicating whether user is an admin. |
created_at | Timestamp describing when the user was created. |
updated_at | Timestamp describing when the user was last updated. |
story_count | Number of stories created by the user. |
first_name | User first name. |
last_name | User last name. |
last_seen | Timestamp describing when the user was last seen in the platform. |
Sample response
{
"id": 2,
"email": "alice@tines.xyz",
"created_at": "2019-07-08T14:16:11.967Z",
"updated_at": "2019-10-31T21:40:52.682Z",
"admin": false,
"story_count": 0,
"first_name": "Alice",
"last_name": "Smith",
"last_seen": "2019-10-31T21:40:42.000Z"
}