Skip to content

/audit

GET
/audit
curl --request GET \
--url 'https://pki.example.com/api/v1/audit?status=success&limit=100&offset=0' \
--header 'Authorization: Bearer <token>'

Get audit log entries with filtering

operation
string

Filter by operation (e.g., ca.create, certificate.issue)

entityType
string

Filter by entity type (ca, certificate, audit, report)

entityId
string

Filter by specific entity ID

status
string
Allowed values: success failure

Filter by status

startDate
integer

Filter by start date (Unix timestamp)

endDate
integer

Filter by end date (Unix timestamp)

limit
integer
default: 100 >= 1 <= 200

Maximum number of items to return

offset
integer
0

Number of items to skip

Default Response

Media typeapplication/json
object
items
Array<object>
object
id
string
timestamp
string format: date-time
operation
string
entityType
string
entityId
string
nullable
ipAddress
string
nullable
status
string
Allowed values: success failure
details
object
actorType

Kind of caller that did the action; null for rows written before actors were recorded

string
nullable
Allowed values: user integration ssh_token anonymous
actorId

OIDC subject, integration id or SSH fleet token id

string
nullable
actorName

Readable name: preferred_username/email, integration name, token name or anonymous

string
nullable
totalCount
integer
pagination
object
limit
integer
offset
integer
hasMore
boolean

Example

{
"items": [
{
"status": "success",
"actorType": "user"
}
]
}

Default Response

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}
}

Default Response

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}
}