> 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/webhooks.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.hengelending.com/~gitbook/mcp).

# Webhooks

Set your company's webhook: the URL notifications are sent to, an optional API key sent with each one, a signing secret that lets you verify each one came from us, and the object and event types you subscribe to.

`GET /types/webhook-object-event-types` lists those types.

**Scopes:** `read:types`, `read:webhooks`, `update:webhooks`

## Webhook Object Event Types

> \*\*Required scope:\*\* \`read:types\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Webhooks","description":"Set your company's webhook: the URL notifications are sent to, an optional API key sent with each one, a signing secret that lets you verify each one came from us, and the object and event types you subscribe to.\n\n`GET /types/webhook-object-event-types` lists those types.\n\n**Scopes:** `read:types`, `read:webhooks`, `update:webhooks`"}],"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":{"ObjectEventTypeResponse":{"type":"object","properties":{"objectType":{"$ref":"#/components/schemas/ObjectTypeResponse"},"eventTypes":{"type":"array","items":{"$ref":"#/components/schemas/EventTypeResponse"},"description":"The events that can be subscribed to for that object.","nullable":true}},"additionalProperties":false,"description":"Represents a webhook object type along with its available event types."},"ObjectTypeResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the object type.","format":"uuid"},"name":{"type":"string","description":"The name of the object type (e.g., “LoanApp”, “LoanAppTask”, “LoanAppVault”).","nullable":true}},"additionalProperties":false,"description":"A kind of object a webhook can watch, for example LoanApp, LoanAppTask or LoanAppVault."},"EventTypeResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the event type.","format":"uuid"},"name":{"type":"string","description":"The name of the event type (e.g., “Created”, “Deleted”, “Changed”).","nullable":true}},"additionalProperties":false,"description":"A webhook event type: what happened to an object, for example Created, Deleted or Changed."},"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":{"/types/webhook-object-event-types":{"get":{"tags":["Webhooks"],"summary":"Webhook Object Event Types","description":"**Required scope:** `read:types`","operationId":"Types_GetWebhookObjectEventTypes","responses":{"200":{"description":"Webhook object event types retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectEventTypeResponse"}}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The access token lacks the read:types scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Retrieves the webhook and its associated subscriptions.

> \*\*Required scope:\*\* \`read:webhooks\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Webhooks","description":"Set your company's webhook: the URL notifications are sent to, an optional API key sent with each one, a signing secret that lets you verify each one came from us, and the object and event types you subscribe to.\n\n`GET /types/webhook-object-event-types` lists those types.\n\n**Scopes:** `read:types`, `read:webhooks`, `update:webhooks`"}],"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":{"GetWebhookResponse":{"required":["createdTimestamp","hasApiKey","hasSigningSecret","updatedTimestamp"],"type":"object","properties":{"targetUrl":{"type":"string","description":"The POST URL on the partner’s system that will receive webhook payloads.","nullable":true},"hasApiKey":{"type":"boolean","description":"Whether an API key is configured for this webhook. The key itself is never returned."},"hasSigningSecret":{"type":"boolean","description":"Whether a signing secret exists, so that deliveries carry the `Henge-Signature` header. Create or rotate one\r\nwith `POST /webhook/signing-secret`. The secret itself is never returned here."},"signingSecretCreatedTimestamp":{"type":"string","description":"When the current signing secret was created (UTC); null when there is none.","format":"date-time","nullable":true},"createdTimestamp":{"type":"string","description":"The timestamp when the webhook subscription was created.","format":"date-time"},"updatedTimestamp":{"type":"string","description":"The timestamp when the webhook subscription was last updated.","format":"date-time"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/EventSubscriptionResponse"},"description":"The list of event subscriptions currently associated with this webhook.","nullable":true}},"additionalProperties":false,"description":"Response containing webhook details and associated event subscriptions."},"EventSubscriptionResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of this subscription.","format":"uuid"},"updatedTimestamp":{"type":"string","description":"The timestamp when this subscription was last updated.","format":"date-time"},"createdTimestamp":{"type":"string","description":"The timestamp when this subscription was created.","format":"date-time"},"objectType":{"$ref":"#/components/schemas/ObjectTypeResponse"},"eventType":{"$ref":"#/components/schemas/EventTypeResponse"}},"additionalProperties":false},"ObjectTypeResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the object type.","format":"uuid"},"name":{"type":"string","description":"The name of the object type (e.g., “LoanApp”, “LoanAppTask”, “LoanAppVault”).","nullable":true}},"additionalProperties":false,"description":"A kind of object a webhook can watch, for example LoanApp, LoanAppTask or LoanAppVault."},"EventTypeResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the event type.","format":"uuid"},"name":{"type":"string","description":"The name of the event type (e.g., “Created”, “Deleted”, “Changed”).","nullable":true}},"additionalProperties":false,"description":"A webhook event type: what happened to an object, for example Created, Deleted or Changed."},"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":{"/webhook":{"get":{"tags":["Webhooks"],"summary":"Retrieves the webhook and its associated subscriptions.","description":"**Required scope:** `read:webhooks`","operationId":"Webhooks_GetWebhook","responses":{"200":{"description":"Webhook and subscriptions retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWebhookResponse"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","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":"Webhook not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Creates or updates the webhook target URL and optional API key.

> \*\*Required scope:\*\* \`update:webhooks\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Webhooks","description":"Set your company's webhook: the URL notifications are sent to, an optional API key sent with each one, a signing secret that lets you verify each one came from us, and the object and event types you subscribe to.\n\n`GET /types/webhook-object-event-types` lists those types.\n\n**Scopes:** `read:types`, `read:webhooks`, `update:webhooks`"}],"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":{"UpsertWebhookRequest":{"required":["targetUrl"],"type":"object","properties":{"targetUrl":{"minLength":1,"type":"string","description":"The POST URL on the partner’s system that will receive webhook payloads."},"apiKey":{"maxLength":512,"minLength":0,"pattern":"^[!-~]+$","type":"string","description":"Optional. A secret your endpoint uses to verify that a delivery came from Henge.\r\nIt is sent on every webhook POST as the header `x-api-key`. Omit the field to keep the\r\ncurrent key; send an empty string to remove it. The key is stored encrypted and is never returned.","nullable":true}},"additionalProperties":false},"Modified":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the entity that was modified."},"type":{"type":"string","description":"A string indicating the type or category of the modified entity (e.g., “Webhook”, “LoanApplicationTask”).","nullable":true},"createdTimestamp":{"type":"string","description":"The timestamp when the entity was first created.","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"The timestamp when the entity was last updated.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"Represents an audit record for an entity that has been created or updated."},"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":{"/webhook":{"put":{"tags":["Webhooks"],"summary":"Creates or updates the webhook target URL and optional API key.","description":"**Required scope:** `update:webhooks`","operationId":"Webhooks_UpdateWebhook","requestBody":{"description":"The request payload containing the target URL and an optional API key sent with every delivery.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertWebhookRequest"}}}},"responses":{"200":{"description":"Webhook updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Modified"}}}},"400":{"description":"Invalid request payload","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to perform this action","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Creates or rotates the webhook's signing secret.

> \*\*Required scope:\*\* \`update:webhooks\`\
> \
> Generates a new random secret and returns it once: it cannot be read again, so store it when you receive it. From then on> \
> every delivery carries the header \`Henge-Signature: t=\<unix seconds>,v1=\<signature>\`, where the signature> \
> is the lowercase hex HMAC-SHA256 of \`t + "." + rawBody\` keyed with the secret. Calling this again rotates the secret:> \
> for 24 hours deliveries also carry a \`v1\` made with each earlier secret, so accept a delivery when any \`v1\` matches.> \
> Reject a delivery whose \`t\` is more than 5 minutes from your clock. The \`x-api-key\` header is unchanged.> \
> Create the webhook with \`PUT /webhook\` first.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Webhooks","description":"Set your company's webhook: the URL notifications are sent to, an optional API key sent with each one, a signing secret that lets you verify each one came from us, and the object and event types you subscribe to.\n\n`GET /types/webhook-object-event-types` lists those types.\n\n**Scopes:** `read:types`, `read:webhooks`, `update:webhooks`"}],"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":{"WebhookSigningSecretResponse":{"required":["createdTimestamp","signingSecret"],"type":"object","properties":{"signingSecret":{"type":"string","description":"The secret, starting `whsec_`. Verify a delivery by computing the lowercase hex HMAC-SHA256 of\r\n`t + \".\" + rawBody` with this whole string (prefix included) as the key and comparing it with a `v1` value in\r\nthe `Henge-Signature` header."},"createdTimestamp":{"type":"string","description":"When the secret was created (UTC).","format":"date-time"},"previousSecretExpiresTimestamp":{"type":"string","description":"When this call replaced an earlier secret: until this time (UTC) deliveries carry a second `v1` signature made with\r\nthe earlier secret, so you can switch without rejecting deliveries. Null when there was no earlier secret.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"A new signing secret for your webhook. This is the only time it is returned: store it now. Deliveries carry the\r\n`Henge-Signature` header from now on."},"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":{"/webhook/signing-secret":{"post":{"tags":["Webhooks"],"summary":"Creates or rotates the webhook's signing secret.","description":"**Required scope:** `update:webhooks`\n\nGenerates a new random secret and returns it once: it cannot be read again, so store it when you receive it. From then on\r\nevery delivery carries the header `Henge-Signature: t=<unix seconds>,v1=<signature>`, where the signature\r\nis the lowercase hex HMAC-SHA256 of `t + \".\" + rawBody` keyed with the secret. Calling this again rotates the secret:\r\nfor 24 hours deliveries also carry a `v1` made with each earlier secret, so accept a delivery when any `v1` matches.\r\nReject a delivery whose `t` is more than 5 minutes from your clock. The `x-api-key` header is unchanged.\r\nCreate the webhook with `PUT /webhook` first.","operationId":"Webhooks_CreateSigningSecret","responses":{"201":{"description":"The new signing secret. Returned only this once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSigningSecretResponse"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to perform this action","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"The company has no webhook yet; create it with PUT /webhook","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Creates a webhook subscription.

> \*\*Required scope:\*\* \`update:webhooks\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Webhooks","description":"Set your company's webhook: the URL notifications are sent to, an optional API key sent with each one, a signing secret that lets you verify each one came from us, and the object and event types you subscribe to.\n\n`GET /types/webhook-object-event-types` lists those types.\n\n**Scopes:** `read:types`, `read:webhooks`, `update:webhooks`"}],"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":{"CreateWebhookSubscriptionRequest":{"required":["eventType","objectType"],"type":"object","properties":{"objectType":{"$ref":"#/components/schemas/ObjectTypeRequest"},"eventType":{"$ref":"#/components/schemas/EventTypeRequest"}},"additionalProperties":false,"description":"Request payload to create a new webhook subscription linking an object type and an event type."},"ObjectTypeRequest":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the object type (e.g., LoanApp, LoanAppTask, LoanAppVault) as returned by GET /types/webhook-object-event-types.","format":"uuid"}},"additionalProperties":false,"description":"Selects a webhook object type by id."},"EventTypeRequest":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the event type (e.g., Created, Deleted, Changed) as returned by GET /types/webhook-object-event-types.","format":"uuid"}},"additionalProperties":false,"description":"Selects a webhook event type by id."},"Modified":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the entity that was modified."},"type":{"type":"string","description":"A string indicating the type or category of the modified entity (e.g., “Webhook”, “LoanApplicationTask”).","nullable":true},"createdTimestamp":{"type":"string","description":"The timestamp when the entity was first created.","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"The timestamp when the entity was last updated.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"Represents an audit record for an entity that has been created or updated."},"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":{"/webhook/subscriptions":{"post":{"tags":["Webhooks"],"summary":"Creates a webhook subscription.","description":"**Required scope:** `update:webhooks`","operationId":"Webhooks_CreateWebhookSubscription","requestBody":{"description":"The request payload containing webhook details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookSubscriptionRequest"}}}},"responses":{"200":{"description":"Webhook subscription created successfully A create answers 200 today. It will answer 201 with a Location header from a date announced in the changelog at least 60 days ahead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Modified"}}}},"201":{"description":"Created. Will be answered instead of 200 from a date announced in the changelog at least 60 days ahead; the Location header carries the new resource's URL.","headers":{"Location":{"description":"URL of the created resource: this request's path followed by the new id.","schema":{"type":"string","format":"uri-reference"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Modified"}}}},"400":{"description":"Invalid request payload","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to perform this action","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Webhook not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## &#x20;Deletes webhook subscription.

> \*\*Required scope:\*\* \`update:webhooks\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Webhooks","description":"Set your company's webhook: the URL notifications are sent to, an optional API key sent with each one, a signing secret that lets you verify each one came from us, and the object and event types you subscribe to.\n\n`GET /types/webhook-object-event-types` lists those types.\n\n**Scopes:** `read:types`, `read:webhooks`, `update:webhooks`"}],"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":{"Modified":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the entity that was modified."},"type":{"type":"string","description":"A string indicating the type or category of the modified entity (e.g., “Webhook”, “LoanApplicationTask”).","nullable":true},"createdTimestamp":{"type":"string","description":"The timestamp when the entity was first created.","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"The timestamp when the entity was last updated.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"Represents an audit record for an entity that has been created or updated."},"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":{"/webhook/subscriptions/{subscriptionId}":{"delete":{"tags":["Webhooks"],"summary":" Deletes webhook subscription.","description":"**Required scope:** `update:webhooks`","operationId":"Webhooks_DeleteWebhookSubscription","parameters":[{"name":"subscriptionId","in":"path","description":"The unique identifier of the webhook subscription to be deleted.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Webhook subscription deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Modified"}}}},"400":{"description":"Invalid request payload","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to perform this action","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Webhook or subscription not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","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/webhooks.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.
