Skip to main content
POST
Create an OAuth client

Headers

Authorization
string
required

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

Body

application/json
name
string
required
redirectUris
string[]
required
permissions
enum<string>[]
required

Array of permission keys like ["BOOKING_READ", "BOOKING_WRITE"]. Use ["*"] to grant all permissions.

Available options:
EVENT_TYPE_READ,
EVENT_TYPE_WRITE,
BOOKING_READ,
BOOKING_WRITE,
SCHEDULE_READ,
SCHEDULE_WRITE,
APPS_READ,
APPS_WRITE,
PROFILE_READ,
PROFILE_WRITE,
*
bookingRedirectUri
string
bookingCancelRedirectUri
string
bookingRescheduleRedirectUri
string
areEmailsEnabled
boolean
areDefaultEventTypesEnabled
boolean
default:false

If true, when creating a managed user the managed user will have 4 default event types: 30 and 60 minutes without Cal video, 30 and 60 minutes with Cal video. Set this as false if you want to create a managed user and then manually create event types for the user.

areCalendarEventsEnabled
boolean
default:true

If true and if managed user has calendar connected, calendar events will be created. Disable it if you manually create calendar events. Default to true.

Response

201 - application/json

Create an OAuth client

status
enum<string>
required
Available options:
success,
error
Example:

"success"

data
object
required
Example: