curl --request POST \
--url https://{subdomain}.mihu.ai/api/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Call customer",
"type": "make_call",
"contact": {
"phone_number": "+1234567890"
},
"agent_uuid": "your-agent-uuid-here",
"scheduled_at": "2025-12-01T14:00:00Z",
"auto_queue": true
}
'Tasks
Create a new task (Call or WhatsApp Template)
Creates a one-off task for an agent. Use make_call for outbound calls and send_message with task_data.message_type=whatsapp_template for WhatsApp template sends. Provide contact_uuid for an existing contact, or provide contact details so the API can find or create the contact by phone or email. Campaigns can also create tasks automatically; use this endpoint when you need a direct single task.
POST
/
api
/
v1
/
tasks
curl --request POST \
--url https://{subdomain}.mihu.ai/api/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Call customer",
"type": "make_call",
"contact": {
"phone_number": "+1234567890"
},
"agent_uuid": "your-agent-uuid-here",
"scheduled_at": "2025-12-01T14:00:00Z",
"auto_queue": true
}
'Authorizations
Body
application/json
Request body varies by task type. See examples for 'make_call' and 'send_message' (WhatsApp template).
Task type (REQUIRED). Use 'make_call' for calls, 'send_message' for WhatsApp templates. For WhatsApp, you must ALSO set task_data.message_type='whatsapp_template'
Available options:
make_call, send_message, send_email, follow_up, appointment, survey, notification, webhook, custom Response
Task created successfully
