Audit logs record the actions performed in your Redocly organization. Each event includes details such as who performed the action, what the action was, and when it happened.
Reunite has no audit logs page. Export the audit logs through the Reunite API as a JSON or CSV file, then load it into your Security Information and Event Management tools, or keep it as evidence for a compliance review. An export runs as a job: you start the job, check its status, then download the file.
Make sure you have the following:
- An organization on a plan that includes audit logs.
- An API key with the
org.auditLogs.readpermission. Organization owners have this permission by default. - Your organization ID, which starts with
org_. To find it, select General in the navigation menu on the left side of the page, and copy the value of the ID field. The organization ID differs from the organization slug that appears in the Reunite URL.
To export the audit logs for your organization, use the Replay consoles embedded on this page.
Each request in this guide sends the API key as a bearer token:
Authorization: Bearer <your-api-key>
The consoles on this page open on Mock server, which returns example data instead of your audit logs.
- 1
In the environment selector, choose Production main server. If your organization is on
app.cloud.eu.redocly.com, choose Production EU server. - 2
Expand the Authorization section and paste your API key.
- 3
In the Path tab, set the orgId value to your organization ID.
Send a request to create the export job.
- 1
Set
startandendto the time range you need, andformattojsonorcsv. The range must not exceed 31 days. When you omit both dates, the export covers the last month. - 2
To limit the export to specific event types, set
filtertotype:followed by one or more event types separated by commas, such astype:com.redocly.apiKey.created,com.redocly.apiKey.revoked. The Event types section lists every value the filter accepts. Omit the filter to export every type. - 3
Send the request. The response returns the job
id, which starts withexp_. Copy this value to use it in the next sections.Loading...
The export runs in the background.
- 1
Send the job
idyou received after starting the export job to check whether the file is ready.Loading... - 2
Check the
statusfield in the response, which returns one of three values:IN_PROGRESS: the export is still running. Send the request again in a few seconds.COMPLETED: the file is ready to download.FAILED: the export did not finish. Start a new job, and contact support if the failure repeats.
- 1
After the status is
COMPLETED, send the request to download the file.Loading... - 2
The response body holds the events, newest first, in the format you chose in the Start an export job section. The
Content-Dispositionheader suggests a file name. Until the job completes, this request returns404.
Reference for the fields in each exported event and the event types the audit log records.
An event in an export can have the following fields.
| Field | Type | Description |
|---|---|---|
| id | string | The identifier of the event. |
| object | string | The entity name. Always event. |
| type | string | The type of the recorded action, such as com.redocly.pullRequest.merged. See Event types. |
| time | string | The time when the action happened, in ISO 8601 format (UTC). |
| subject | string | The identifier of the resource that the action applied to. The prefix indicates the resource type, such as usr_ for a user or pr_ for a pull request. |
| actor | Actor object | null | Who or what triggered the action. null when no user, webhook, or scheduled job triggered the action. |
| clientIp | string | The IP address of the client that triggered the action. |
| projectId | string | The identifier of the project. Empty for organization-level events. |
| projectSlug | string | The slug of the project. Empty for organization-level events. |
| Field | Type | Description |
|---|---|---|
| id | string | The identifier of the actor. |
| object | string | The type of actor. Possible values: user, webhook, cronJob. |
| uri | string | The URL of the actor in the Reunite API. |
The export includes the following event types. Use any of them as a value of the filter parameter in the Start an export job section.
| Event type | Description |
|---|---|
| com.redocly.apiKey.created | An API key was created. |
| com.redocly.apiKey.updated | An API key was updated. |
| com.redocly.apiKey.revoked | An API key was revoked. |
| Event type | Description |
|---|---|
| com.redocly.gitIdentity.linked | A committer was linked to a member or to another committer. |
| com.redocly.gitIdentity.unlinked | A committer was unlinked from a member or from another committer. |
| com.redocly.gitIdentity.removed | A committer was removed from the organization. |
| Event type | Description |
|---|---|
| com.redocly.scimCredential.created | A SCIM token was created. |
| com.redocly.scimCredential.revoked | A SCIM token was revoked. Revoking all tokens at once records one event for each token. |
| Event type | Description |
|---|---|
| com.redocly.invite.created | A user was invited to the organization. |
| com.redocly.invite.resent | An invitation was sent again. |
| com.redocly.userInvite.accepted | An invitation was accepted. |
| com.redocly.membership.created | A user was added to the organization. |
| com.redocly.membership.updated | A membership attribute was updated, such as a role change. |
| com.redocly.membership.removed | A user was removed from the organization. |
| Event type | Description |
|---|---|
| com.redocly.team.created | A team was created. |
| com.redocly.team.deleted | A team was deleted. |
| com.redocly.teamMember.added | A user was added to a team. |
| com.redocly.teamMember.removed | A user was removed from a team. |
| com.redocly.syncedTeamMember.added | A user was added to a synced team at sign-in or through SCIM. |
| com.redocly.syncedTeamMember.removed | A user was removed from a synced team at sign-in, through SCIM, or because their membership or the team was removed. |
| com.redocly.teamManager.added | A user was made a team manager. |
| com.redocly.teamManager.removed | A user's team manager role was removed. |
| Event type | Description |
|---|---|
| com.redocly.organization.created | The organization was created. |
| com.redocly.organization.updated | Organization settings were updated. |
| com.redocly.organization.slugUpdated | The organization slug was changed. |
| com.redocly.organization.removed | The organization was deleted. |
| Event type | Description |
|---|---|
| com.redocly.project.created | A project was created. |
| com.redocly.project.updated | Project settings were updated. |
| com.redocly.project.slugUpdated | The project slug was changed. |
| com.redocly.project.urlUpdated | The project URL was changed. |
| com.redocly.project.removed | A project was deleted. |
| com.redocly.projectConfig.updated | The project configuration was updated. |
| Event type | Description |
|---|---|
| com.redocly.branch.created | A branch was created. |
| com.redocly.branch.updated | A branch was updated. |
| com.redocly.branch.removed | A branch was deleted. |
| com.redocly.gitAccess.pushed | Changes were pushed with Git to a project that uses Redocly-hosted Git. The event lists only the branches that accepted the push. |
| Event type | Description |
|---|---|
| com.redocly.projectCustomDomain.verified | A custom domain was verified for a project. |
| com.redocly.projectCustomDomain.removed | A custom domain was removed from a project. |
| Event type | Description |
|---|---|
| com.redocly.remote.created | A remote content source was added. |
| com.redocly.remote.deleted | A remote content source was deleted. |
| com.redocly.gitCredential.rotated | The access token of a Git provider credential was rotated. |
| Event type | Description |
|---|---|
| com.redocly.notificationSettings.updated | Notification settings were updated. |
| com.redocly.notifications.disabled | A user's notifications were disabled. |
| Event type | Description |
|---|---|
| com.redocly.subscription.updated | The subscription was updated. |
| com.redocly.subscription.churned | The subscription was canceled. |
| com.redocly.subscription.reactivated | The subscription was reactivated. |
| com.redocly.subscription.trialEnded | The trial period ended. |
| Event type | Description |
|---|---|
| com.redocly.pullRequest.created | A pull request was opened. |
| com.redocly.pullRequest.closed | A pull request was closed without merging. |
| com.redocly.pullRequest.reopened | A closed pull request was reopened. |
| com.redocly.pullRequest.merged | A pull request was merged. |
| com.redocly.pullRequest.approved | A reviewer approved a pull request. |
| com.redocly.pullRequest.requestedChanges | A reviewer requested changes on a pull request. |
| com.redocly.pullRequest.reviewRequested | A review was requested from a user or team. |
| com.redocly.pullRequest.readyForReview | A draft pull request was marked as ready for review. |
| com.redocly.pullRequest.markedAsDraft | A pull request was converted to a draft. |
| com.redocly.pullRequest.commented | A comment was added to a pull request. |
| com.redocly.pullRequest.commitPushed | A commit was pushed to a pull request branch. |
| com.redocly.pullRequest.forcePushed | A pull request branch was force-pushed. |
| com.redocly.pullRequest.visualReviewUpdated | The visual review of a pull request was updated. |
- Manage API keys - Create the key that authenticates your audit log exports and set the permissions it grants
- Reunite API reference - Look up the audit log export operations, their parameters, and their response schemas
- Teams and users - Organize users into teams with role-based permissions for effective collaboration and access control
- Compliance reports - Download Redocly's SOC 2, penetration test, and CAIQ reports for your security reviews
- Roles and permissions - Review which role grants the permission to read audit logs