Create a CALL-E call task, wait for the terminal result, and read the structured output.
This quickstart uses the one-shot Calls API. If your application repeats a workflow that has already been authored and published in CALL-E, start with Goal Runs instead.
The minimum create request is task-only. Include the phone number directly in the task when CALL-E should infer the recipient from the instruction. Replace <E164_PHONE> with a phone number you own or are authorized to call.
Code
{ "task": "Call <E164_PHONE> and ask whether they can hear clearly."}
call = client.calls.create_and_wait( task="Call <E164_PHONE> and ask whether they can hear clearly.", result_schema={ "type": "object", "required": ["can_hear_clearly"], "properties": { "can_hear_clearly": {"type": "string", "enum": ["yes", "no", "unknown"]}, }, },)
Read the result
The terminal call task includes a stable status, a schema-valid structured result, and task-level outcome fields from the post-call summary. When CALL-E cannot produce a schema-valid result from the evidence, structured_result is null.