How to get all the options for ticket status field through API?

Is there any way to get a list of all the ticket status values and labels (for agent and customers) included custom statuses? I need the values so I can use them to filter API queries of tickets.

1 Like

I figured this out.

  1. I used /api/v2/admin/ticket_fields to get the id for the status
  2. With the status id, I used /api/v2/admin/ticket_fields/[status_id] to get the status object
  3. The status object has a choices collection which contained exactly what I needed.

Hi @adam_steckel,

Welcome to our developer community! :tada:

Thank you for adding the right solution so that others could benefit from it. :smiley: