Skip to content

The audit log of the organization: who changed what, newest first, for 90 days

Resource, request and plan limits are listed on Limits.

Download OpenAPI specification · Version 0.1.0

Read the audit log

GET
/audit

Returns the mutations of the organization, newest first, with the actor, action, target, time and client address of each. Filters combine with AND; each query parameter narrows the list.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Query Parameters

limit?string

The most rows to return: 1 to 200, 50 by default; any other value answers 400 invalid_limit.

cursor?string

The next_cursor of the previous page; an unreadable value answers 400 invalid_cursor.

action?string

Only the rows of this action, such as project.create; omitted, every action is listed.

actor?string

Only the rows of this actor, exactly: user:<id>, key:<id>, node:<name>, operator or system; an empty value answers 400 invalid_actor, and an omitted one lists every actor.

from?string

Only the rows at or after this time, in Unix epoch milliseconds; a value that is not a non-negative whole number answers 400 invalid_range.

to?string

Only the rows before this time, in Unix epoch milliseconds; a value that is not a non-negative whole number answers 400 invalid_range.

Response Body

One page of the audit log of the organization.

application/json
  1. response

One page of the audit log of the organization.

entries*array<>

The audit rows of the organization, newest first; a row older than 90 days is deleted by the daily sweep.

next_cursor*|

The opaque cursor of the next page, or null on the last page; send it back as cursor.

Example Request
curl -X GET 'https://api.slashinfra.com/audit'
Example Response
{  "entries": [    {      "action": "project.create",      "actor": "user:8Xk2mQ4pLd",      "at_ms": 1767225600000,      "details": {        "name": "staging"      },      "id": "6f1c0f0e8a",      "ip": "203.0.113.9",      "target": "project:proj_6f1c0f0e8a"    }  ],  "next_cursor": "MTc2NzIyNTYwMDAwMCw2ZjFjMGYwZThh"}