Skip to main content
POST

Overview

Dispositions are enabled per organization. If your organization does not have access, these endpoints return 404.
Runs one published version of a disposition on calls the agent has already taken. Poll Get Disposition Backfill for progress, then read results with List Call Disposition Runs, where they replace each call’s earlier result. Calls this version already completed are skipped, and no webhooks are sent. Backfills bill like production runs. Price one first with Estimate Disposition Cost. Requires an admin, owner, operator, or prompter role.

Headers

string
required
Your API key for authentication. Use a full-access key.

Path Parameters

string
required
The agent’s unique identifier. Must be a UUID; otherwise returns 400 with the message agentId must be a valid UUID. Returns 404 Agent not found if the agent is not in your organization.
string
required
The disposition’s unique identifier. Must be a UUID; otherwise returns 400 with the message dispositionId must be a valid UUID. Returns 404 Disposition not found if it does not belong to this agent.

Body Parameters

Send window or callIds, not both. Mixing them, or adding unknown fields, returns 400 BAD_REQUEST with the message Invalid request body.
string
The version to run. Defaults to the published version, and returns 409 CONFLICT if the disposition has never been published. Older published versions work; a draft returns 400. Returns 404 Disposition version not found if it does not belong to this disposition.
object
The date range to cover, as { "start", "end" }. Both are ISO 8601 timestamps with a time zone, such as 2026-08-01T00:00:00Z. start is included and end is not. The range can span at most 92 days and start at most 400 days ago.Completed calls of this agent with a non-zero duration are eligible. Simulations are not. Returns 400 if no calls are eligible, or if more than 500,000 are.
number
default:"1"
Fraction of the eligible calls in window to run, from 0.0001 to 1, with at most five decimals. The same calls are picked each time.
array
1 to 500 unique call UUIDs. Every call must belong to this agent and be a completed production call with non-zero duration, otherwise 400 with the message One or more selected calls are not eligible completed production calls for this agent. Calls excluded for compliance reasons return 400 listing the offending IDs. The window date limits apply here too.

Response

Returns 201 on success with the backfill in queued status. Returns 409 CONFLICT if this version already has a queued or running backfill. Returns 403 FORBIDDEN if backfills are off for your organization. Returns 402 PAYMENT_REQUIRED if your organization pays from a credit balance and the estimated cost is more than the balance left after your other running backfills. Returns 503 SERVICE_UNAVAILABLE if the backfill could not be started; the request can be retried. An organization can make 10 requests per hour, counting backfill estimates.
object
The new backfill.
null | array
null on success, or a list of error objects if the request failed.

Docs for agents: llms.txt