Create an endpoint
Pre-release: Hooktier is not available yet. This reference shows the operations that are built, and it can change before launch.
const url = 'https://api.hooktier.com/v1/customers/example/endpoints';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"url":"https://hooks.kestrel.example/hooktier","description":"Billing events","eventTypes":["invoice.paid","invoice.payment_failed"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.hooktier.com/v1/customers/example/endpoints \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "https://hooks.kestrel.example/hooktier", "description": "Billing events", "eventTypes": [ "invoice.paid", "invoice.payment_failed" ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A cus_ ID or a uid.
A cus_ ID or the customer’s uid.
Header Parameters
Section titled “Header Parameters”Makes the request safe to retry for 24 hours from the first use. Keys are unique per
environment. Authentication and scope are checked first. A repeat with the same method,
path and body returns the stored response with Idempotent-Replayed: true; a repeat
that differs answers 422 idempotency_key_reused; a repeat while the first request is
still running answers 409 idempotency_in_progress. 401, 403, 429 and 5xx responses are
not stored. The key is checked before a message’s eventId.
Request Bodyrequired
Section titled “Request Bodyrequired”object
https URL, at most 2,048 characters, whose host resolves to public addresses only
and whose port is 443 or 1024–65535 (otherwise 422 with field code
url_port_not_allowed); it is checked when saved and again before every connection.
Event type names this endpoint receives; null means every type.
Up to 20 extra request headers, write-only: responses show only headerNames, and
values are stored encrypted. Names are unique ignoring case. Values are visible ASCII,
space and tab, at most 4,096 bytes each. Names and values together are at most 12 KiB,
counted as name length plus value length plus 4 per header; over it is 422 with field
code headers_too_large. These names are reserved,
ignoring case: webhook-*, host, content-length, content-type,
content-encoding, transfer-encoding, te, trailer, connection, keep-alive,
upgrade, proxy-*, user-agent, expect.
object
Maximum deliveries per second to this endpoint; null means none. It applies on top of
the cap of 10 in-flight attempts per destination (scheme, host and port), which every
endpoint on that destination shares.
A Standard Webhooks secret: whsec_ and padded standard base64 that decodes to
24–64 bytes.
Up to 20 string pairs for your own use. Keys 1–40 characters, values up to 500.
object
Example
{ "url": "https://hooks.kestrel.example/hooktier", "description": "Billing events", "eventTypes": [ "invoice.paid", "invoice.payment_failed" ]}Responses
Section titled “Responses”The endpoint was created.
object
https URL, at most 2,048 characters, whose host resolves to public addresses only
and whose port is 443 or 1024–65535 (otherwise 422 with field code
url_port_not_allowed); it is checked when saved and again before every connection.
Event type names this endpoint receives; null means every type.
Names of the custom headers; their values are never returned.
Maximum deliveries per second to this endpoint; null means none. It applies on top of
the cap of 10 in-flight attempts per destination (scheme, host and port), which every
endpoint on that destination shares.
manual when you disabled it, auto_failing when it failed for 5 days without a success.
failing while attempts fail with no success since failingSince.
Up to 20 string pairs for your own use. Keys 1–40 characters, values up to 500.
object
RFC 3339 in UTC with milliseconds.
RFC 3339 in UTC with milliseconds.
Example
{ "id": "ep_01JA2ZC7D9F1G3H5J7K9M1N3P5", "url": "https://receiver.example.com/webhooks", "description": "example", "eventTypes": [], "headerNames": [], "rateLimit": 1, "disabled": false, "disabledReason": "manual", "status": "healthy", "failingSince": "2026-10-10T09:52:28.123Z", "lastSuccessAt": "2026-10-10T09:52:28.123Z", "metadata": {}, "createdAt": "2026-10-10T09:52:28.123Z", "updatedAt": "2026-10-10T09:52:28.123Z"}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
true when this response is a stored reply to an earlier request with the same Idempotency-Key.
The request is malformed (invalid_json, invalid_query, invalid_cursor), or it
declares a trailer (a Trailer header or trailer fields), which every host refuses
(trailers_not_allowed).
A declared trailer is rejected before routing with trailers_not_allowed.
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "trailers_not_allowed", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
true when this response is a stored reply to an earlier request with the same Idempotency-Key.
The API key is missing, malformed, unknown or revoked (unauthorized).
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "unauthorized", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
The API key’s scope does not allow this operation (insufficient_scope).
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "insufficient_scope", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
The object does not exist in this environment (not_found).
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "not_found", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
true when this response is a stored reply to an earlier request with the same Idempotency-Key.
The request body was not received before its read deadline (request_timeout).
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "request_timeout", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
The object’s state does not allow this request.
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "uid_taken", "message": "A customer with uid \"acct_4821\" already exists.", "param": "uid", "errors": [], "existingId": "cus_01JA2ZB4K6M8N0P2Q4R6S8T0V2", "requestId": "8f3c2a91d4e7b605" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
true when this response is a stored reply to an earlier request with the same Idempotency-Key.
The body is larger than 1 MiB + 16 KiB, or the payload larger than 1 MiB (payload_too_large).
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "payload_too_large", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
true when this response is a stored reply to an earlier request with the same Idempotency-Key.
The body is not application/json (unsupported_media_type).
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "unsupported_media_type", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
true when this response is a stored reply to an earlier request with the same Idempotency-Key.
One or more fields are invalid; errors lists them.
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "validation_failed", "message": "2 fields are invalid.", "param": "event_type", "errors": [ { "param": "event_type", "code": "unknown_field", "message": "Unknown field; did you mean \"eventTypes\"?" }, { "param": "url", "code": "url_not_https", "message": "The URL must use https." } ], "existingId": null, "requestId": "1b7e44c0a9f2d358" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
true when this response is a stored reply to an earlier request with the same Idempotency-Key.
Too many requests (rate_limited), the Free plan’s monthly limit is reached
(plan_limit_reached) or the Test environment’s cap is reached (test_limit_reached).
The first seven days also cap acceptance at 1,000 deliveries per environment per UTC day (plan_limit_reached); test sends do not count.
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "rate_limited", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
Required on every 429; seconds to wait before retrying.
The request headers are larger than the limit (headers_too_large). Requests whose
headers exceed the HTTP parser’s own allowance get a plain-text 431 from the server
before the API sees them; that body is not this envelope and is not documented here.
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "headers_too_large", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
Hooktier failed; retry with backoff (internal_error).
object
object
Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.
For people; the wording may change.
The request field or parameter at fault.
Per-field problems for validation_failed; empty otherwise.
object
Dotted path of the field, such as headers.Authorization. For unknown_field, the key as sent when it is close to a field of this operation (a likely typo), otherwise body: Hooktier does not repeat other unknown keys, because a key can hold a credential.
Stable field-level code, used only inside error.errors. New codes may be added.
The ID of the object that already holds the uid or name, for uid_taken and name_taken.
Example
{ "error": { "code": "internal_error", "message": "Request refused.", "param": null, "errors": [], "existingId": null, "requestId": "example-request" }}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.