Query regarding ticket status

I’ve recently used the following API endpoint: https://api.hubapi.com/crm/v3/objects/tickets/{ticket_id}?limit=10&archived=false

From the response, I am able to retrieve fields like ticket_pipeline, priority, and category. However, I’m keen on extracting other details related to the same ticket ID.

I want ticket status also for same ticket ID for which i used api:
https://api.hubapi.com/crm/v3/objects/tickets/{ticket_id}?properties=ticket_status&limit=10&archived=false
But this doesnt return response with ticket_status

@Ayush_47

Hi.

How about try `hs_pipeline_stage` instead of `ticket_status`?

In API, please use property’s internal name.

Thanks.

@skimura Yeah but it returns response as numbers (1,2,3,4)
How to get status as (Campaign Planning , In delivery, Invoiced ..)

@Ayush_47

`ticket status`'s field type is `dropdown select`.

So, response value is `ticket status`'s internal value.

If you need status label, converted to manually,

or get status list from property api.

statsus list’s response example:

(convert value to label)

{
 "options": [
 {
 "label": {STATUS_LABEL},
 "value": {INTERNAL_VALUE},
 ...,
 },
 ...,
 ],
 ...,
}

Thanks.