WatificationDocs
Hooks

Create a hook

Subscribes a URL to one event type for Zapier or Make REST hooks and returns a signing secret. The secret is shown only in this response; save it. A workspace can hold 50 hooks. Requires the hooks.manage scope. An event type that cannot be subscribed returns EVENT_TYPE_INVALID. A URL that is not allowed returns WEBHOOK_URL_INVALID. At 50 hooks the request returns HOOK_LIMIT.

Responses

StatusMeaning and codes
201Hook created. The secret is returned once.
400undefined
401undefined
403undefined
422undefined
429undefined

Success and handled error responses send Cache-Control: no-store and X-Correlation-ID (the resolved/generated UUID). Errors use application/problem+json and the reusable ProblemDetails schema below. Retry-After: 1 is sent only for RATE_LIMITED. Request examples read your key from a server environment variable; replace all fictional values.

Schemas and examples

POST
/hooks

Authorization

ApiKey
headerAuthorizationBearer <token>

Server-side API key. publicId is 12 lowercase base32 characters (a-z, 2-7); secret is 43 base64url characters from 32 random bytes. Use Authorization: Bearer <complete key>. The API key determines the workspace; requests cannot select another workspace. All public routes share 20 requests per second per key. See API-key authentication.

Header Parameters

X-Correlation-ID?string

Optional tracing ID. A UUID-shaped value is echoed in the response. Missing or invalid values are replaced with a generated UUID, not rejected.

Request Body

application/json
  1. body

Body for POST /hooks. Unknown fields are rejected.

url*string

HTTPS URL that receives the events.

Length1 <= length <= 2048
event*string

One subscribable event type, such as message.received or contact.created. See the webhook entries.

Length1 <= length <= 64
source*string
Value in"zapier""make""other"

Response Body

Hook created. The secret is returned once.

application/json
  1. response
id*string
Formatuuid
secret*string

Signing secret starting with whsec_. Shown only in this response.