CentralCSP
APIAudit Logs

List audit logs

Lists administrative changes made in this workspace, newest first: role changes, invitations, website and access changes, group edits, and API key activity. Each entry names who did it, what was affected, and carries the details of the change. Entries are never edited or deleted. Filter by action, actor, target, or time range, or search across all of them with search.

Requires the admin role on the workspace.

GET
/v1/workspaces/{workspaceId}/audit-logs

Authorization

AuthorizationBearer <token>

An OpenID Connect access token issued by Keycloak, acting as the signed-in user.

In: header

Path Parameters

workspaceId*string

Query Parameters

cursor?string

The nextCursor of the previous page. Omit it to start from the beginning. A cursor encodes a position and is not meant to be built by hand.

limit*|

How many items to return, from 1 to 200.

Range1 <= value <= 200
Default50
action?||||||||||||||||||||||||||||||||||||||

Only entries for this action. Send an empty string for all.

actorId?string

Only changes made by this user.

targetType?|||||||||||

Only entries about this kind of thing. Send an empty string for all.

targetId?string

Only entries about this specific thing.

from?string

Only entries at or after this time.

Formatdate-time
to?string

Only entries at or before this time.

Formatdate-time
search?string

Match part of the action, the target, or the actor's name or email.

Response Body

application/json

curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/audit-logs?limit=50"
{  "data": [    {      "id": "string",      "workspaceId": "string",      "actorId": "string",      "actor": {        "email": "string",        "firstName": "string",        "lastName": "string",        "picture": "string"      },      "action": "member.role_updated",      "targetType": "member",      "targetId": "string",      "metadata": {},      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "nextCursor": "string",    "hasMore": true,    "total": 0  }}