GET - Users
GET
/api/public/usersList all users
Retrieves a paginated list of users from the TechWriter Platform. Use query parameters such as top, skip, orderby, select, filter, and count to paginate, sort, filter, and shape the response.
In production integrations, count is frequently combined with top and skip to calculate total pages for dashboard pagination.
Query parameters
Request headers
Response fields
Returned on a successful 200 OK response.
Response codes
The API uses conventional HTTP status codes. Codes in the 2xx range indicate success, 4xx indicate client errors, and 5xx indicate server-side issues.
Was this section helpful?
Example request
curl -X GET "{{env_base_uri}}/api/public/users?count=true&top=2" \
-H "Authorization: Bearer {YOUR_BEARER_TOKEN}" \
-H "Accept: */*"Example response
200 OKUsers retrieved successfully.
{
"data": {
"totalCount": 150,
"items": [
{
"userId": 12734,
"email": "john.doe@techwriter.io",
"firstName": "John",
"lastName": "Doe",
"isActive": true,
"role": "admin",
"createdAt": "2024-01-15T09:00:00+00:00",
"lastLogin": "2026-04-08T14:20:11+00:00"
},
{
"userId": 5892,
"email": "jane.smith@techwriter.io",
"firstName": "Jane",
"lastName": "Smith",
"isActive": true,
"role": "editor",
"createdAt": "2024-02-10T11:30:45+00:00",
"lastLogin": null
}
]
},
"success": true
}Pagination tip
Combine count=true with top and skip to drive paginated tables. Divide data.totalCount by your page size to get the total page count.