NextPay Docs
API Reference

Audit

Audit API endpoints

GET /audit

List audit log entries

Authentication: Bearer token required

Query Parameters

ParameterTypeRequiredDescription
workspace_idstringYesWorkspace ID
limitintegerNoNumber of entries to return (1-100, default 25)
cursorstringNoPagination cursor from previous response
actorstringNoFilter by actor ID
actionstringNoFilter by action type
resource_typestringNoFilter by resource type

Responses

200 — List of audit log entries

FieldTypeRequiredDescription
okbooleanYes
dataarrayYes
cursorstringNo
has_morebooleanYes
{
  "ok": true,
  "data": [
    {
      "id": "aud_abc123",
      "action": "iam.member.role_assigned",
      "actor_name": "Don Masakayan",
      "actor_email": "don@nextfinancial.io",
      "description": "Assigned role admin to Maria Santos",
      "outcome": "success",
      "timestamp": 1742472000000
    }
  ],
  "cursor": "eyJwb3Mi...",
  "has_more": true
}

Example

curl \
  -H "Authorization: Bearer YOUR_TOKEN" \
  https://api.nextpay.world/v1/audit?workspace_id=YOUR_WORKSPACE_ID

On this page