Skip to content
HooktierDocs

Send a message

Pre-release: Hooktier is not available yet. This reference shows the operations that are built, and it can change before launch.

POST
/customers/{customer}/messages
curl --request POST \
--url https://api.hooktier.com/v1/customers/example/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "eventType": "invoice.paid", "eventId": "evt_inv_0M3K7V2", "payload": { "type": "invoice.paid", "timestamp": "2026-10-07T07:58:19Z", "data": { "id": "inv_0M3K7V2", "total": 4900, "currency": "EUR" } } }'

Accepts the message and fans it out to every endpoint of the customer whose eventTypes match, enabled or disabled; a disabled endpoint holds its deliveries until it is enabled. Returns 202 after storing the message, queuing its deliveries and reserving one delivery of quota per matching endpoint.

A repeated eventId for the same customer returns the first message with 200, even if the payload differs; it sends nothing and reserves nothing. Detection ends exactly at the first message’s expiresAt; after that the same eventId creates a new message.

A Free workspace whose reservation would pass its monthly limit gets 429 plan_limit_reached; the Test environment over its cap gets 429 test_limit_reached. Nothing is stored on a 429. Starter and Growth are never refused for quota.

customer
required

A cus_ ID or a uid.

string
>= 1 characters <= 256 characters /^(?:[a-zA-Z0-9_.-]*[a-zA-Z0-9_-][a-zA-Z0-9_.-]*|\.{3,})$/

A cus_ ID or the customer’s uid.

Idempotency-Key
string
>= 1 characters <= 255 characters /^[\x21-\x7E]+$/

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.

Media typeapplication/json
object
eventType
required

Letters, digits, -, _ and ., such as invoice.paid, but not exactly . or ...

string
>= 1 characters <= 256 characters /^(?:[a-zA-Z0-9_.-]*[a-zA-Z0-9_-][a-zA-Z0-9_.-]*|\.{3,})$/
eventId

Your idempotency key for this event (same rules as uid), unique per customer for the message’s retention window.

string
>= 1 characters <= 256 characters /^(?:[a-zA-Z0-9_.-]*[a-zA-Z0-9_-][a-zA-Z0-9_.-]*|\.{3,})$/
payload
required

A JSON object, at most 1 MiB serialized. It is delivered byte for byte as sent.

object

Example

{
"eventType": "invoice.paid",
"eventId": "evt_inv_0M3K7V2",
"payload": {
"type": "invoice.paid",
"timestamp": "2026-10-07T07:58:19Z",
"data": {
"id": "inv_0M3K7V2",
"total": 4900,
"currency": "EUR"
}
}
}

A message with this eventId already exists; it is returned unchanged.

Media typeapplication/json
object
id
required
string
/^msg_[0-9A-HJKMNP-TV-Z]{26}$/
eventType
required

Letters, digits, -, _ and ., such as invoice.paid, but not exactly . or ...

string
>= 1 characters <= 256 characters /^(?:[a-zA-Z0-9_.-]*[a-zA-Z0-9_-][a-zA-Z0-9_.-]*|\.{3,})$/
eventId
required
string | null
payload
required

null in lists unless withPayload=true.

object | null
test
required

Sent with the test operation; not billed.

boolean
deliveryCount
required

How many endpoints the message fanned out to. 0 means no endpoint matched.

integer
createdAt
required

RFC 3339 in UTC with milliseconds.

string format: date-time
expiresAt
required

When the message and its deliveries are deleted: acceptance time plus the plan’s retention window. A downgrade can move it earlier; nothing moves it later.

string format: date-time

Example

{
"id": "msg_01JA30C5V8P2N4M6K8J0H2G4F6",
"eventType": "example",
"eventId": "example",
"payload": {},
"test": false,
"deliveryCount": 0,
"createdAt": "2026-10-10T09:52:28.123Z",
"expiresAt": "2026-10-10T09:52:28.123Z"
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Idempotent-Replayed
string
Allowed values: true

true when this response is a stored reply to an earlier request with the same Idempotency-Key.

The message was accepted and its deliveries are queued.

Media typeapplication/json
object
id
required
string
/^msg_[0-9A-HJKMNP-TV-Z]{26}$/
eventType
required

Letters, digits, -, _ and ., such as invoice.paid, but not exactly . or ...

string
>= 1 characters <= 256 characters /^(?:[a-zA-Z0-9_.-]*[a-zA-Z0-9_-][a-zA-Z0-9_.-]*|\.{3,})$/
eventId
required
string | null
payload
required

null in lists unless withPayload=true.

object | null
test
required

Sent with the test operation; not billed.

boolean
deliveryCount
required

How many endpoints the message fanned out to. 0 means no endpoint matched.

integer
createdAt
required

RFC 3339 in UTC with milliseconds.

string format: date-time
expiresAt
required

When the message and its deliveries are deleted: acceptance time plus the plan’s retention window. A downgrade can move it earlier; nothing moves it later.

string format: date-time

Example

{
"id": "msg_01JA30C5V8P2N4M6K8J0H2G4F6",
"eventType": "invoice.paid",
"eventId": "evt_inv_0M3K7V2",
"payload": {
"type": "invoice.paid",
"timestamp": "2026-10-07T07:58:19Z",
"data": {
"id": "inv_0M3K7V2",
"total": 4900,
"currency": "EUR"
}
},
"test": false,
"deliveryCount": 2,
"createdAt": "2026-10-10T09:52:28.123Z",
"expiresAt": "2026-11-09T09:52:28.123Z"
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Idempotent-Replayed
string
Allowed values: true

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.

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "trailers_not_allowed",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Idempotent-Replayed
string
Allowed values: true

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).

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "unauthorized",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Insufficient_scope or workspace_suspended: acceptance, test send, replay and recover are refused while suspended.

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "workspace_suspended",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

The object does not exist in this environment (not_found).

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "not_found",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Idempotent-Replayed
string
Allowed values: true

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).

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "request_timeout",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

The object’s state does not allow this request.

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "uid_taken",
"message": "A customer with uid \"acct_4821\" already exists.",
"param": "uid",
"errors": [],
"existingId": "cus_01JA2ZB4K6M8N0P2Q4R6S8T0V2",
"requestId": "8f3c2a91d4e7b605"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Idempotent-Replayed
string
Allowed values: true

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).

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "payload_too_large",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Idempotent-Replayed
string
Allowed values: true

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).

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "unsupported_media_type",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Idempotent-Replayed
string
Allowed values: true

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.

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

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"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Idempotent-Replayed
string
Allowed values: true

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.

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "rate_limited",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Retry-After
integer

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.

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "headers_too_large",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Hooktier failed; retry with backoff (internal_error).

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "internal_error",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Hooktier cannot accept the request right now; retry with backoff (unavailable).

Media typeapplication/json
object
error
required
object
code
required

Stable envelope code. New codes may be added; treat unknown ones by HTTP status. Field-level codes are FieldErrorCode.

string
Allowed values: invalid_json invalid_query invalid_cursor trailers_not_allowed unauthorized insufficient_scope workspace_suspended not_found request_timeout uid_taken name_taken delivery_not_replayable delivery_not_cancelable endpoint_disabled idempotency_in_progress secret_rotation_in_progress payload_too_large unsupported_media_type headers_too_large validation_failed idempotency_key_reused recover_window_too_large rate_limited plan_limit_reached test_limit_reached internal_error unavailable
message
required

For people; the wording may change.

string
param
required

The request field or parameter at fault.

string | null
errors
required

Per-field problems for validation_failed; empty otherwise.

Array<object>
object
param
required

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.

string
code
required

Stable field-level code, used only inside error.errors. New codes may be added.

string
Allowed values: required unknown_field invalid_type invalid_format too_short too_long out_of_range too_many duplicate parses_as_id url_not_https url_blocked_address url_port_not_allowed header_not_allowed headers_too_large header_invalid secret_invalid window_invalid
message
required
string
existingId
required

The ID of the object that already holds the uid or name, for uid_taken and name_taken.

string | null
requestId
required
string

Example

{
"error": {
"code": "unavailable",
"message": "Request refused.",
"param": null,
"errors": [],
"existingId": null,
"requestId": "example-request"
}
}
Request-Id
string

Identifies the request in Hooktier’s logs; equals error.requestId.

Retry-After
integer

Required on every 429; seconds to wait before retrying.