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
| Status | Meaning and codes |
|---|---|
| 202 | Accepted. The question is awaiting a tap. |
| 400 | undefined |
| 401 | undefined |
| 403 | undefined |
| 404 | undefined |
| 409 | undefined |
| 422 | undefined |
| 429 | undefined |
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
ApiKeyAuthorizationBearer <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.
Idempotency-Key?stringOptional 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.
length <= 128X-Correlation-ID?stringOptional tracing ID. A UUID-shaped value is echoed in the response. Missing or invalid values are replaced with a generated UUID, not rejected.
application/json- 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?stringuuidcontactId?stringuuidphone?stringE.164 number with the leading plus sign.
^\+[1-9]\d{1,14}$channelConnectionId?stringuuidsenderId?stringOnly accepted together with channelConnectionId.
1 <= length <= 128templateId*stringAn APPROVED UTILITY template with 2 or 3 quick-reply buttons.
uuidparameters?Header and body only, same shape as the messages route. Sending buttons answers 422 QUESTION_BUTTONS_NOT_ALLOWED.
reference*stringYour own label for the question. Not unique.
1 <= length <= 128expiresInSeconds?integerSeconds until the question expires with no answer.
60 <= value <= 86400300Accepted. The question is awaiting a tap.
application/json- response
questionId*stringuuidmessageId*|uuidconversationId*stringuuidcontactId*stringuuidstatus*"awaiting""awaiting"reference*stringexpiresAt*stringdate-time