Skip to content
HooktierDocs

List a customer's endpoints

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

GET
/customers/{customer}/endpoints
curl --request GET \
--url 'https://api.hooktier.com/v1/customers/example/endpoints?limit=50&order=asc' \
--header 'Authorization: Bearer <token>'
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.

limit
integer
default: 50 >= 1 <= 250

Page size.

cursor
string
<= 512 characters

The nextCursor of the previous page. Only valid with the same filters.

order
string
default: desc
Allowed values: asc desc

desc lists newest first.

A page of endpoints.

Media typeapplication/json
object
hasMore
required

Whether another page follows.

boolean
nextCursor
required

Pass as cursor to read the next page; null on the last page.

string | null
data
required
Array<object>
object
id
required
string
/^ep_[0-9A-HJKMNP-TV-Z]{26}$/
url
required

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.

string format: uri
<= 2048 characters
description
required
string
<= 500 characters
eventTypes
required

Event type names this endpoint receives; null means every type.

Array<string> | null
<= 100 items unique items
headerNames
required

Names of the custom headers; their values are never returned.

Array<string>
<= 20 items
rateLimit
required

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.

integer | null
>= 1 <= 1000
disabled
required
boolean
disabledReason
required

manual when you disabled it, auto_failing when it failed for 5 days without a success.

string | null
Allowed values: manual auto_failing
status
required

failing while attempts fail with no success since failingSince.

string
Allowed values: healthy failing disabled
failingSince
required
One of:

RFC 3339 in UTC with milliseconds.

string format: date-time
lastSuccessAt
required
One of:

RFC 3339 in UTC with milliseconds.

string format: date-time
metadata
required

Up to 20 string pairs for your own use. Keys 1–40 characters, values up to 500.

object
<= 20 properties
key
additional properties
string
<= 500 characters
createdAt
required

RFC 3339 in UTC with milliseconds.

string format: date-time
updatedAt
required

RFC 3339 in UTC with milliseconds.

string format: date-time

Example

{
"hasMore": false,
"nextCursor": null,
"data": []
}
Request-Id
string

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

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.

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.

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.