Quickstart
This quickstart shows how to authenticate and make your first successful API request.
Obtain an access token
Section titled “Obtain an access token”curl -X POST https://sandbox-api.securitypro.dev/v1/auth/token \ -H "Content-Type: application/json" \ -d '{ "client_id": "sp_demo_client", "client_secret": "sp_demo_secret", "grant_type": "client_credentials" }'Save the access_token from the response.
Retrieve a user
Section titled “Retrieve a user”Endpoint
GET /users/{user_id}
Example request
Section titled “Example request”curl https://sandbox-api.securitypro.dev/v1/users/usr_1024 \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"Example response
Section titled “Example response”{ "id": "usr_1024", "email": "maya.chen@example.com", "status": "active", "created_at": "2026-03-01T10:15:22Z", "roles": [ { "id": "role_admin", "name": "Administrator" } ]}Next steps
Section titled “Next steps”After authentication, you can:
- Create and manage users
- Assign and remove roles
- Retrieve audit events
- Integrate the API into internal workflows