Skip to content
Skip to Content

Read the audit log

GET
/audit

Every change in the organization, newest first: who made it (a person, or the person behind an API key), when, from where, and what changed. Owner and admins only.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Query parameters

projectId?string
actorId?string

A person's user id.

Lengthlength <= 200
action?string

An action such as service.update, or a resource such as service for all of its actions.

Lengthlength <= 100
resourceId?string
Lengthlength <= 200
since?string

From this time on (ISO 8601).

Lengthlength <= 40
until?string

Before this time (ISO 8601).

Lengthlength <= 40
limit?integer

How many items to return, 1 to 100. Default 50.

Range1 <= value <= 100
cursor?string

The nextCursor of the previous page.

Lengthlength <= 500

Response body

Read the audit log

application/json
  1. response
data*array<>
nextCursor*|

Pass as cursor for the next page; null on the last.

Example request
curl "https://openpanel.sh/api/v1/audit" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "createdAt": "2019-08-24T14:15:22Z",      "actorType": "user",      "actorId": "string",      "actorLabel": "string",      "keyId": "468bcefd-6536-4844-8249-aff3ecb2ef7b",      "action": "string",      "resourceType": "string",      "resourceId": "string",      "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",      "before": null,      "after": null,      "ip": "string"    }  ],  "nextCursor": "string"}