Voice

Availability

Up to 3 open slots. Only slots returned here can be booked on this call. No calendar until RO-046: slots fall in the workspace's business hours (``/workspaces/current/business-hours``, provider ``business_hours``), else Mon-Fri defaults (provider ``business_hours_stub``).

API key access

This route has its own authentication (or none); an API key is not used here.
GET/api/v1/calls/{call_id}/availability
AuthorizationBearer <token>

Per-call token issued when the call was created (job metadata api_token).

In: header

Path Parameters

call_idstring
Formatuuid

Query Parameters

preference?string | null
Lengthlength <= 200

Header Parameters

X-Workspace-Id?string | null

Workspace of the call (must match the token).

Response Body

curl -X GET "http://localhost:8000/api/v1/calls/497f6eca-6276-4993-bfeb-53cbbbba6f08/availability?preference=string" \  -H "X-Workspace-Id: string"
{
  "slots": [
    {
      "id": "string",
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z",
      "label": "string"
    }
  ],
  "provider": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}