Whether your company can call from the browser
GET
/v1/workspace/voice
const url = 'https://api.vocapable.com/v1/workspace/voice';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/workspace/voice \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkspaceVoiceStatus
Whether this company’s people can call from the browser, and what is missing.
object
state
required
State
string
code
required
Code
string
message
required
Message
string
recovery
required
Recovery
string
can_set_up
required
Can Set Up
boolean
incoming_push
Any of:
WorkspaceIncomingPush
Whether a backgrounded or locked phone can be rung, per platform. Non-fatal: browser calling works whatever this says.
object
apns
required
Apns
string
fcm
required
Fcm
string
errors
Errors
object
key
additional properties
string
null
Example
{ "state": "ready", "code": "ready", "incoming_push": { "apns": "ready", "fcm": "ready" }}