Task - Make Call
Create a Task - Make Voice AI Call
Create a new task in a space to trigger a Voice AI outbound call
POST
Documentation Index
Fetch the complete documentation index at: https://docs.unpod.dev/llms.txt
Use this file to discover all available pages before exploring further.
Create a Task — Make Voice AI Call
Create a new task inside a given space using the space’s public token. You can assign the task to a pilot/agent, attach multiple documents (contacts), provide additional context, and schedule the execution.Prerequisites: Make sure you have your API Token, Space Token, and Agent Handle ready. See Authentication for details.
Endpoint
Path Parameters
Public token of the space where the task is created.
Get this from the Get All Spaces API — use the
token field.Headers
API Key in format:
Token <your-api-token>Must be
application/jsonRequest Body
Agent/pilot handle to assign the task to.
Array of document/contact objects. Each document represents one contact to call.
Additional context/objective for the task (applies to all contacts).
Schedule configuration. Example:
{"type": "now"}Response Fields
HTTP status code
Response message
Created task details
Common Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Task created successfully |
| 206 | Partial Content - Business logic error occurred |
| 400 | Bad Request - Invalid parameters provided |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Access denied to the resource |
| 404 | Not Found - Space or Agent not found |
| 500 | Internal Server Error - Server-side error |
Code Examples
Best Practices
- Pilot Handle: Use the correct agent handle from the Get All Agents API
- contact_number: Always include a valid
contact_numberin each document — this is required for call execution - Batch Calls: Pass multiple documents in the
documentsarray to trigger batch calls in a single request - Context: Provide clear, specific context to guide the agent’s conversation objectives
- Run ID: Store the returned
run_idto track task execution status using the Get All Runs API - Security: Keep API tokens secure and rotate them regularly
Authorizations
Format: Token
Headers
Organization domain handle
Example:
"unpod.tv"
Path Parameters
Example:
"8KZAMRAHSXXXXXXMAYNASMJC"
Body
application/json
Agent/pilot handle to assign the task
Example:
"space-agent-f1o3qjm1y7q1avvuynv4vprb1"
Array of contact/document objects
Additional context for the task
Example:
"Call the lead and discuss the project requirements."
Schedule configuration
Example:
{ "type": "now" }Response
Task created successfully