List Users
Fetch the members of your workspace — including deactivated users — so you can map the userId
values returned by On-Call History to people. Deactivated users are included
because they can still appear in past on-call spans.
Request
GET https://api.oppex.ai/client/users/public
Send your API key in the X-API-KEY header. All parameters are optional.
curl -G "https://api.oppex.ai/client/users/public" \
-H "X-API-KEY: <your-api-key>"
Query parameters
| Parameter | Description |
|---|---|
pageNumber | Page to return, starting at 1 (the default). |
pageSize | Results per page, between 1 and 100. Default is 50. |
Response
{
"success": true,
"statusCode": 200,
"message": "Users retrieved successfully",
"data": {
"items": [
{ "userId": 1001, "name": "Alice Chen", "active": true },
{ "userId": 1002, "name": "Raj Patel", "active": true },
{ "userId": 1008, "name": "Sam Rivera", "active": false }
],
"totalCount": 3,
"pageNumber": 1,
"pageSize": 50
}
}
Response fields
| Field | Description |
|---|---|
items[].userId | Numeric user id. Matches the userId fields in On-Call History and List On-Call Schedules. |
items[].name | Display name. |
items[].active | false for a deactivated user. They can still appear in past on-call history — include them in your id-to-name map. |
totalCount | Total number of workspace members across all pages. |
pageNumber | The page returned. |
pageSize | Results per page as requested. |
Results are ordered by userId. To fetch all users, repeat with pageNumber from 1 up to
ceil(totalCount / pageSize).
Errors
| Status | When |
|---|---|
400 | pageNumber or pageSize is out of range. |
401 | The API key is missing, wrong, or disabled. See API Keys. |
500 | Something went wrong in Oppex. Retry. If it keeps happening, contact support with the message. |