Who is calling and why, while the AI receptionist's transfer rings your app (the context card, PRD E3-R5)
GET
/v1/mobile/workspace/handoffs/{handoff_id}/context
const url = 'https://api.vocapable.com/v1/mobile/workspace/handoffs/example/context';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.vocapable.com/v1/mobile/workspace/handoffs/example/context \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”handoff_id
required
Handoff Id
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkspaceCallContext
What a person needs to know about the caller before and during the call.
Loaded from the server once the ring is reported (push payloads stay ID-only), by the handler, the teammate a transfer or three-way invitation is ringing, or anyone picking up a parked caller. Every field is null when it is not known.
object
line
required
Any of:
WorkspaceCallLine
The business line a call came from (E12-R1): the company’s own number, named.
object
id
required
Id
string
name
required
Name
string
phone_e164
required
Phone E164
string
null
need
required
Any of:
WorkspaceContextNeed
object
text
required
Text
string
source
required
Source
string
null
last_interaction
required
Any of:
WorkspaceContextInteraction
null
open_deal
required
Any of:
WorkspaceCallLinkRef
One piece of work a call is linked to, as the handler may see it.
object
id
required
Id
string
title
required
Title
string
state
required
State
string
revision
required
Revision
integer
null
open_case
required
Any of:
WorkspaceCallLinkRef
One piece of work a call is linked to, as the handler may see it.
object
id
required
Id
string
title
required
Title
string
state
required
State
string
revision
required
Revision
integer
null
promised_callback
required
Any of:
WorkspaceContextCallback
object
task_id
required
Task Id
string
title
required
Title
string
owner
required
Any of:
WorkspacePersonRef
A teammate named on a record: the id the server holds and the name to show.
object
user_id
required
User Id
string
name
required
Name
string
null
null
flags
required
Any of:
WorkspaceContextFlags
The DNC / consent badge. do_not_contact wins over everything else.
object
do_not_contact
required
Do Not Contact
boolean
consent
required
Consent
string
badge
required
Badge
string
null
ai_handled
required
Ai Handled
boolean
ai_written
Ai Written
Array<string>
Example
{ "need": { "source": "ai_handoff" }, "flags": { "consent": "recorded" }, "ring_kind": "queue"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}