Skip to main content
POST
Register an app push subscription

Headers

Authorization
string
required

value must be Bearer <token> where <token> is api key prefixed with cal_

Body

application/json
token
string
required

Expo Push Token

Pattern: EXPO_PUSH_TOKEN_REGEX
Example:

"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]"

platform
enum<string>
required

Mobile platform

Available options:
IOS,
ANDROID
Example:

"IOS"

deviceId
string
required

Unique device identifier

Example:

"device-uuid-123"

Response

201 - application/json
status
enum<string>
required
Available options:
success,
error
Example:

"success"

data
object
required