Your lines, default line and calling preferences
const url = 'https://api.vocapable.com/v1/mobile/workspace/me/calling';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/me/calling \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
What the person reading needs to place a call: their lines and preferences.
object
A teammate named on a record: the id the server holds and the name to show.
object
The business line a call came from (E12-R1): the company’s own number, named.
object
The owner’s calling choices for the whole company. Every one defaults to off.
object
A teammate named on a record: the id the server holds and the name to show.
object
The person’s own weekly hours. A day that is absent or empty is not worked.
time_off lists date ranges off (at most 24, each at most a year); past ranges may
stay and simply no longer match.
object
object
One span of a working day, local to the hours’ timezone. 24:00 ends at midnight;
a shift across midnight is two windows.
object
Whole days off - a holiday, leave (PRD E11-R2). Local dates in the hours’ timezone, both inclusive; on these days the person is never rung, whatever the weekly hours say.
What the dispatcher, the receptionist’s transfer and the team page all read.
object
Example
{ "call_mode_preference": "app", "settings": { "allow_supervision": false, "summary_language": "spoken", "allow_offline_text_queue": false }, "ring_preference": "app_then_phone", "availability": { "state": "available", "presence_state": "available", "ring_preference": "app_then_phone" }}