> For the complete documentation index, see [llms.txt](https://api-docs.hengelending.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.hengelending.com/api/api-reference/issue-reports.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.hengelending.com/~gitbook/mcp).

# Issue Reports

Report a problem to Henge support, with files attached if they help, and read back the reports your application filed and where each one stands.

**Scopes:** `create:user-reports`, `read:user-reports`

## Lists the reports filed by this partner.

> \*\*Required scope:\*\* \`read:user-reports\`\
> \
> The body is an array, so the total number of the partner's reports is in the X-Total-Count response header.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Issue reports","description":"Report a problem to Henge support, with files attached if they help, and read back the reports your application filed and where each one stands.\n\n**Scopes:** `create:user-reports`, `read:user-reports`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"UserReportSummary":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the report.","nullable":true},"kind":{"type":"string","description":"Technical or Process (UserReportKind).","nullable":true},"title":{"type":"string","description":"Short summary of the problem.","nullable":true},"description":{"type":"string","description":"Left out of list items.","nullable":true},"category":{"type":"string","description":"Category label the reporter gave; null when none.","nullable":true},"pageUrl":{"type":"string","description":"Address of the page the problem happened on.","nullable":true},"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the report is about, when there is one.","format":"uuid","nullable":true},"urgency":{"type":"integer","description":"1 to 4 (`UserReportUrgency`); null on a report filed before urgency existed.","format":"int32","nullable":true},"urgencyLabel":{"type":"string","description":"The label for `Urgency`, e.g. \"Urgent, no workaround\".","nullable":true},"loanNumbers":{"type":"array","items":{"type":"string"},"description":"The loan numbers the reporter typed; empty when none.","nullable":true},"createdAt":{"type":"string","description":"When the report was filed, ISO 8601 in UTC.","format":"date-time"},"status":{"type":"string","description":"received, in_progress, fixed, closed or unknown (Technical); sent (Process). See `UserReportStatuses`.","nullable":true},"groupStatus":{"type":"string","description":"The status of the group root, or of the report itself when it has no group.","nullable":true},"groupSize":{"type":"integer","description":"Number of reports grouped with this one as the same problem, counting itself.","format":"int32"}},"additionalProperties":false,"description":"What the reporter sees of their own report: a plain status, never an issue number or link."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/user-reports":{"get":{"tags":["Issue reports"],"summary":"Lists the reports filed by this partner.","description":"**Required scope:** `read:user-reports`\n\nThe body is an array, so the total number of the partner's reports is in the X-Total-Count response header.","operationId":"UserReports_List","parameters":[{"name":"page","in":"query","description":"The page to return, 50 reports to a page, newest first. Defaults to 1; a value below 1 counts as 1. With top and no skip, the list starts where this page would. Deprecated: use skip. When skip is sent, page is ignored.","deprecated":true,"schema":{"type":"integer","format":"int32","default":1}},{"name":"skip","in":"query","description":"The number of reports to skip before the page starts, newest first. Defaults to 0; a negative value counts as 0. When skip is sent, page is ignored.","schema":{"type":"integer","format":"int32"}},{"name":"top","in":"query","description":"The number of reports to return. Defaults to 50, at most 50; a larger value returns 50 and a value below 1 returns 1. The total is in the X-Total-Count response header.","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"The partner's reports, without descriptions","headers":{"X-Total-Count":{"description":"Number of matching items across every page. The body is an array, so the total travels in this header.","schema":{"type":"integer","format":"int32"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserReportSummary"}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to access this resource","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Files a report with Henge support.

> \*\*Required scope:\*\* \`create:user-reports\` (tokens with the legacy name \`write:user-reports\` are also accepted)\
> \
> Kind is Technical (the default) or Process; urgency is 1 to 4. A loanApplicationId must be one of the> \
> partner's own loans. At most 10 reports an hour per partner client; the 11th is a 429.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Issue reports","description":"Report a problem to Henge support, with files attached if they help, and read back the reports your application filed and where each one stands.\n\n**Scopes:** `create:user-reports`, `read:user-reports`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"CreateUserReportRequest":{"required":["description","title","urgency"],"type":"object","properties":{"title":{"maxLength":256,"minLength":1,"type":"string","description":"Short summary of the problem, up to 256 characters."},"description":{"maxLength":20000,"minLength":1,"type":"string","description":"Full description of the problem, up to 20,000 characters."},"category":{"maxLength":128,"type":"string","description":"Optional category label for the report, up to 128 characters.","nullable":true},"pageUrl":{"maxLength":2048,"type":"string","description":"Address of the page the problem happened on, up to 2,048 characters.","nullable":true},"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the report is about, when there is one.","format":"uuid","nullable":true},"postHogSessionId":{"maxLength":128,"type":"string","description":"Identifier of the reporter's session recording, when there is one.","nullable":true},"sessionReplayUrl":{"maxLength":2048,"type":"string","description":"Absolute https URL of the session recording; anything else is refused with a 400.","nullable":true},"kind":{"maxLength":32,"type":"string","description":"Technical or Process (case-insensitive); missing means Technical, anything else is a 400.","nullable":true},"urgency":{"type":"integer","description":"Required, 1 to 4 (`UserReportUrgency`); missing or any other value is a 400.","format":"int32"},"loanNumbers":{"type":"array","items":{"type":"string"},"description":"The loans the reporter typed, not checked against the database. Up to 10, each 1 to 32 characters of\r\nletters, digits, dash and space; trimmed, blanks dropped, duplicates removed.","nullable":true}},"additionalProperties":false,"description":"kind defaults to Technical when left out."},"CreateUserReportResponse":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the report.","format":"uuid"},"kind":{"type":"string","description":"Technical or Process (UserReportKind).","nullable":true},"issueNumber":{"type":"integer","description":"Number of the tracking issue created for a Technical report; null for a Process report.","format":"int32","nullable":true},"issueUrl":{"type":"string","description":"Link to the tracking issue created for a Technical report; null for a Process report.","nullable":true},"reporter":{"$ref":"#/components/schemas/UserReportReporter"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/UserReportAttachmentSummary"},"description":"The files attached to the report.","nullable":true}},"additionalProperties":false},"UserReportReporter":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the reporter: the user, or the partner's company when no user acted.","format":"uuid"},"name":{"type":"string","description":"Reporter's name.","nullable":true},"email":{"type":"string","description":"Reporter's email address.","nullable":true},"kind":{"type":"string","description":"Who filed the report: Staff, Borrower, Anonymous or Partner.","nullable":true},"source":{"type":"string","description":"Where the report was filed from (`UserReportSources`); becomes a `source:` label on a Technical report's issue. Null adds none. Never stored or returned.","nullable":true}},"additionalProperties":false,"description":"The person or integration that filed a report."},"UserReportAttachmentSummary":{"type":"object","properties":{"name":{"type":"string","description":"File name of the attachment.","nullable":true},"contentType":{"type":"string","description":"MIME type of the attachment, for example image/png.","nullable":true},"size":{"type":"integer","description":"Attachment size in bytes.","format":"int64"}},"additionalProperties":false,"description":"An attachment as the create response lists it: name, type and size, with no download URL."},"ValidationProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"The validation problems: each key is the name of the field that failed and its value lists the messages for that field. Present when `code` is `ValidationFailed`.","nullable":true},"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."}},"additionalProperties":{},"description":"The error body of a 400: the problem details shape, plus `errors`, which lists the problems by field when the request failed validation (`code` `ValidationFailed`). Branch on `code`."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/user-reports":{"post":{"tags":["Issue reports"],"summary":"Files a report with Henge support.","description":"**Required scope:** `create:user-reports` (tokens with the legacy name `write:user-reports` are also accepted)\n\nKind is Technical (the default) or Process; urgency is 1 to 4. A loanApplicationId must be one of the\r\npartner's own loans. At most 10 reports an hour per partner client; the 11th is a 429.","operationId":"UserReports_Create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserReportRequest"}},"multipart/form-data":{"schema":{"required":["report"],"type":"object","properties":{"report":{"type":"string","description":"The report as a JSON string, with the same fields as the JSON body."},"files":{"type":"array","items":{"type":"string","format":"binary"},"description":"Up to 5 files, 5 MB each and 15 MB in all (png jpg jpeg gif webp pdf txt csv log json xml docx xlsx)."}}}}}},"responses":{"201":{"description":"The report was filed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserReportResponse"}}}},"400":{"description":"The report body was invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to access this resource","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"The loan application was not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"More than 10 reports an hour from this client","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"502":{"description":"GitHub did not create the issue, or the processing team email could not be sent","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Retrieves one of this partner's reports.

> \*\*Required scope:\*\* \`read:user-reports\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Issue reports","description":"Report a problem to Henge support, with files attached if they help, and read back the reports your application filed and where each one stands.\n\n**Scopes:** `create:user-reports`, `read:user-reports`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"UserReportSummary":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the report.","nullable":true},"kind":{"type":"string","description":"Technical or Process (UserReportKind).","nullable":true},"title":{"type":"string","description":"Short summary of the problem.","nullable":true},"description":{"type":"string","description":"Left out of list items.","nullable":true},"category":{"type":"string","description":"Category label the reporter gave; null when none.","nullable":true},"pageUrl":{"type":"string","description":"Address of the page the problem happened on.","nullable":true},"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the report is about, when there is one.","format":"uuid","nullable":true},"urgency":{"type":"integer","description":"1 to 4 (`UserReportUrgency`); null on a report filed before urgency existed.","format":"int32","nullable":true},"urgencyLabel":{"type":"string","description":"The label for `Urgency`, e.g. \"Urgent, no workaround\".","nullable":true},"loanNumbers":{"type":"array","items":{"type":"string"},"description":"The loan numbers the reporter typed; empty when none.","nullable":true},"createdAt":{"type":"string","description":"When the report was filed, ISO 8601 in UTC.","format":"date-time"},"status":{"type":"string","description":"received, in_progress, fixed, closed or unknown (Technical); sent (Process). See `UserReportStatuses`.","nullable":true},"groupStatus":{"type":"string","description":"The status of the group root, or of the report itself when it has no group.","nullable":true},"groupSize":{"type":"integer","description":"Number of reports grouped with this one as the same problem, counting itself.","format":"int32"}},"additionalProperties":false,"description":"What the reporter sees of their own report: a plain status, never an issue number or link."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/user-reports/{id}":{"get":{"tags":["Issue reports"],"summary":"Retrieves one of this partner's reports.","description":"**Required scope:** `read:user-reports`","operationId":"UserReports_Get","parameters":[{"name":"id","in":"path","description":"The report's `id`, as the list or the filing returned it. A report filed by another partner answers 404.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserReportSummary"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to access this resource","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"No such report, or it was filed by another partner","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://api-docs.hengelending.com/api/api-reference/issue-reports.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
