VocalDocscontracts 1.65.0

Read a capture window with its reason

GET /v1/agents/{agent_id}/capture-windows/{capture_window_id}

PropertyValue
Operationget_capture_window
GroupCapture windows and reveal grants
Scopeagents:write
Route classread
IdempotencyNo Idempotency-Key
AuditAn audited content read capture_window.read
Released in1.57.0
Phase 0 hostServed (the hosted api pins 1.65.0)

One capture window of the Agent with its reason, an audited content read (1.57.0); the reason is null once scrubbed.

Request

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

curl "$VOCAL_API/v1/agents/agt_.../capture-windows/cpw_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
agent_idpathAgentIdyesThe id of an Agent: agt_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
capture_window_idpathCaptureWindowIdyesThe id of a verbose capture window on an Agent: cpw_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.

Responses

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

Fields of the 200 answer

The shape is CaptureWindow.

FieldTypeRequiredDescription
agent_idAgentIdyes
agent_versioninteger or nullyesThe one version the window captures; null for every version.
calls_capturedintegeryesThe Calls the window made verbose so far.
closed_atTimestamp or nullyesWhen a Member closed the window early.
closed_byActorRef or nullyes
created_atTimestampyes
created_byActorRefyes
ends_atTimestampyesstarts_at plus the duration; at most 24 hours later.
environmentEnvironmentyes
idCaptureWindowIdyes
max_callsintegeryes
object"capture_window"yes
reasonstring or nullnoWhy the window is opened, for the access review: free text, stored as a content pair and scrubbed at retention_days. Answered only by GET /v1/agents/{agent_id}/capture-windows/{capture_window_id}, an audited content read; null once scrubbed.
starts_atTimestampyes
statusCaptureWindowStatusyes