Dokumentasi API SunnyDay
  1. Calendars
Dokumentasi API SunnyDay
  • Introduction
  • Locations
    • Update Locations
      PUT
    • Get Location Data
      GET
  • Calendars
    • Calendars
      • Get Free Slots
        GET
      • Update Calendar
        PUT
      • Get Calendar
        GET
      • Delete Calendar
        DELETE
      • Get Calendars
        GET
      • Create Calendar
        POST
    • Calendar Groups
      • Get Groups
      • Create Calendar Group
      • Validate group slug
      • Delete Group
      • Update Group
      • Disable Group
    • Calendar Events
      • Create Appointment
      • Update Appointment
      • Get Appointment
      • Get Calendar Events
      • Get Blocked Slots
      • Create Block Slot
      • Update Block Slot
      • Delete Event
    • Appointment Notes
      • Get Notes
      • Create Note
      • Update Note
      • Delete Note
    • Calendar Resources: Rooms & Equipments
      • Get Calendar Resource
      • Update Calendar Resource
      • Delete Calendar Resource
      • List Calendar Resources
      • Create Calendar Resource
    • Calendar Notifications
      • Get notifications
  1. Calendars

Get Free Slots

GET
https://services.sunnyday.co.id/api/calendars/{calendarId}/free-slots
Get free slots for a calendar between a date range. Optionally a consumer can also request free slots in a particular timezone and also for a particular user.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Query Params

Header Params

Responses

🟢200200 OK
text/plain
Body

🟠400400 Bad Request
🟠401401 Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://services.sunnyday.co.id/api/calendars/ocQHyuzHvysMo5N5VsXc/free-slots?startDate=1548898600000&endDate=1601490599999&timezone=America/Chihuahua&userId=082goXVW3lIExEQPOnd3&userIds=' \
--header 'Version: 2021-07-28' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - 200 OK
{
  "_dates_": {
    "slots": [
      "string"
    ]
  }
}
Previous
Calendars
Next
Update Calendar
Built with