API Reference
Audit
Audit API endpoints
GET /audit
List audit log entries
Authentication: Bearer token required
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspace_id | string | Yes | Workspace ID |
limit | integer | No | Number of entries to return (1-100, default 25) |
cursor | string | No | Pagination cursor from previous response |
actor | string | No | Filter by actor ID |
action | string | No | Filter by action type |
resource_type | string | No | Filter by resource type |
Responses
200 — List of audit log entries
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | Yes | |
data | array | Yes | |
cursor | string | No | |
has_more | boolean | Yes |
{
"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