Book one server-issued handoff calendar slot
POST
/v1/mobile/receptionist/handoffs/{handoff_id}/booking
const url = 'https://api.vocapable.com/v1/mobile/receptionist/handoffs/example/booking';const options = { method: 'POST', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"slot_id":"example"}'};
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/mobile/receptionist/handoffs/example/booking \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "slot_id": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”handoff_id
required
Handoff Id
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string
Unique key for this mobile booking request, so a retry replays the original calendar receipt instead of creating another invitation. Stored for 24 hours; a replay carries Idempotent-Replay: true.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
MobileHandoffBookingCreateRequest
Book exactly one prior server-issued availability snapshot.
Notes and attendee fields are deliberately absent. The server derives the contact’s current invitation identity from the authorized carrier handoff, and v1 never turns a receptionist phone into a generic calendar-event composer.
object
slot_id
required
Slot Id
string
Examplegenerated
{ "slot_id": "example"}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
MobileHandoffBookingReceipt
A privacy-minimized receipt for one server-authorized handoff booking.
object
id
required
Id
string
handoff_id
required
Handoff Id
string
starts_at
required
Starts At
string format: date-time
ends_at
required
Ends At
string format: date-time
timezone
required
Timezone
string
status
required
Status
string
booked_at
required
Booked At
string format: date-time
Example
{ "status": "calendar_event_created"}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": {} } ]}