Read the audit log

GET
/audit

The organization's audit trail, including actions taken by API keys and applications. audit:read is admin-only and is never granted by a wildcard.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key from Settings > API access, sent as Authorization: Bearer sp_live_.... Send exactly one credential per request; a request carrying both a bearer token and a session cookie is rejected rather than resolved by precedence.

In: header

Query Parameters

pageNumber?integer

1-based page number.

Range1 <= value
Default1
pageSize?integer

Page size. Clamped server-side, so a very large value returns the maximum.

Range1 <= value
Default20
action?string
resourceType?string
startDate?string
Formatdate-time
endDate?string
Formatdate-time

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/audit"
{  "currentPage": 0,  "pageSize": 0,  "totalCount": 0,  "data": [    {      "id": "string",      "action": "string",      "resourceType": "string",      "resourceId": "string",      "userId": "string",      "principalRef": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ]}

Last updated on