Supercheck LogoSupercheck
Audit API

Get audit logs

View audit trail of organization actions. Requires admin permissions.

GET
/api/audit

Authorization

bearerAuth
AuthorizationBearer <token>

CLI token (sck_live_*) for full API access, or trigger key (sck_trigger_* / legacy job_*) for job trigger endpoint only.

In: header

Query Parameters

page?integer

Page number for pagination

Default1
Range1 <= value
limit?integer

Items per page

Default20
Range1 <= value <= 100
action?string

Filter by action type

Response Body

application/json

application/json

application/json

curl -X GET "https://demo.supercheck.dev/api/audit"
{
  "success": true,
  "data": {
    "logs": [
      {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "action": "string",
        "details": {},
        "createdAt": "2019-08-24T14:15:22Z",
        "user": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string",
          "email": "string"
        }
      }
    ],
    "pagination": {
      "currentPage": 0,
      "totalPages": 0,
      "totalCount": 0,
      "limit": 0,
      "hasNext": true,
      "hasPrev": true
    },
    "filters": {
      "actions": [
        "string"
      ]
    }
  }
}
{
  "error": "Unauthorized"
}
{
  "error": "string"
}
Empty