Skip to main content
GET
/
calendar
/
self-schedule
/
availability
Get Availability
curl --request GET \
  --url https://api.decodahealth.com/calendar/self-schedule/availability \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
[
  {
    "date": "2023-11-07T05:31:56Z",
    "morning": [
      {
        "start": "2023-11-07T05:31:56Z",
        "end": "2023-11-07T05:31:56Z",
        "serviceId": "<string>",
        "providerId": "<string>",
        "locationId": "<string>"
      }
    ],
    "afternoon": [
      {
        "start": "2023-11-07T05:31:56Z",
        "end": "2023-11-07T05:31:56Z",
        "serviceId": "<string>",
        "providerId": "<string>",
        "locationId": "<string>"
      }
    ],
    "evening": [
      {
        "start": "2023-11-07T05:31:56Z",
        "end": "2023-11-07T05:31:56Z",
        "serviceId": "<string>",
        "providerId": "<string>",
        "locationId": "<string>"
      }
    ]
  }
]

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Query Parameters

provider_id
string | null
service_id
string
required
location_id
string
required
start
string<date-time> | null
end
string<date-time> | null

Response

Successful Response

date
string<date-time>
required
morning
Availability · object[]
required
afternoon
Availability · object[]
required
evening
Availability · object[]
required