QHR Developers

List the request types an employee can raise

GET/ticket_catalog
Read token is enoughRaise and follow requests; approve as direct manager; work requests of own department ticket/requestRequires feature ticketAvailable in Claudeticket_catalog.list

Returns the request catalog: every enabled category, in display order, each with its enabled request types. For each type you get the form to fill in (form_fields), who approves it (approval_flow), the department that will do the work, its default priority and its target days. A category with no enabled type is left out.

How a type shapes a request: the request copies the type when it is submitted. Its form decides the answers tickets.create needs (by field key, with the field's rules). Its approval flow decides the first stage: none goes straight to the department's queue, manager waits for the requester's direct manager (or HR when there is none), hr waits for HR, manager_and_hr for both in turn. Its department is who takes and works on it, and its target days set the due date once approved. Editing a type later never changes a request already submitted.

When to use: before tickets.create, to choose the type and know which answers to send. HR's full settings view, disabled types included, is ticket_types.list.

Prerequisites: none. The token owner must be linked to an employee.

Side effects: none.

Parameters

NameInTypeDescriptionExample
Accept-LanguageheaderstringLanguage of messages and translated labels. English when omitted.
Allowed values: ar, en
ar

Response

200 The catalog.

FieldTypeDescription
recordsRequiredarray<object>The catalog, category by category.
records[].idintegerCategory id.
records[].name_enstringName in English.
records[].name_arstringName in Arabic.
records[].namestringName in the requested language.
records[].iconstringIcon key.
Allowed values: laptop, file-text, building, wallet, scale, users, tool, shield, car, globe
records[].colorstringColour key; null for the default.
Allowed values: blue, purple, gold, green, cyan, red
records[].positionintegerDisplay order.
records[].enabledbooleanAlways true here.
records[].typesarray<object>Its enabled request types, in display order (never empty).
records[].types[].idintegerRequest type id; send it as ticket_type_id to tickets.create.
records[].types[].ticket_category_idintegerIts category.
records[].types[].name_enstringName in English.
records[].types[].name_arstringName in Arabic.
records[].types[].namestringName in the requested language.
records[].types[].description_enstringDescription in English.
records[].types[].description_arstringDescription in Arabic.
records[].types[].descriptionstringDescription in the requested language; null when blank.
records[].types[].departmentobjectThe department that handles requests of this type.
records[].types[].department.idintegerDepartment id.
records[].types[].department.name_enstringName in English.
records[].types[].department.name_arstringName in Arabic.
records[].types[].department.namestringName in the requested language.
records[].types[].department.active_employee_countintegerEmployed people in the department, who can take its requests.
records[].types[].approval_flowstringWho approves before the department starts: none, manager (direct manager), hr or manager_and_hr.
Allowed values: none, manager, hr, manager_and_hr
records[].types[].default_prioritystringPriority the request starts with.
Allowed values: low, medium, high, highest
records[].types[].target_daysintegerDays the department has to finish, from approval.
records[].types[].positionintegerDisplay order inside the category.
records[].types[].enabledbooleanAlways true here.
records[].types[].form_fieldsarray<object>The form, in order. Answer each field by its key in answers of tickets.create.
records[].types[].form_fields[].keyRequiredstringField key, unique in the form: letters, digits, - and _, up to 40.
records[].types[].form_fields[].typeRequiredstringField type: short_text, long_text, number, date, date_range, select, multi_select, checkbox, file (PDF, JPG or PNG) or employee (a colleague, picked with ticket_catalog.employees).
Allowed values: short_text, long_text, number, date, date_range, select, multi_select, checkbox, file, employee
records[].types[].form_fields[].label_enRequiredstringLabel in English.
records[].types[].form_fields[].label_arRequiredstringLabel in Arabic.
records[].types[].form_fields[].help_enstringHelp text in English.
records[].types[].form_fields[].help_arstringHelp text in Arabic.
records[].types[].form_fields[].requiredbooleanThe employee must answer it.
records[].types[].form_fields[].widthRequiredintegerWidth on a 12-column grid: 12 (full), 6 (half) or 4 (third).
Allowed values: 12, 6, 4
records[].types[].form_fields[].optionsarray<object>The choices, for select and multi_select only (at least one, keys unique).
records[].types[].form_fields[].validationobjectRules checked on the answer: min / max for number, max_length for text, file_types and max_size_mb for file. A rule on another field type is refused.

Errors

HTTPCodeMeaningHow to fix
401token_missingNo Authorization: Bearer … header, or it is malformed.Send Authorization: Bearer qhr_… with the full token.
401token_invalidThe token is unknown or wrong, or its owner's account is locked.Check the token was copied in full, or create a new one in QHR › Settings › API & Integrations.
401token_expiredThe token is past its expiry date.Create a new token.
401token_revokedThe token was revoked by its owner or an admin, or the owner was removed from the company (which revokes all their tokens).Create a new token, or ask your admin. If the owner was removed, they must be re-invited to the company first.
401tenant_inactiveThe company account is suspended.Contact QHR support.
403forbiddenThe token owner's role lacks the permission this operation needs.Ask an admin to grant the permission shown on this operation (x-permission).
403employee_inactiveThe token owner's employee record is not active.HR must reactivate the employee record.
403tenant_access_revokedThe token's owner is no longer an active member of this company. Rare: removing a member normally revokes their tokens, which answers 401 token_revoked instead.The owner must be re-invited to the company, then create a new token. If the owner is still a member, contact QHR support.
422employee_requiredThe token's owner is a system user with no employee profile; only employees raise requests.Use a token created by a user linked to an employee.
This endpoint can also return the errors that can happen on any endpoint →402 / 412 / 425 entitlement_blocked · 429 rate_limited · 500 internal_error

See the full error catalogue →