Get the audit log for an enterprise
Gets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and you must use an access token with the admin:enterprise scope.
Path parameters
The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Query parameters
A search phrase. For more information, see Searching the audit log.
The event types to include:
- web - returns web (non-Git) events.
- git - returns Git events.
- all - returns both web and Git events.
The default is web.
A cursor, as given in the Link header. If specified, the query only searches for events after this cursor.
A cursor, as given in the Link header. If specified, the query only searches for events before this cursor.
The order of audit log events. To list newest events first, specify desc. To list oldest events first, specify asc.
The default is desc.
Page number of the results to fetch.
The number of results per page (max 100).
Response
Response