Skip to content

SecurityPro Access API Reference

Detailed API reference for authentication, user management, roles, and audit events.

API Documentation

Make your first request:

Terminal window
curl -X GET "https://api.securitypro.com/v1/users" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"

200 OK

Example Response

{
"data": [
{
"id": "usr_1024",
"email": "user@example.com",
"role": "admin",
"status": "active",
"created_at": "2026-01-15T10:24:32Z"
}
],
"meta": {
"request_id": "req_9f8a7b6c",
"pagination": {
"limit": 10,
"offset": 0,
"total": 1
}
}
}

Common Errors

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API token."
}
}
401 Unauthorized — Ensure the Authorization header includes a valid bearer token.
{
"error": {
"code": "not_found",
"message": "Resource not found."
}
}
404 Not Found — The requested resource does not exist or has been removed.
{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Please retry later."
}
}
429 Too Many Requests — You have exceeded the allowed request rate.

Authentication

Obtain a bearer token and securely authorize requests.

Users API

Create, retrieve, list, and update users through the API.

Roles API

Create, assign, and manage role-based access controls.

Audit Events API

Access audit logs for security monitoring, compliance, and investigation.