curl --request POST \
--url https://api.example.com/api/public/ticket/open/web-whatsapp/{phoneId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"to_phone_number": 2,
"contact_metadata": {},
"ticket_metadata": {},
"integration_data": {},
"message": {
"templateId": "<string>",
"content": "<string>",
"ai_generated": true
},
"stage_id": "<string>"
}
'curl --request POST \
--url https://api.example.com/api/public/ticket/open/web-whatsapp/{phoneId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"to_phone_number": 2,
"contact_metadata": {},
"ticket_metadata": {},
"integration_data": {},
"message": {
"templateId": "<string>",
"content": "<string>",
"ai_generated": true
},
"stage_id": "<string>"
}
'API key needed to authorize the request
x >= 1Show child attributes
Show child attributes
Show child attributes
Show child attributes
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Ticket created successfully
Was this page helpful?