Guides
Interactive messages
Reply buttons, lists, URL buttons, Flows and location requests, and how the test customer answers each of them.
Interactive messages use type: "interactive" and, like text, need an open customer service window. Mimicr validates Meta's limits and answers 131009 when one is broken.
Reply buttons
curl --request POST \
--url https://whatsapp.mimicr.dev/v24.0/424361664134261/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"messaging_product": "whatsapp",
"to": "5511987654321",
"type": "interactive",
"interactive": {
"type": "button",
"body": { "text": "Como podemos ajudar?" },
"action": { "buttons": [
{ "type": "reply", "reply": { "id": "RASTREIO", "title": "Rastrear pedido" } },
{ "type": "reply", "reply": { "id": "HUMANO", "title": "Falar com atendente" } }
] }
}
}'1 to 3 buttons, title up to 20 characters, unique id up to 256. header (text up to 60, or image, video, document) and footer (up to 60) are optional.
Make the customer tap the button:
curl --request POST \
--url https://api.mimicr.dev/v1/whatsapp/docs/contacts/5511987654321/reply \
--header 'Authorization: Bearer mk_...' \
--header 'Content-Type: application/json' \
--data '{ "type": "button", "message_id": "<wamid>", "title": "Rastrear pedido" }'Your app receives type: "interactive" with interactive.button_reply (id and title) and context.id pointing to the message with the buttons. Instead of title, use index (0-based).
List
{
"messaging_product": "whatsapp",
"to": "5511987654321",
"type": "interactive",
"interactive": {
"type": "list",
"body": { "text": "Escolha o produto" },
"action": {
"button": "Ver opções",
"sections": [{ "title": "Gás", "rows": [
{ "id": "P13", "title": "Botijão P13", "description": "13 kg" },
{ "id": "P45", "title": "Cilindro P45" }
] }]
}
}
}Up to 10 sections and 10 rows in total; button up to 20 characters, row title up to 24, description up to 72, section title up to 24 (required with more than one section). The customer picks with {"type": "list", "message_id": "<wamid>", "row_id": "P13"} and interactive.list_reply arrives.
URL button (cta_url)
{
"messaging_product": "whatsapp",
"to": "5511987654321",
"type": "interactive",
"interactive": {
"type": "cta_url",
"body": { "text": "Acompanhe seu pedido" },
"action": { "name": "cta_url", "parameters": { "display_text": "Abrir", "url": "https://exemplo.com/p/123" } }
}
}Tapping a URL button does not produce a webhook.
Location request
{
"messaging_product": "whatsapp",
"to": "5511987654321",
"type": "interactive",
"interactive": { "type": "location_request_message", "body": { "text": "Envie sua localização" }, "action": { "name": "send_location" } }
}The customer answers with {"type": "location", "latitude": -23.56, "longitude": -46.65, "name": "Casa"} and a type: "location" message arrives.
Flows
{
"messaging_product": "whatsapp",
"to": "5511987654321",
"type": "interactive",
"interactive": {
"type": "flow",
"body": { "text": "Agende sua entrega" },
"action": { "name": "flow", "parameters": { "flow_id": "786543210987654", "flow_cta": "Agendar", "flow_token": "pedido-1042" } }
}
}The customer completes the Flow with {"type": "flow", "message_id": "<wamid>", "response_json": {"data": "2026-11-10"}} and interactive.nfm_reply arrives with response_json (a JSON string that includes the flow_token). In Mimicr, the Flow is not rendered: only the final answer is simulated. Create and publish Flows with Create a Flow.
Other types
product, product_list and catalog_message are accepted and recorded, without a simulated catalog.
Automatic replies
In auto mode, the fast_responder persona taps the first reply button on 30% of marketing messages, and a persona with rules.reply.kind = "first_quick_reply" does the same with the probability you set. See Sandbox testing.