Raise a support request with QHR
/support_requestssupport/manageRequires feature supportAvailable in Claudesupport_requests.createOpens a conversation with the QHR support team: a type (problem, feature request, question, other), a title and a description, which becomes the first message. The request starts as new with a reference (SUP-1057) and lands in QHR's own support queue — it is not emailed and not sent to an outside help desk. Support answers inside the conversation; read it with support_requests.messages.
When to use: when something in QHR does not work, to ask how to do something, or to suggest a feature. Send a submission_key (any unique string) so that retrying after a network error returns the same request (200) instead of opening a second one (201). Files can only be attached from QHR's Support page.
Prerequisites: none. Needs "Manage support" (admin roles).
Side effects: the request, its first message and a "request received" event are saved; QHR support sees it in their queue. No email is sent to you at this point.
Parameters
| Name | In | Type | Description | Example |
|---|---|---|---|---|
Accept-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Request body
application/json
| Field | Type | Description |
|---|---|---|
support_requestRequired | object | The request. |
support_request.request_typeRequired | string | problem, feature_request, question or other.Allowed values: problem, feature_request, question, other |
support_request.titleRequired | string | Short title, up to 160 characters. |
support_request.descriptionRequired | string | What happened or what you need; the first message. |
support_request.submission_key | string | Any unique string; a retry with the same key returns the same request. |
support_request.origin_path | string | QHR page the problem is on, a path such as /payroll/runs. |
Response
200 A retry with a `submission_key` already used: the request it created, unchanged.
| Field | Type | Description |
|---|---|---|
id | integer | Support request id. |
reference | string | Reference to quote to QHR, e.g. SUP-1057. |
request_type | string | problem, feature_request, question or other.Allowed values: problem, feature_request, question, other |
title | string | Title. |
status | string | new (not picked up yet), in_progress, waiting_for_customer (support asked you something) or resolved.Allowed values: new, in_progress, waiting_for_customer, resolved |
created_at | string (date-time) | When it was raised. |
last_activity_at | string (date-time) | Last change you can see. |
resolved_at | string (date-time) | When it was resolved; null while open. |
requester | object | Who raised it (the token owner). |
requester.id | integer | User id. |
requester.name | string | Name. |
company | object | The company. |
company.id | integer | Company id. |
company.name | string | Company name. |
origin_path | string | QHR page it was raised from. |
messages | array<object> | The conversation, oldest first. |
messages[].id | integer | Message id; pass the last one as after_id to poll for newer ones. |
messages[].kind | string | customer (written by your company), support (written by QHR support) or system (an event).Allowed values: customer, support, system |
messages[].body | string | Text; null for an event or a message with files only. |
messages[].event_type | string | For an event: request_received, status_changed or type_changed. |
messages[].event_data | object | Event details, e.g. { "from": "new", "to": "resolved", "actor": "customer" }. |
messages[].author | object | Who wrote it; null for an event. |
messages[].author.name | string | Author's name ("QHR Support" for the team). |
messages[].attachments | array<object> | Files attached to it. |
messages[].attachments[].id | integer | Attachment id. |
messages[].attachments[].filename | string | File name. |
messages[].attachments[].content_type | string | Media type. |
messages[].attachments[].byte_size | integer | Size in bytes. |
messages[].attachments[].url | string | Temporary download link. |
messages[].attachments[].url_expires_at | string (date-time) | When the link stops working. |
messages[].created_at | string (date-time) | When it was written. |
Errors
| HTTP | Code | Meaning | How to fix |
|---|---|---|---|
| 400 | bad_request | A parameter is missing or malformed. | Check the parameters against this operation's documentation. |
| 401 | token_missing | No Authorization: Bearer … header, or it is malformed. | Send Authorization: Bearer qhr_… with the full token. |
| 401 | token_invalid | The 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. |
| 401 | token_expired | The token is past its expiry date. | Create a new token. |
| 401 | token_revoked | The 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. |
| 401 | tenant_inactive | The company account is suspended. | Contact QHR support. |
| 403 | token_read_only | This token can only read; the operation makes changes. | Use a token created with "Allow changes". |
| 403 | forbidden | The token owner's role lacks the permission this operation needs. | Ask an admin to grant the permission shown on this operation (x-permission). |
| 403 | employee_inactive | The token owner's employee record is not active. | HR must reactivate the employee record. |
| 403 | tenant_access_revoked | The 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. |
| 422 | validation_failed | Some fields are missing or not valid. | Fix the fields named in error (and errors when present), then send again. |
entitlement_blocked · 429 rate_limited · 500 internal_error