Users
Use the Users resource to create, retrieve, list, and update user accounts within the SecurityPro Access API.
Create a user
Section titled “Create a user”Endpoint
POST /users
Request body
Section titled “Request body”{ "email": "maya.chen@example.com", "first_name": "Maya", "last_name": "Chen", "status": "active"}Example response
Section titled “Example response”{ "id": "usr_1024", "email": "maya.chen@example.com", "first_name": "Maya", "last_name": "Chen", "status": "active", "created_at": "2026-03-01T10:15:22Z"}Get a user
Section titled “Get a user”Endpoint
GET /users/{user_id}
Example:
curl https://sandbox-api.securitypro.dev/v1/users/usr_1024 \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"List users
Section titled “List users”Endpoint
GET /users
Query parameters
Section titled “Query parameters”| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status |
page | integer | Page number |
limit | integer | Number of records per page |
email | string | Filter by email |
Example:
GET /users?status=active&page=1&limit=25Update a user
Section titled “Update a user”Endpoint
PATCH /users/{user_id}
Request body
Section titled “Request body”{ "status": "suspended"}