User List API
User APIs
User List API
Retrieve a paginated list of users in your organization
User List 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
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Filter users by name (partial match). Min 1, Max 100 characters. |
limit | integer | No | Number of records to return. Min 1, Max 100. |
cursor | string | No | Cursor for pagination. Default 0. |
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 list response data |
data.users | array | List of users |
data.users[].id | string | Unique identifier for the user |
data.users[].name | string | Full name of the user |
data.context | object | Pagination metadata |
data.context.hasMore | boolean | Indicates whether there are more users to fetch |
data.context.nextCursor | number | Cursor to fetch the next page |
Response Example
Error Responses
Validation Error
HTTP Status:400 Bad Request
Authentication Errors
HTTP Status:401 Unauthorized
Permission Errors
HTTP Status:403 Forbidden
Internal Error
HTTP Status:500 Internal Server Error
Best Practices
- Use the
idreturned for a user as the input to the User Details API for full user information - Use
nameto narrow down results — partial matching is supported (e.g.,JohnmatchesJohn Doe,Johnny) - Use
cursorandlimittogether to paginate;nextCursorfrom the response can be used as thecursorvalue for the next call