Users Endpoint Reference
The Users endpoint allows you to create, read, update, and delete user records.
List Users
Section titled “List Users”GET /v2/usersQuery Parameters:
| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of results (1-100, default: 20) |
offset | integer | Pagination offset |
status | string | Filter by status: active, inactive |
Example:
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 User
Section titled “Get User”GET /v2/users/{id}curl -X GET "https://api.acme.com/v2/users/usr_abc123" \ -H "Authorization: Bearer YOUR_API_KEY"Create User
Section titled “Create User”POST /v2/userscurl -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" }'Update User
Section titled “Update User”PATCH /v2/users/{id}Delete User
Section titled “Delete User”DELETE /v2/users/{id}