VocalDocscontracts 1.65.0

Read the Outcome of a Call

GET /v1/calls/{call_id}/outcomes

PropertyValue
Operationget_call_outcome
GroupOutcomes and analyses
Scopecalls:read
Scopes of include valuesvalues needs transcripts:read
Route classread
IdempotencyNo Idempotency-Key
AuditAn audited content read outcome.read, when the request names an include value
Released in1.56.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers the Call's Outcome (1.56.0, FR-calls-16): its status and every field of its schema with its method, confidence and, with calls:read, the value of each phi: false field whose type is not free text; include=values adds every other value, needs transcripts:read and is an audited content read. While an outcomes analysis retries a failed extraction the status is pending. A Call whose Agent version has no Outcome schema, or that is not finalized, has none: 404 not_found.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the calls:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/calls/call_.../outcomes" \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
call_idpathCallIdyesThe id of a Call: call_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
includequeryarray of OutcomeIncludenoContent classes to add, comma-separated: values answers every value, needs transcripts:read and makes the read an audited content read (1.56.0).

Responses

StatusContent typeShapeError codes
200application/jsonOutcome
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is Outcome.

FieldTypeRequiredDescription
agent_idAgentIdyes
agent_versionintegeryes
call_idCallIdyes
environmentEnvironmentyes
extracted_atTimestamp or nullyesNull while pending.
extraction_msinteger or nullyesHow long the extraction took, a measurement; null for a skipped Outcome.
fieldsmap of OutcomeValueyesEvery field of the schema by name, in the schema's order.
idOutcomeIdyes
object"outcome"yes
retriedbooleanyesTrue when an outcomes analysis retried a failed in-Session extraction over the stored, redacted transcript; a field whose source was redacted stays absent.
rollupOutcomeRollupResult or nullyesThe rollup field; null when the schema names none.
schema_sha256stringyesThe SHA-256 of the canonical Outcome schema that was filled.
scrubbed_atTimestamp or nullyesWhen the retention scrub nulled the values; null before.
statusOutcomeStatusyes