API reference
Webhooks
Inbound webhook intake from external systems. Two endpoints — main intake (POST) and subscription-verification challenge (POST /verify).
Key points
- These are inbound webhooks — external systems POST to FlexiScheduler
- Webhooks always return 200 with an accepted field; check the body, not the status code
- Subscription verification (Microsoft Graph, etc.) handled by the /verify endpoint
- Each source name is registered during data source configuration; unknown sources reject
About webhooks
FlexiScheduler receives webhooks from external systems (calendars, CRMs, payment providers) to trigger replication updates and event syncs in real time. The endpoints below are the inbound surface — your external systems call us, not the other way around.
Outbound webhooks (FlexiScheduler notifying your systems about scheduling events) are configured through the notification subsystem in templates, not through these endpoints.
Receive webhook
/api/v1/webhooks/{sourceName}Inbound webhook intake. Each source has a unique sourceName configured during data source setup.
Headers
x-organization-idUUIDrequiredOrganization the webhook belongs to
Path parameters
sourceNamestringrequiredName of the external system (must match a registered data source) e.g. outlook_calendar
Responses
200Webhook received. Check the accepted field — even rejected webhooks return 200 to prevent retries.{
"accepted": true,
"eventId": "evt_b29f4e58-...",
"processedAt": "2026-04-26T15:30:00.000Z"
}400Missing required headers (x-organization-id)200 doesn’t mean accepted
accepted: true | false in the body. This is intentional — non-200 responses cause most external systems to retry, which is wasteful for permanent failures (invalid signature, unknown source). Check the body to know whether the webhook was processed.Verification challenge
/api/v1/webhooks/{sourceName}/verifySubscription-verification challenge handler. Required by Microsoft Graph and similar systems that verify webhook URLs before activating subscriptions.
Path parameters
sourceNamestringrequiredExternal system name e.g. outlook_calendar
Responses
200Challenge token echoed back as plain text. Format depends on the external system’s expected response.400No verification challenge found in request bodyMicrosoft Graph subscriptions require this challenge to validate the webhook URL during initial subscription. Most other systems use signature verification on the main intake endpoint instead.
Example: rejected webhook
When a webhook arrives with an invalid signature, the endpoint returns 200 but with accepted: false:
{
"accepted": false,
"reason": "Invalid signature",
"receivedAt": "2026-04-26T15:30:00.000Z"
}