Skip to content

Retrieve an audit log export file

Request

Plans:Enterprise

Download the file generated by an audit log export job. The file is available only after the export job completes. While the job status is IN_PROGRESS or FAILED, this endpoint returns 404.

Security
ApiKey
Path
orgIdstring^org_[0-9abcdefghjkmnpqrstvwxyz]{26}$required
Organization ID.
Example:org_01h1s5z6vf2mm1mz3hevnn9va7
exportJobIdstring^exp_[0-9abcdefghjkmnpqrstvwxyz]{26}$required
Export Job ID.
Example:exp_01h1s5z6vf2mm1mz3hevnn9va7
Headers
x-redocly-clientstring^[a-z0-9-]{1,64}/[\w.+-]{1,32}$

Identifies the calling client as <name>/<version>, for example reunite-ui/0.92.1. Used for API consumer observability. Requests without it are attributed as unknown.

Example:reunite-ui/0.92.1
curl -i -X GET \
  https://redocly.com/_mock/docs/platform/customization/reunite-api/openapi/orgs/org_01h1s5z6vf2mm1mz3hevnn9va7/audit-log-export-results/exp_01h1s5z6vf2mm1mz3hevnn9va7 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'x-redocly-client: reunite-ui/0.92.1'

Responses

Export file. Media type matches the format from the create-job request.

Headers
Content-Dispositionstring

Attachment hint for browsers and HTTP clients. Suggested filename: {exportJobId}.json or {exportJobId}.csv.

Example:"attachment; filename=\"exp_01hh1t9sa6gwfv5naz04gr7ehm.json\""
Body
Array [
idstringrequired
Unique event identifier.
Example:"evt_2fxb8r4kq7m3ndp9z6ja501"
objectstringread-only
Entity name.
Value:"event"
typestring(AuditLogEventType)required

CloudEvent type value emitted for an audit-loggable action. Only events whose type is in this list are returned by the audit log export endpoints.

Enum:"com.redocly.apiKey.created""com.redocly.apiKey.updated""com.redocly.apiKey.revoked""com.redocly.gitIdentity.linked""com.redocly.gitIdentity.unlinked""com.redocly.gitIdentity.removed""com.redocly.scimCredential.created""com.redocly.scimCredential.revoked""com.redocly.invite.created""com.redocly.invite.resent"
Example:"com.redocly.pullRequest.created"
timestring, (date-time)

Event timestamp (ISO 8601).

Example:"2026-04-15T14:43:08.172Z"
subjectstring
Subject URI or resource ID the event refers to.
Example:"pr_7wnk3jm9xp2d4rv8qh5a01"
projectIdstring(id)^prj_[0-9abcdefghjkmnpqrstvwxyz]{26}$read-only

Project ID. Unique identifier prefixed with prj_.

Example:"prj_01hh1t9sa6gwfv5naz04gr7ehm"
projectSlugstring(slug)
Project slug.
Example:"project_red-owl-352"
clientIpstring
IP address of the client that triggered the event.
Example:"198.51.100.42"
actornull or object
One of:
null
]
Response
[ { "id": "evt_2fxb8r4kq7m3ndp9z6ja501", "object": "event", "type": "com.redocly.pullRequest.created", "time": "2026-03-31T15:27:30.815Z", "subject": "pr_7wnk3jm9xp2d4rv8qh5a01", "actor": { … }, "clientIp": "198.51.100.42", "projectId": "prj_01hh1t9sa6gwfv5naz04gr7ehm", "projectSlug": "my-project" } ]