Skip to content

Users Endpoint Reference

The Users endpoint allows you to create, read, update, and delete user records.

GET /v2/users

Query Parameters:

ParameterTypeDescription
limitintegerNumber of results (1-100, default: 20)
offsetintegerPagination offset
statusstringFilter by status: active, inactive

Example:

Terminal window
curl -X GET "https://api.acme.com/v2/users?limit=10&status=active" \
-H "Authorization: Bearer YOUR_API_KEY"

Response:

{
"data": [
{
"id": "usr_abc123",
"email": "alice@example.com",
"name": "Alice Smith",
"status": "active",
"created_at": "2024-01-10T08:00:00Z"
}
],
"has_more": true,
"total": 150
}
GET /v2/users/{id}
Terminal window
curl -X GET "https://api.acme.com/v2/users/usr_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
POST /v2/users
Terminal window
curl -X POST "https://api.acme.com/v2/users" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "bob@example.com",
"name": "Bob Jones"
}'
PATCH /v2/users/{id}
DELETE /v2/users/{id}