Decline a receptionist transfer ringing in your app (the AI takes a message)
POST
/v1/workspace/handoffs/{handoff_id}/decline
const url = 'https://api.vocapable.com/v1/workspace/handoffs/example/decline';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"then":"take_message"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/workspace/handoffs/example/decline \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "then": "take_message" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”handoff_id
required
Handoff Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
LiveHandoffDecline
Decline the transfer ringing in your app. The caller goes back to the receptionist,
which offers to take a message (take_message); your personal phone is not rung.
object
then
Then
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
LiveHandoffOffer
A receptionist transfer ringing for you, as the server sees it (PRD E3-R11/E4-R7).
state: ringing_app (your app is ringing), ringing_phone (the app was not
answered; your verified phone is being rung), connecting (you answered; the caller is
being moved to you), connected (the carrier confirmed the caller joined you),
declined (you declined; the receptionist offers the caller to take a message),
missed (nobody answered), ended, reassigned (E4-R7: the caller was sent to
a teammate before you answered; your ring is cancelled).
object
handoff_id
required
Handoff Id
string
state
required
State
string
yours
required
Yours
boolean
observed_at
required
Observed At
string format: date-time
can_redirect
required
Can Redirect
boolean
Example
{ "state": "ringing_app"}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": {} } ]}