Get the endpoint's signing secret
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/ep_01JA2ZC7D9F1G3H5J7K9M1N3P5/secret';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.hooktier.com/v1/customers/example/endpoints/ep_01JA2ZC7D9F1G3H5J7K9M1N3P5/secret \ --header 'Authorization: Bearer <token>'Needs a full key even though it is a GET, because it reveals a secret.
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.
Responses
Section titled “Responses”The current signing secret.
object
A Standard Webhooks secret: whsec_ and padded standard base64 that decodes to
24–64 bytes.
Example
{ "key": "whsec_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}Headers
Section titled “Headers”Identifies the request in Hooktier’s logs; equals error.requestId.
Always no-store, because the body holds a secret.
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.
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.