Users
Retrieve a user
Get detailed information about a specific user by their ID.
The Retrieve a User endpoint lets you fetch details about a specific user. This is useful for displaying account details, verifying ownership, or managing users in your application.
Endpoint
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
user_id | string | Yes | The unique identifier of the user to retrieve. |
Headers
Key | Value | Required |
---|---|---|
Authorization | Bearer <access_token> | Yes |
Response
Successful Response (200 OK)
ield | Type | Description |
---|---|---|
id | string | Unique identifier for the user. |
string | The user’s email address. | |
name | string | Full name of the user. |
status | string | Current account status (active, suspended, pending). |
created_at | string | ISO 8601 timestamp when the user was created. |
updated_at | string | ISO 8601 timestamp when the user was last updated. |
Error Response (404 / 401)
Error Code | Meaning |
---|---|
not_found | No user exists with the given ID. |
unauthorized | Missing or invalid access token. |
Example Usage
cURL
JavaScript (Fetch)
You can only retrieve users your access token is authorized to view. Admin tokens may have wider access than standard user tokens.