b679a8f3f02c
List audit records
List audit trail records matching provided query params or default criteria.
The returned records are sorted by the execution_time from newest to oldest.
See Cursor-based pagination for instructions on how to paginate through the result set.
Only admins, account owners, or global API tokens on PagerDuty account pricing plans with the "Audit Trail" feature can access this endpoint.
For other role based access to audit records by resource ID, see the resource's API documentation.
For more information see the Audit API Document.
Scoped OAuth requires: audit_records.read
Query parameters
The minimum of the limit parameter used in the request or the maximum request size of the API.
Optional parameter used to request the "next" set of results from an API. The value provided here is most commonly obtained from the next_cursor field of the previous request. When no value is provided, the request starts at the beginning of the result set.
The start of the date range over which you want to search. If not specified, defaults to now() - 24 hours (past 24 hours)
The end of the date range over which you want to search. If not specified, defaults to now(). May not be more than 31 days after since.
Resource type filter for the root_resource.
Actor type filter.
Actor Id filter. Must be qualified by providing the actor_type param.
Describes the method used to perform the action:
browser -- authenticated user session. Session value is not returned in the truncated_token field.
oauth -- access token obtained via the OAuth flow. Truncated token value is returned in the truncated_token field.
api_token -- Pagerduty API token. Truncated token value is returned in the truncated_token field.
identity_provider -- action performed by an Identity provider on behalf of a user. No value is returned in the truncated_token field.
other -- Method that does not fall in the predefined categories. Truncated token value MAY be returned in the truncated_token field.
Method type filter.
Method truncated_token filter. Must be qualified by providing the method_type param.
The action executed on the aggregate
Action filter
Headers
The Accept header is used as a versioning header.
Response
Records matching the query criteria.