Reports and data
Report tickets by field
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the tickets:read ability
Query parameters
type_idstringrequiredA type id from GET /ticket-types.
Maximum length: 64
fieldstringrequiredThe key of one of the type's fields.
Maximum length: 40
fromstringFirst day, 2006-01-02.
tostringLast day included, 2006-01-02.
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
data_typestringrequiredThe reported field's type: short_text, long_text, number, decimal, currency, boolean, date, single_choice, multiple_choice, file, member or company.
fieldstringrequiredKey of the reported field, such as order_number.
labelstringrequiredThe reported field's name as people see it.
type_idstringrequiredId of the ticket type the field belongs to, such as tktt_....
valuesobject[] | nullrequiredOne row per value the field holds, each with how many tickets hold it and how many of those are resolved.
Show child attributesHide child attributes
resolvedintegerrequiredHow many of the tickets holding this value are resolved.
Format: int64
ticketsintegerrequiredHow many tickets hold this value.
Format: int64
valuestring | nullrequiredThe field value being counted, as text. Null for the tickets that have no value for the field.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.