Orgs / Teams / Memberships
Create a membership
Getting Started
Platform / Cal Provider
Platform / Managed Users
Platform / Webhooks
Orgs / Attributes
Orgs / Attributes / Options
Orgs / Event Types
Orgs / Memberships
Orgs / Schedules
Orgs / Teams
Orgs / Teams / Bookings
Orgs / Teams / Memberships
Orgs / Teams / Routing forms / Responses
Orgs / Teams / Schedules
Orgs / Users / OOO
Orgs / Webhooks
Bookings
- GETGet all bookings
- POSTCreate a booking
- GETGet a booking
- POSTReschedule a booking
- POSTCancel a booking
- POSTMark a booking absence
- POSTAutomatically reassign booking to a new host
- POSTReassign a booking to a specific user
- POSTConfirm booking that requires a confirmation
- POSTDecline booking that requires a confirmation
Calendars
Conferencing
Destination Calendars
Event Types
Event Types / Webhooks
Schedules
Selected Calendars
Slots
Stripe
Teams / Event Types
Teams / Memberships
Timezones
Orgs / Teams / Memberships
Create a membership
POST
/
v2
/
organizations
/
{orgId}
/
teams
/
{teamId}
/
memberships
curl --request POST \
--url https://api.cal.com/v2/organizations/{orgId}/teams/{teamId}/memberships \
--header 'Content-Type: application/json' \
--data '{
"userId": 123,
"accepted": false,
"role": "MEMBER",
"disableImpersonation": false
}'
{
"status": "success",
"data": {
"id": 123,
"userId": 123,
"teamId": 123,
"accepted": true,
"role": "MEMBER",
"disableImpersonation": true,
"user": {
"avatarUrl": "<string>",
"username": "<string>",
"name": "<string>",
"email": "<string>"
}
}
}
Body
application/json
Available options:
MEMBER
, OWNER
, ADMIN
Response
201 - application/json
Available options:
success
, error
Available options:
MEMBER
, OWNER
, ADMIN
Was this page helpful?
curl --request POST \
--url https://api.cal.com/v2/organizations/{orgId}/teams/{teamId}/memberships \
--header 'Content-Type: application/json' \
--data '{
"userId": 123,
"accepted": false,
"role": "MEMBER",
"disableImpersonation": false
}'
{
"status": "success",
"data": {
"id": 123,
"userId": 123,
"teamId": 123,
"accepted": true,
"role": "MEMBER",
"disableImpersonation": true,
"user": {
"avatarUrl": "<string>",
"username": "<string>",
"name": "<string>",
"email": "<string>"
}
}
}