Skip to main content
GET
/
calendar
/
shifts
/
by-date
Get Shifts By Date
curl --request GET \
  --url https://api.decodahealth.com/calendar/shifts/by-date \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
{
  "date": "<string>",
  "providers": [
    {
      "provider": {
        "id": "<string>",
        "firstName": "<string>",
        "lastName": "<string>",
        "email": "<string>",
        "createdDate": "2023-11-07T05:31:56Z"
      },
      "shifts": [
        {
          "id": "<string>",
          "title": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "end": "2023-11-07T05:31:56Z",
          "type": "APPOINTMENT",
          "status": "PENDING",
          "location": {
            "id": "<string>",
            "isVirtual": true
          },
          "attendees": [],
          "recurringEventId": "<string>",
          "recurringEvent": {
            "id": "<string>",
            "rrule": "<string>",
            "startDate": "2023-11-07T05:31:56Z",
            "durationMinutes": 123,
            "timezone": "<string>",
            "type": "APPOINTMENT",
            "title": "<string>",
            "organizerId": "<string>",
            "serviceIds": [
              "<string>"
            ],
            "capacity": 123,
            "attendeeIds": [
              "<string>"
            ],
            "locationId": "<string>"
          },
          "eventServices": [],
          "icons": [],
          "capacity": 123
        }
      ],
      "appointments": [
        {
          "id": "<string>",
          "title": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "end": "2023-11-07T05:31:56Z",
          "type": "APPOINTMENT",
          "status": "PENDING",
          "location": {
            "id": "<string>",
            "isVirtual": true
          },
          "attendees": [],
          "recurringEventId": "<string>",
          "recurringEvent": {
            "id": "<string>",
            "rrule": "<string>",
            "startDate": "2023-11-07T05:31:56Z",
            "durationMinutes": 123,
            "timezone": "<string>",
            "type": "APPOINTMENT",
            "title": "<string>",
            "organizerId": "<string>",
            "serviceIds": [
              "<string>"
            ],
            "capacity": 123,
            "attendeeIds": [
              "<string>"
            ],
            "locationId": "<string>"
          },
          "eventServices": [],
          "icons": [],
          "capacity": 123
        }
      ]
    }
  ]
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Query Parameters

date
string
required

Date in YYYY-MM-DD format

Response

Successful Response

date
string
required
providers
ProviderShiftsData · object[]
required