> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/developers/gitbook-api/api-reference/organizations/get-an-organization-audit-event.md).

# Get an organization audit event

Returns the full allowlisted payload for one recorded organization change. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.

```json
{"openapi":"3.1.0","info":{"title":"GitBook API","version":"0.0.1-beta"},"tags":[{"name":"organizations","description":"The Organizations API provides a robust way to handle the administrative structure of your GitBook workspace. By creating and configuring organizations, you can group multiple users, spaces, and collections, simplifying your permission management and fostering efficient collaboration for teams of any size.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"Organization\" grouped=\"false\" %}\n    The Organization object\n{% endopenapi-schemas %}\n"}],"servers":[{"url":"{host}/v1","variables":{"host":{"default":"https://api.gitbook.com"}}}],"security":[{"user":[]}],"components":{"securitySchemes":{"user":{"type":"http","scheme":"bearer"}},"parameters":{"organizationId":{"name":"organizationId","in":"path","required":true,"description":"The unique id of the organization","schema":{"$ref":"#/components/schemas/EntityId"}}},"schemas":{"EntityId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","description":"A unique entity identifier"},"AuditEventDetails":{"allOf":[{"$ref":"#/components/schemas/AuditEvent"},{"type":"object","properties":{"executionId":{"type":"string","description":"Identifier of the operation that recorded the event."},"correlationId":{"type":"string","description":"Identifier shared by events produced by the same user action."},"causedByEventId":{"type":"string","format":"uuid","description":"Audit event that caused this later system effect."},"schemaVersion":{"type":"integer","minimum":1,"description":"Version of the action payload schema."},"payload":{"type":"object","additionalProperties":true,"description":"Allowlisted details specific to the action."}},"required":["schemaVersion","payload"]}]},"AuditEvent":{"type":"object","properties":{"object":{"type":"string","enum":["audit-event"]},"id":{"type":"string","format":"uuid","description":"Unique identifier of the audit event."},"occurredAt":{"$ref":"#/components/schemas/Timestamp"},"action":{"type":"string","description":"Stable action name describing the recorded change."},"actor":{"$ref":"#/components/schemas/AuditEventActor"},"source":{"type":"string","enum":["ui","api","integration","webhook","workflow","script","support"],"description":"Entry point that initiated the change."},"target":{"$ref":"#/components/schemas/AuditEventTarget"},"urls":{"type":"object","properties":{"location":{"type":"string","format":"uri","description":"URL of the audit event in the API."}},"required":["location"]}},"required":["object","id","occurredAt","action","actor","source","target","urls"]},"Timestamp":{"type":"string","format":"date-time"},"AuditEventActor":{"type":"object","properties":{"type":{"type":"string","enum":["user","integration","installation","system","support"],"description":"Kind of actor that initiated the change."},"id":{"type":"string","description":"Stable identifier of the actor."},"label":{"type":"string","description":"Display label captured when the event was recorded."}},"required":["type","id"]},"AuditEventTarget":{"type":"object","properties":{"type":{"type":"string","description":"Kind of resource affected by the change."},"id":{"type":"string","description":"Stable identifier of the affected resource."},"label":{"type":"string","description":"Display label captured when the event was recorded."}},"required":["type","id"]}},"responses":{"UnauthorizedError":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer","format":"int32","enum":[401]},"message":{"type":"string"}},"required":["code","message"]}}}}}},"ForbiddenError":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer","format":"int32","enum":[403]},"message":{"type":"string"}},"required":["code","message"]}}}}}},"NotFoundError":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"integer","format":"int32","enum":[404]},"message":{"type":"string"}},"required":["code","message"]}}}}}}}},"paths":{"/orgs/{organizationId}/audit-events/{auditEventId}":{"get":{"operationId":"getOrganizationAuditEvent","summary":"Get an organization audit event","description":"Returns the full allowlisted payload for one recorded organization change. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.\n","tags":["organizations"],"parameters":[{"$ref":"#/components/parameters/organizationId"},{"name":"auditEventId","in":"path","required":true,"description":"Unique identifier of the audit event.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The audit event.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditEventDetails"}}}},"401":{"$ref":"#/components/responses/UnauthorizedError"},"403":{"$ref":"#/components/responses/ForbiddenError"},"404":{"$ref":"#/components/responses/NotFoundError"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/developers/gitbook-api/api-reference/organizations/get-an-organization-audit-event.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
