Skip to content

Export the audit log as CSV or JSONL, in chain order and streamed (owner or admin)

GET
/v1/orgs/{org}/audit-log/export
curl --request GET \
--url 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/audit-log/export?actorType=user&from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z&format=csv'

Same filters as the list query. The export is recorded in the audit log (audit.exported) before it starts and includes itself. Only one export at a time per organization (409 audit_export_in_progress); a from–to range of at most 366 days is required. Each JSONL line includes canonical, the exact text that is signed: hash = SHA-256(prevHash || canonical). In CSV, a text starting with = + - @ is prefixed with an apostrophe.

org
required
string
/^org_[a-z0-9]{26}$/

Example

org_01hx0000000000000000000000
actorType
string
Allowed values: user api_key ai system flow import
actorId
string
<= 64 characters
action
string
<= 128 characters
targetType
string
<= 64 characters
targetId
string
<= 64 characters
brandId
string
<= 64 characters
from
required

From (inclusive), ISO 8601. Required

string format: date-time

From (inclusive), ISO 8601. Required

to
required

To (exclusive), ISO 8601. Required; at most 366 days after from

string format: date-time

To (exclusive), ISO 8601. Required; at most 366 days after from

format

Defaults to csv

string
Allowed values: csv jsonl

Defaults to csv

Streamed file

string

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Conflict

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}