Have the agent ring a number with a task
Have this agent ring one Australian number to do a task and bring back answers. The agent says it's an AI assistant calling on behalf of `onBehalfOf`, does `task`, asks for each field in `answers`, then thanks them and ends the call. It hangs up on voicemail, never books a call back, and stops at `maxMinutes`. Returns `callId` with status `ringing`; poll get_placed_call with that id for the status, the billable minutes, the answers, a summary and the transcript. Needs outbound calling (the Scale plan), a published agent with a voice channel, and a number that isn't on the workspace's do-not-call list. At most 10 placed calls run at once per workspace. It's a billed call. You must have the right to call the number.
Authorization
bearerAuth A personal access token from Settings > API tokens.
In: header
Path Parameters
Workspace slug (GET /me lists yours).
Agent slug within the workspace.
Header Parameters
A key you choose, such as a UUID, that makes this POST safe to retry. Within 24 hours the same key and request answers with the first successful answer and runs nothing, the same key with a different request answers 422 idempotency_key_reused, and a key whose request is still running answers 409 idempotency_key_in_use. A failed request keeps nothing, so the same key runs it again.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/workspaces/string/agents/string/placed-calls" \ -H "Content-Type: application/json" \ -d '{ "to": "string", "onBehalfOf": "string", "task": "string" }'{
"callId": "string",
"status": "string",
"property1": null,
"property2": null
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}List calls GET
List this agent's calls, newest first, each with its sessionId, agent name, the caller's number and name, channel, sentiment/outcome, the analysis summary, topic and urgency, its length in seconds, and a coarse metric pass/fail summary. Call this FIRST to resolve a sessionId before get_call_bundle, get_call_metrics or evaluate_call. Narrow it with since, until and outcome; page through older calls by passing back next_cursor until it is null. Real calls only by default; pass includeTests=true to widen to test and discovery calls. Eval runs never appear here.
Have the agent ring your phone POST
Call the operator's verified mobile and run the agent's CURRENT DRAFT over a real phone call, so they can hear unsaved/unpublished edits live (the assistant-invokable twin of the Call-me button; both dial the current draft). The dialed number is always the caller's own phone-verified AU mobile, there is no number input. Limited to 3 calls per hour per workspace. If the caller's mobile isn't verified, this returns an error telling them to verify it in Preferences → Profile. Use it to let the operator hear their latest changes on a real line; for a fast headless check of the draft without a phone, use talk_to_agent instead.