TEMPLATE ID: DS-2227
Legal Services Appointment Booking Template
Welcome to our scheduling page, please select a service and date time to confirm your booking
Template preview
API
The free customizable booking templates with appointment management system and API to integrate in any app.
Time slots
You can use the API to generate time slots, check calendar availability, find available slots and book an appointment online for your services.
# Check calendar availability by date
curl --request GET
--url https://api.dayschedule.com/v1/availability/1?start=2024-07-01&end=2024-07-30&duration=30
--header 'Content-Type: application/json'
# Return available time slots
[
{
"date": "2024-07-17",
"capacity": 4,
"slots": [
{
"time": "2024-07-17T14:00:00+05:30",
"available": 1,
"users": [1411]
}
]
}
]
Booking
Send a POST request to create a booking for selected event and time slot by passing the resource_id, start dates etc.
# Check calendar availability by date
curl --request POST
--url https://api.dayschedule.com/v1/bookings
--header 'Content-Type: application/json'
--data
{
"resource":{
"resource_id":"1",
},
"host":{
"user_id":758
},
"start_at":"2024-07-10T09:00:00.000Z",
"end_at":"2024-07-10T09:30:00.000Z",
"invitees":[{
"name":"John Doe",
"email":"[email protected]"
"phone": "+91 9999912345"
"questions":[]
}]
}
# Return the confirmed booking object
Embed to website
- Install dayschedule-widget from NPM.
npm i dayschedule-widget
- Generate widget code
- Add JavaScript in header
- Paste the inline or popup code on your website