cURL
curl --request POST \ --url https://api.z-api.io/instances/{instanceId}/token/{token}/send-option-list \ --header 'Client-Token: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "phone": "<string>", "message": "<string>", "optionList": { "title": "<string>", "buttonLabel": "<string>", "options": [ { "title": "<string>", "description": "<string>", "id": "<string>" } ] } } '
Send a message with a selectable option list
Documentation IndexFetch the complete documentation index at: https://developer.z-api.io/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://developer.z-api.io/llms.txt
Use this file to discover all available pages before exploring further.
Show Properties
{ "phone": "5511999999999", "message": "Select the best option:", "optionList": { "title": "Available options", "buttonLabel": "Open option list", "options": [ { "id": "1", "description": "Z-API Wings for your imagination", "title": "Z-API" }, { "id": "2", "description": "Don't work", "title": "Others" } ] } }
{ "zaapId": "3999984263738042930CD6ECDE9VDWSA", "messageId": "D241XXXX732339502B68", "id": "D241XXXX732339502B68" }