Entwickler-Workflows
Entwickeln mit der MyCaly REST API & Webhooks
Erfahren Sie, wie MyCaly-Endpunkte für Terminbuchungen, Webinar-Registrierungen, CRM-Kontaktsynchronisierung und signierte Webhooks zusammenspielen.
Durchsuchen Sie nicht dutzende Einzelendpunkte. Wählen Sie unten einen realen Integrations-Flow, prüfen Sie Anfrage und Antwort Schritt für Schritt und testen Sie direkt in den API-Docs.
https://alivemp.mycaly.io/api/v1
- JSON REST API v1 (60 Anfr./Min.)
- Sanctum Bearer-Token-Auth
- HMAC-SHA256 signierte Webhooks
curl -X POST "https://alivemp.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
Erstellen Sie ein persönliches Zugriffstoken unter API & Webhooks (oder per POST /api/v1/auth/login) und senden Sie es als Bearer-Header mit.
So greifen Authentifizierung und Endpunkte ineinander
Geschützte Endpunkte erfordern ein Bearer-Token in einem Tarif mit REST-API-Zugriff, während öffentliche Endpunkte Buchungs-Widgets im Frontend ermöglichen.
API-Token erstellen
Erzeugen Sie persönliche Zugriffstoken im Dashboard unter API & Webhooks oder programmatisch per POST /api/v1/auth/tokens.
Bearer-Header senden
Senden Sie Authorization: Bearer <token> und Accept: application/json bei geschützten Aufrufen. Alle Antworten nutzen { success, message, data }.
Öffentliche Client-Endpunkte
Nutzen Sie GET /events/{id}/available-slots und POST /webinars/{id}/register direkt in Widgets, ohne private Schlüssel offenzulegen.
End-to-End-Anfrageketten im Überblick
Wählen Sie einen Workflow und klicken Sie auf jeden Schritt, um zu sehen, wie IDs und Zeitfenster weitergegeben werden.
Eigenen Buchungsablauf umsetzen
Aktive Terminarten laden, freie Zeitfenster für ein Datum abrufen und Termine buchen, verschieben oder stornieren.
curl -X GET "https://alivemp.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://alivemp.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://alivemp.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
Live-Webinare & Anmeldungen automatisieren
Webinare per API anlegen, Besucher direkt über Ihre Landingpage anmelden und Teilnehmerlisten verwalten.
curl -X POST "https://alivemp.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://alivemp.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://alivemp.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
Kontakte & Terminhistorie synchron halten
Bestehende Kontakte filtern, Datensätze per E-Mail duplikatfrei anlegen/aktualisieren und verknüpfte Buchungen abrufen.
curl -X GET "https://alivemp.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://alivemp.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://alivemp.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"
}
]
}
}
Echtzeit-Webhooks abonnieren, testen & prüfen
HTTPS-Endpunkte für Buchungs-, Webinar-, Kontakt- und Zahlungsereignisse registrieren, per Test-Ping prüfen und Logs einsehen.
curl -X POST "https://alivemp.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://alivemp.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://alivemp.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 }
}
}
Jeden eingehenden Webhook mit HMAC-SHA256 verifizieren
Jeder ausgehende Webhook enthält drei benutzerdefinierte Header und ein JSON-Format zur eindeutigen Authentizitätsprüfung.
Von MyCaly gesendete Request-Header
-
X-SignatureHex-kodierter HMAC-SHA256-Digest des rohen JSON-Body mit Ihrem Endpunkt-Secret.
-
X-Event-TypeEreignisname wie booking.created, booking.rescheduled oder webinar.registrant_confirmed.
-
X-Event-IdEindeutige Event-ID (evt_...) für Idempotenzprüfungen bei Wiederholungen.
Wichtige unterstützte Events
Sie können einzelne Events oder "*" beim Registrieren eines Webhooks angeben.
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
Beispiel für Signaturprüfung
Berechnen Sie HMAC-SHA256 über den rohen Request-Body mit Ihrem Secret und vergleichen Sie zeitkonstant.
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"
}
}
Häufige Fragen zu API & Webhooks
Wo erstelle und verwalte ich API-Token und Webhooks?
Melden Sie sich im MyCaly-Dashboard an und öffnen Sie API & Webhooks in der Seitenleiste unter Integrationen. Dort oder über /api/v1 können Sie Token und Webhooks verwalten.
Welche Endpunkte benötigen kein Bearer-Token?
POST /api/v1/auth/login, GET /api/v1/events/{id}/available-slots und POST /api/v1/webinars/{id}/register sind öffentlich, sodass Buchungs-Widgets und Formulare sicher ohne geheime Token arbeiten.
Welche Rate Limits und Tarifvoraussetzungen gelten?
Standardmäßig liegt das Limit bei 60 Anfragen pro Minute je Nutzer/IP (HTTP 429 bei Überschreitung). Geschützte /api/v1-Routen und ausgehende Webhooks erfordern einen Tarif mit aktiviertem API-/Webhook-Zugriff.
Wie sollte mein Server MyCaly-Webhooks verifizieren?
Lesen Sie den rohen Request-Body vor dem erneuten JSON-Serialisieren, berechnen Sie HMAC-SHA256 mit Ihrem Endpunkt-Secret und vergleichen Sie per hash_equals (PHP) oder crypto.timingSafeEqual (Node.js) mit dem Header X-Signature.
Ihr Terminkalender soll Sie nicht ausbremsen.
Planen Sie mit MyCaly smarter. Verbinden Sie Ihre Kalender, legen Sie Ihre Preisregeln fest und nehmen Sie noch heute Kundenbuchungen entgegen.
- Intelligente Terminplanung
- Direkte Zahlungen
- HD-Videomeetings