List All Ticket Audits

GET {{baseUrl}}/api/v2/ticket_audits?limit=<integer>

Returns ticket audits. Archived tickets are not included in the response. Use the List Audits for a Ticket endpoint to retrieve audit records for an archived ticket. To learn more about archived tickets, see About archived tickets.

This endpoint should not be used for capturing change data. When continually chasing the tail of a cursor, some records will be skipped. For this use case, use the Incremental Ticket Event Export API.

Pagination

This API supports two cursor-based pagination methods:

Zendesk recommends using the standard cursor-based pagination method. The legacy method has known problems.

Legacy cursor pagination method

By default, this endpoint uses the legacy cursor pagination method. This method differs from the standard cursor pagination used in other Zendesk endpoints.

The records are ordered sequentially by the created_at timestamp, then by id within duplicate timestamp values. The first page will return the most recent audits.

The cursor parameter is a non-human-readable argument you can use to move forward or backward in time.

Each JSON response will contain the following attributes to help you get more results:

  • after_url requests more recent results
  • before_url requests older results
  • after_cursor is the cursor to build the request yourself
  • before_cursor is the cursor to build the request yourself.

The after_cursor and before_cursor attributes may contain non-URL-safe characters. Make sure to URL-encode them, or simply use the after_url or before_url values to paginate.

The properties are null if no more records are available.

You can request a maximum of 1,000 results. The default number of results is 1,000, but you can change it with the limit parameter.

Allowed For

  • Admins

Request Params

KeyDatatypeRequiredDescription
limitstringMaximum number of results returned

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;after_cursor&quot;:&quot;MTUwMTYwNzUyMi4wfHwxMzQ3NTMxNjcxfA==&quot;,&quot;after_url&quot;:&quot;https://subdomain.zendesk.com/api/v2/ticket_audits.json?cursor=MTUwMTYwNzUyMi4wfHwxMzQ3NTMxNjcxfA%3D%3D\u0026limit=1000&quot;,&quot;audits&quot;:[{&quot;author_id&quot;:35436,&quot;created_at&quot;:&quot;2011-09-25T22:35:44Z&quot;,&quot;events&quot;:[{&quot;attachments&quot;:[],&quot;body&quot;:&quot;Thanks for your help!&quot;,&quot;id&quot;:1564245,&quot;public&quot;:true,&quot;type&quot;:&quot;Comment&quot;},{&quot;body&quot;:&quot;Ticket #47 has been updated&quot;,&quot;id&quot;:1564246,&quot;subject&quot;:&quot;Your ticket has been updated&quot;,&quot;type&quot;:&quot;Notification&quot;},{&quot;field_name&quot;:&quot;status&quot;,&quot;id&quot;:1564247,&quot;previous_value&quot;:&quot;new&quot;,&quot;type&quot;:&quot;Change&quot;,&quot;value&quot;:&quot;open&quot;},{&quot;field_name&quot;:&quot;custom_status_id&quot;,&quot;id&quot;:1564248,&quot;previous_value&quot;:1,&quot;type&quot;:&quot;Change&quot;,&quot;value&quot;:123}],&quot;id&quot;:2127301143,&quot;metadata&quot;:{&quot;custom&quot;:{&quot;time_spent&quot;:&quot;3m22s&quot;},&quot;system&quot;:{&quot;ip_address&quot;:&quot;184.106.40.75&quot;}},&quot;ticket_id&quot;:123,&quot;via&quot;:{&quot;channel&quot;:&quot;web&quot;}}],&quot;before_cursor&quot;:&quot;fDE1MDE1NzUxMjIuMHx8MTM0NzM0MzAxMQ==&quot;,&quot;before_url&quot;:&quot;https://subdomain.zendesk.com/api/v2/ticket_audits.json?cursor=fDE1MDE1NzUxMjIuMHx8MTM0NzM0MzAxMQ%3D%3D\u0026limit=1000&quot;}