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>",
"bio": "<string>",
"metadata": {
"key": "value"
}
}
}
}
For non-platform customers - value must be Bearer <token>
where <token>
is api key prefixed with cal_
For platform customers - OAuth client secret key
For platform customers - OAuth client ID
The response is of type object
.
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>",
"bio": "<string>",
"metadata": {
"key": "value"
}
}
}
}
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>",
"bio": "<string>",
"metadata": {
"key": "value"
}
}
}
}
For non-platform customers - value must be Bearer <token>
where <token>
is api key prefixed with cal_
For platform customers - OAuth client secret key
For platform customers - OAuth client ID
The response is of type object
.
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>",
"bio": "<string>",
"metadata": {
"key": "value"
}
}
}
}