Query Audit Events

GEThttps://sandbox-api.truthlocks.com/v1/auditAuth required

Returns audit events for the authenticated tenant. Filter by actor, action, resource type, or time range.

Query Parameters

actor_idstring

Filter by user or API key ID

actionstring

Filter by action (e.g., attestation.mint)

resource_typestring

Filter by resource type (attestation, issuer, user)

fromdatetime

Start of time range (ISO 8601)

todatetime

End of time range (ISO 8601)

limitinteger

Max events to return (default 50)

Defaults to 50

Responses

{
  "items": [
    {
      "id": "evt_abc123",
      "tenant_id": "440e8400-e29b-41d4-a716-446655440000",
      "actor_id": "user-uuid",
      "actor_type": "USER",
      "action": "attestation.mint",
      "resource_type": "attestation",
      "resource_id": "660e8400-e29b-41d4-a716-446655440001",
      "metadata": {
        "issuer_id": "550e8400-e29b-41d4-a716-446655440000",
        "claim": "email_verified"
      },
      "timestamp": "2026-01-13T12:00:00Z"
    }
  ],
  "next_cursor": "eyJsYXN0X2lkIjoiZXZ0X2FiYzEyMyJ9"
}
GET/v1/audit
Language
CredentialsHEADER
Authorization
cURL Request
Examples ▾
curl --request GET \
  --url https://sandbox-api.truthlocks.com/v1/audit \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{}'
Response

Click Try It! to send a real request, or view sample responses: