VocalDocscontracts 1.65.0

Read one analysis of a Call

GET /v1/calls/{call_id}/analyses/{analysis_id}

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

Answers one analysis (1.56.0; call-lifecycle-hooks-and-events.md section 3.9), with the metadata values; include=values adds every value, a summary included, needs transcripts:read and is an audited content read.

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_.../analyses/anl_..." \
  -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.
analysis_idpathAnalysisIdyesThe id of one analysis of a Call: anl_ 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/jsonAnalysis
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is Analysis.

FieldTypeRequiredDescription
advisorybooleanyesTrue when a judge produced the result and has not passed its calibration (section 3.5); false for summary and outcomes.
analysis_msinteger or nullyesHow long the analyzer ran, a measurement; null until settled.
analyzerAnalyzerRefyes
call_idCallIdyes
completed_atTimestamp or nullyesWhen it settled; null before.
created_atTimestampyes
environmentEnvironmentyes
error_codestring or nullyesWhy it failed or was skipped, such as transcript_unavailable; else null.
fieldsmap of AnalysisFieldyesThe output fields with their types and phi flags; configuration.
idAnalysisIdyes
inputAnalysisInputFactsyes
job_idJobId or nullyesThe call.analyze job that runs it.
object"analysis"yes
providerAnalysisProvider or nullyesNull before the run.
runintegeryes
scrubbed_atTimestamp or nullyesWhen the retention scrub nulled the values with the Call; null before.
statusAnalysisStatusyes
usageAnalysisUsage or nullyesNull until settled.
valuesAnalysisValues or nullyesThe values this read may answer: those of phi: false fields of a type that is not free text, and with include=values every value. Null until completed, and once scrubbed.