Skip to content

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.

REST API v1 Base URL https://padmanabha.mycaly.io/api/v1
  • JSON REST API v1 (60 req/min)
  • Sanctum Bearer Token Auth
  • HMAC-SHA256 Signed Webhooks
Quick Authentication Bearer Auth
Request (cURL)
curl -X POST "https://padmanabha.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.

Before You Start

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.

Step 01 · Keys

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.

Step 02 · Header

Send Bearer Authorization

Attach Authorization: Bearer <token> and Accept: application/json on protected calls. All responses share a { success, message, data } envelope.

Step 03 · Embeds

Public Client Endpoints

Use GET /events/{id}/available-slots and POST /webinars/{id}/register directly in booking widgets without exposing private API credentials.

Workflow Explorer

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.

3-Step Flow

Build a Custom Booking Experience

Load your active event types, check open slots for a target date, then create, reschedule, or cancel the appointment.

Try in Interactive API Docs
GET /api/v1/events
Bearer Auth
Pass data.events[0].id (e.g. 12) into the available-slots lookup and booking request.
Request (cURL)
curl -X GET "https://padmanabha.mycaly.io/api/v1/events?per_page=10" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response 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 }
  }
}
Webhook Security

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-Signature

    Hex-encoded HMAC-SHA256 digest of the exact raw JSON body signed with your endpoint secret.

  • X-Event-Type

    Dot-notated event name such as booking.created, booking.rescheduled, or webinar.registrant_confirmed.

  • X-Event-Id

    Unique 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.

Bookings booking.created, booking.pending_approval, booking.confirmed, booking.declined, booking.rescheduled, booking.cancelled
Webinars webinar.created, webinar.updated, webinar.registrant_added, webinar.registrant_confirmed, webinar.registrant_cancelled
Contacts & Payments 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.

PHP HMAC-SHA256
$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']

Common API & Webhook Questions

Quick answers on authentication, rate limits, plan requirements, and webhook security.

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