Create a new task in a space to trigger a Voice AI outbound call
| Name | Type | Required | Description |
|---|---|---|---|
| space_token | string | Yes | Public token of the space where task is created |
space_token by hitting the Get All Spaces API. The token field in the response is your Space Token.| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | API Key format: Token <token> |
| Content-Type | string | Yes | application/json |
| Field | Type | Required | Description |
|---|---|---|---|
| pilot | string | Yes | Agent/pilot handle to assign the task |
| documents | array | Yes | Array of document/contact objects with data |
| context | string | No | Additional context/objective for the task |
| schedule | object | No | Schedule configuration (e.g., {"type": "now"}) |
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Contact name |
| string | No | Contact email address | |
| contact_number | string | Yes | Primary contact phone number |
| alternate_number | string | No | Alternate contact phone number |
| occupation | string | No | Contact’s occupation |
| company_name | string | No | Contact’s company name |
| address | string | No | Contact’s address |
| about | string | No | Additional info about the contact |
| context | string | No | Per-contact context for the call |
| labels | array | No | Labels/tags associated with the record |
| title | string | No | Document title |
| description | string | No | Document description |
| document_id | string | No | Unique document identifier |
| Field | Type | Description |
|---|---|---|
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | object | Created task details |
| Field | Type | Description |
|---|---|---|
| run_id | string | Created run identifier |
| task_ids | array | Array of created task identifiers |
| status | string | Task status (initially pending) |
| 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 |
contact_number in each document — this is required for call executiondocuments array to trigger batch calls in a single requestrun_id to track task execution status using the Get All Runs APIFormat: Token
Organization domain handle
"unpod"
"8KZRTQP7BNW5XEDLORYUHMJC"
Task created successfully