User Details API
User APIs
User Details API
Retrieve user details for a specific its identifier
User Details API
Documentation Index
Fetch the complete documentation index at: https://docs.pazy.io/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
All requests require an API key in the request headers. Headers:Request
Content-Type:application/json
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique identifier of the User to retrieve. If you pass ‘me’ as param, it gives your details |
Code Examples
Success Response
HTTP Status:200 OK
Response Fields:
| Field | Type | Description |
|---|---|---|
ok | boolean | Indicates whether the request was successful |
data | object | Contains the user response data |
data.id | string | Unique identifier for the user |
data.name | string | Name of the user |
data.email | string | Email address of the user |
data.role | string | Role of the user in the organization e.g. ADMIN, MEMBER |
data.organization | object | Information about the user’s organization |
data.organization.id | string | Unique identifier for the organization |
data.organization.name | string | Name of the organization |
Response Example
Error Responses
Missing User ID
HTTP Status:400 Bad Request
User Not Found
HTTP Status:404 Not Found
Access Denied
HTTP Status:403 Forbidden
Authentication Errors
HTTP Status:401 Unauthorized
Permission Errors
HTTP Status:403 Forbidden
Best Practices
Access Control
- Only your data you can view. You can view all users data, only if you are ‘admin’.