WatificationDocs
Api referenceQuestions

Ask a question

Send an approved WhatsApp utility template with 2 or 3 quick-reply buttons and get the tapped answer back. The template must be APPROVED, category UTILITY, and have 2 or 3 quick-reply buttons and no other buttons. Do not send buttons; the server sets them. The first tap wins; later taps are ignored. Requires the messages.send scope. Track the answer with GET /questions/{questionId} or subscribe to the opt-in question.* webhooks.

An optional Idempotency-Key returns the original acceptance body on completed repeats.

Responses

StatusMeaning and codes
202Accepted. The question is awaiting a tap.
400undefined
401undefined
403undefined
404undefined
409undefined
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
/questions

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

Idempotency-Key?string

Optional string of at most 128 characters. Empty string is accepted by validation; use a unique non-empty value per request. Save it and reuse it if you are unsure whether the request succeeded. See each operation for which values must match on repeated requests.

Lengthlength <= 128
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

Target rules are checked by the service, as for send-message. Use exactly one of conversationId, contactId with channelConnectionId, or phone with channelConnectionId. Do not send buttons; the server sets them.

conversationId?string
Formatuuid
contactId?string
Formatuuid
phone?string

E.164 number with the leading plus sign.

Match^\+[1-9]\d{1,14}$
channelConnectionId?string
Formatuuid
senderId?string

Only accepted together with channelConnectionId.

Length1 <= length <= 128
templateId*string

An APPROVED UTILITY template with 2 or 3 quick-reply buttons.

Formatuuid
parameters?

Header and body only, same shape as the messages route. Sending buttons answers 422 QUESTION_BUTTONS_NOT_ALLOWED.

reference*string

Your own label for the question. Not unique.

Length1 <= length <= 128
expiresInSeconds?integer

Seconds until the question expires with no answer.

Range60 <= value <= 86400
Default300

Response Body

Accepted. The question is awaiting a tap.

application/json
  1. response
questionId*string
Formatuuid
messageId*|
Formatuuid
conversationId*string
Formatuuid
contactId*string
Formatuuid
status*"awaiting"
Value in"awaiting"
reference*string
expiresAt*string
Formatdate-time