Skip to main content
POST

Body

application/json
task_type
enum<string>
required

The type of task to be executed.

Note: tasks need to be enabled at the project level

Available options:
SCHEDULE_APPOINTMENT,
VERIFY_INSURANCE,
REIMBURSEMENT,
CUSTOM_TASK
task
string
required

Main task description with sufficient detail for the voice agent

Example:

"Schedule a follow-up appointment with Dr. Smith for next week"

phone_number
string
required

The phone number in E.164 format (e.g., +15555555555)

Pattern: ^\+[1-9]\d{1,14}$
Example:

"+15555555555"

project_id
string<uuid>
required

UUID of the project this task belongs to

Example:

"123e4567-e89b-12d3-a456-426614174000"

patient_id
string<uuid>
required

UUID of the patient that this task is about

Example:

"123e4567-e89b-12d3-a456-426614174001"

task_data
Schedule Appointment Data · object

Data specific to scheduling appointments

Response

Task created successfully

id
string<uuid>

UUID of the created task

Example:

"123e4567-e89b-12d3-a456-426614174002"