Prerequisites
- A valid API key or OAuth token
- An Expo push token from your mobile app (format:
ExponentPushToken[...])
How it works
- Your mobile app obtains an Expo push token from the device.
- You register the token with Cal.com using the
POSTendpoint, specifying the platform and a unique device identifier. - Cal.com delivers push notifications to the registered device when booking events occur.
- When the user logs out or disables notifications, you remove the subscription using the
DELETEendpoint.
Endpoints
Register a subscription
| Field | Type | Required | Description |
|---|---|---|---|
token | string | Yes | Expo push token. Must match the format ExponentPushToken[...]. |
platform | string | Yes | Device platform. Must be IOS or ANDROID. |
deviceId | string | Yes | A unique identifier for the device, used to distinguish multiple devices. |
status: "success".
Remove a subscription
| Field | Type | Required | Description |
|---|---|---|---|
token | string | Yes | The Expo push token to unregister. Must match the format ExponentPushToken[...]. |
status: "success" when the subscription is removed. Returns a 404 error if no subscription exists for the given token.