Developer Workflows
Build With the MyCaly REST API & Webhooks
Understand how MyCaly endpoints chain together for appointment booking, webinar registration, CRM contact sync, and signed real-time webhooks.
Skip scanning dozens of standalone endpoints. Pick a real integration flow below, inspect the exact request and response chain, and test live in our interactive API docs.
https://meethour.mycaly.io/api/v1
- JSON REST API v1 (60 req/min)
- Sanctum Bearer Token Auth
- HMAC-SHA256 Signed Webhooks
curl -X POST "https://meethour.mycaly.io/api/v1/auth/login" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"email": "you@company.com",
"password": "your-password",
"device_name": "CRM Integration"
}'
# Include the returned token on protected endpoints:
# Authorization: Bearer 1|9xK3...token_hash
Generate a personal access token in API & Webhooks (or via POST /api/v1/auth/login) and include it as a Bearer header on protected endpoints.
How Authentication and Endpoints Fit Together
Protected endpoints require a Bearer token from a plan with REST API access enabled, while public endpoints let booking widgets and webinar forms run client-side.
Create Your API Token
Generate personal access tokens in your dashboard under API & Webhooks, or mint scoped tokens programmatically with POST /api/v1/auth/tokens.
Send Bearer Authorization
Attach Authorization: Bearer <token> and Accept: application/json on protected calls. All responses share a { success, message, data } envelope.
Public Client Endpoints
Use GET /events/{id}/available-slots and POST /webinars/{id}/register directly in booking widgets without exposing private API credentials.
Follow End-to-End Request Chains
Select a workflow, then click any step to inspect how IDs and slots flow from one endpoint into the next.
Build a Custom Booking Experience
Load your active event types, check open slots for a target date, then create, reschedule, or cancel the appointment.
curl -X GET "https://meethour.mycaly.io/api/v1/events?per_page=10" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"success": true,
"message": "Events retrieved successfully.",
"data": {
"events": [
{
"id": 12,
"name": "30-Min Consultation",
"event_link": "30-min-consultation",
"slot_time": 30,
"event_location": 2,
"status": true,
"share_url": "/s/ali/30-min-consultation"
}
],
"pagination": { "total": 1, "per_page": 10, "current_page": 1, "last_page": 1 }
}
}
curl -X GET "https://meethour.mycaly.io/api/v1/events/12/available-slots?date=2026-12-10&timezone=America/New_York" \
-H "Accept: application/json"
{
"success": true,
"message": "Available slots retrieved successfully.",
"data": {
"event_id": 12,
"event_name": "30-Min Consultation",
"slot_duration_minutes": 30,
"date": "2026-12-10",
"slots": [
"09:00 AM - 09:30 AM",
"10:00 AM - 10:30 AM",
"02:00 PM - 02:30 PM"
]
}
}
curl -X POST "https://meethour.mycaly.io/api/v1/bookings" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"event_id": 12,
"schedule_date": "2026-12-10",
"slot_time": "09:00 AM - 09:30 AM",
"name": "Alex Rivera",
"email": "alex@example.com",
"phone_number": "+14155550140"
}'
{
"success": true,
"message": "Appointment booked successfully.",
"data": {
"id": 408,
"uuid": "8f3c2e10-7b1d-4d62-a210-91b7c4f0192e",
"event_id": 12,
"schedule_date": "2026-12-10",
"slot_time": "09:00 AM - 09:30 AM",
"status": 1,
"status_text": "Booked",
"source": "api",
"meeting": {
"meeting_url": "https://meethour.io/room-408",
"meeting_id": "mh_408"
}
}
}
POST /bookings/{id}/reschedule
POST /bookings/{id}/cancel
Automate Live Webinars & Registrations
Provision webinar events, enroll attendees from your own landing page form, and sync or cancel registrations via API.
curl -X POST "https://meethour.mycaly.io/api/v1/webinars" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "Product Launch Live Q&A",
"event_link": "launch-qa",
"slot_time": 60,
"event_location": 2,
"schedule_from": "2026-12-15 14:00:00",
"schedule_to": "2026-12-15 15:00:00"
}'
{
"success": true,
"message": "Webinar created successfully.",
"data": {
"id": 54,
"name": "Product Launch Live Q&A",
"event_link": "launch-qa",
"schedule_from": "2026-12-15 14:00:00",
"schedule_to": "2026-12-15 15:00:00",
"slot_time": 60,
"status": true,
"share_url": "/s/ali/launch-qa"
}
}
PATCH /webinars/{id}/status
curl -X POST "https://meethour.mycaly.io/api/v1/webinars/54/register" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "Sara Kim",
"email": "sara@example.com",
"phone_number": "+14155550192"
}'
{
"success": true,
"message": "Webinar registration successful.",
"data": {
"id": 915,
"event_id": 54,
"schedule_date": "2026-12-15",
"slot_time": "10:00 AM - 11:00 AM",
"guest": {
"name": "Sara Kim",
"email": "sara@example.com",
"phone": "+14155550192"
},
"status_text": "Booked"
}
}
curl -X GET "https://meethour.mycaly.io/api/v1/webinars/54/attendees?per_page=50" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"success": true,
"message": "Webinar attendees retrieved successfully.",
"data": {
"webinar_id": 54,
"webinar_name": "Product Launch Live Q&A",
"attendees": [
{
"id": 915,
"schedule_date": "2026-12-15",
"guest": { "name": "Sara Kim", "email": "sara@example.com" },
"status_text": "Booked"
}
],
"pagination": { "total": 1, "per_page": 50, "current_page": 1, "last_page": 1 }
}
}
POST /webinars/{id}/attendees/{attendeeId}/cancel
Keep Contacts & Booking History in Sync
Search existing contacts, idempotently upsert leads by email, and pull linked appointment history per contact.
curl -X GET "https://meethour.mycaly.io/api/v1/contacts?search=alex&per_page=20" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"success": true,
"message": "Contacts retrieved successfully.",
"data": {
"contacts": [
{
"id": 77,
"name": "Alex Rivera",
"email": "alex@example.com",
"phone_number": "+14155550140",
"billing_address": "123 Market St, San Francisco, CA"
}
],
"pagination": { "total": 1, "per_page": 20, "current_page": 1, "last_page": 1 }
}
}
curl -X POST "https://meethour.mycaly.io/api/v1/contacts" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "Alex Rivera",
"email": "alex@example.com",
"phone_number": "+14155550140",
"billing_address": "123 Market St, San Francisco, CA"
}'
{
"success": true,
"message": "Contact saved successfully.",
"data": {
"id": 77,
"name": "Alex Rivera",
"email": "alex@example.com",
"phone_number": "+14155550140",
"billing_address": "123 Market St, San Francisco, CA"
}
}
PUT /contacts/{id}
curl -X GET "https://meethour.mycaly.io/api/v1/contacts/77" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"success": true,
"message": "Contact details retrieved successfully.",
"data": {
"contact": {
"id": 77,
"name": "Alex Rivera",
"email": "alex@example.com"
},
"bookings": [
{
"id": 408,
"event_id": 12,
"schedule_date": "2026-12-10",
"slot_time": "09:00 AM - 09:30 AM",
"status_text": "Booked"
}
]
}
}
Subscribe, Test, and Audit Real-Time Webhooks
Register HTTPS endpoints for booking, webinar, contact, and payment events, verify with a test ping, and audit delivery logs.
curl -X POST "https://meethour.mycaly.io/api/v1/webhooks" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "CRM Listener",
"target_url": "https://api.yourapp.com/webhooks/mycaly",
"events": ["booking.created", "booking.rescheduled", "webinar.registrant_added"]
}'
{
"success": true,
"message": "Webhook subscription registered successfully.",
"data": {
"id": 9,
"name": "CRM Listener",
"target_url": "https://api.yourapp.com/webhooks/mycaly",
"secret": "a9c8f7d6e5b4...",
"events": ["booking.created", "booking.rescheduled", "webinar.registrant_added"],
"is_active": true
}
}
curl -X POST "https://meethour.mycaly.io/api/v1/webhooks/9/test" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"success": true,
"message": "Test webhook dispatched.",
"data": {
"id": 102,
"webhook_endpoint_id": 9,
"event_type": "endpoint.test",
"response_status": 200,
"attempt": 1,
"delivered_at": "2026-12-03T12:45:00+00:00",
"error_message": null
}
}
curl -X GET "https://meethour.mycaly.io/api/v1/webhooks/9/deliveries?per_page=20" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"success": true,
"message": "Delivery logs retrieved successfully.",
"data": {
"deliveries": [
{
"id": 102,
"webhook_endpoint_id": 9,
"event_type": "endpoint.test",
"response_status": 200,
"attempt": 1,
"delivered_at": "2026-12-03T12:45:00+00:00",
"error_message": null
}
],
"pagination": { "total": 1, "per_page": 20, "current_page": 1, "last_page": 1 }
}
}
Verify Every Incoming Webhook With HMAC-SHA256
Every outgoing webhook carries three custom headers and a JSON envelope so your server can verify authenticity before triggering downstream automation.
Request Headers Sent by MyCaly
-
X-SignatureHex-encoded HMAC-SHA256 digest of the exact raw JSON body signed with your endpoint secret.
-
X-Event-TypeDot-notated event name such as booking.created, booking.rescheduled, or webinar.registrant_confirmed.
-
X-Event-IdUnique event identifier (evt_...) useful for idempotency checks across retries.
Key Supported Events
You can subscribe to explicit event names or use "*" when registering a webhook endpoint.
booking.created, booking.pending_approval, booking.confirmed, booking.declined, booking.rescheduled, booking.cancelled
webinar.created, webinar.updated, webinar.registrant_added, webinar.registrant_confirmed, webinar.registrant_cancelled
contact.created, contact.updated, contact.deleted, payment.completed, payment.failed
Signature Verification Example
Compute HMAC-SHA256 over the raw request body using your endpoint secret and compare with a constant-time equality function.
import crypto from 'node:crypto';
// Use express.raw({ type: 'application/json' }) so req.body stays unparsed
const expected = crypto
.createHmac('sha256', process.env.MYCALY_WEBHOOK_SECRET)
.update(req.body)
.digest('hex');
const signature = req.get('X-Signature') || '';
const isValid =
expected.length === signature.length &&
crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
if (!isValid) return res.status(401).send('Invalid webhook signature');
const payload = JSON.parse(req.body.toString('utf8'));
$rawBody = file_get_contents('php://input');
$headerSignature = $_SERVER['HTTP_X_SIGNATURE'] ?? '';
$expected = hash_hmac('sha256', $rawBody, $webhookSecret);
if (! hash_equals($expected, $headerSignature)) {
http_response_code(401);
exit('Invalid webhook signature');
}
$event = json_decode($rawBody, true);
// Process $event['id'], $event['event'], $event['data']
{
"id": "evt_7f8e9d10c2b3a4f5e6d7c8b9",
"event": "booking.created",
"timestamp": "2026-12-03T12:45:00+00:00",
"data": {
"id": 408,
"event_id": 12,
"schedule_date": "2026-12-10",
"slot_time": "09:00 AM - 09:30 AM",
"guest": {
"name": "Alex Rivera",
"email": "alex@example.com"
},
"source": "api"
}
}
Common API & Webhook Questions
Where do I create and manage API tokens and webhooks?
Sign in to your MyCaly dashboard and open API & Webhooks from the sidebar under Integrations. You can create/revoke personal access tokens and manage webhook endpoints there or via /api/v1.
Which API endpoints do not require a Bearer token?
POST /api/v1/auth/login (credential exchange), GET /api/v1/events/{id}/available-slots, and POST /api/v1/webinars/{id}/register are public so external booking widgets and registration forms work without exposing private tokens.
What are the API rate limits and plan requirements?
Default API rate limiting is 60 requests per minute per user/IP (returning HTTP 429 if exceeded). Protected /api/v1 routes and outgoing webhooks require a subscription plan with API / webhooks access enabled.
How should my server verify MyCaly webhooks?
Read the raw HTTP request body before re-encoding JSON, compute an HMAC-SHA256 digest using your endpoint secret, and compare it to the X-Signature header with hash_equals (PHP) or crypto.timingSafeEqual (Node.js).
Your Schedule Shouldn't Slow You Down.
Start scheduling smarter with MyCaly. Connect your calendars, set your pricing rules, and start accepting client bookings today.
- Smart Scheduling
- Direct Payments
- HD Video Meetings