Skip to main content
GET
List audit records

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>. The token may be a Sourcebot API key, OAuth access token, or scoped access token, subject to endpoint requirements.

Query Parameters

since
string<date-time>

Return records at or after this timestamp (ISO 8601).

until
string<date-time>

Return records at or before this timestamp (ISO 8601).

page
integer
default:1
Required range: x > 0
perPage
integer
default:50
Required range: 0 < x <= 100

Response

Paginated audit log.

id
string
required
timestamp
string<date-time>
required
action
string
required

The audited action (e.g. user.read, user.delete, audit.fetch).

actorId
string
required
actorType
string
required
actorLabel
string | null
required

Display name of the actor when the event was recorded (e.g. a user's email or an API key's name).

targetId
string
required
targetType
string
required
targetLabel
string | null
required

Display name of the target when the event was recorded.

sourcebotVersion
string
required
metadata
object | null
required
orgId
number
required