POST
/
v2
/
organizations
/
{orgId}
/
organizations
curl --request POST \
  --url https://api.cal.com/v2/organizations/{orgId}/organizations \
  --header 'Content-Type: application/json' \
  --data '{
  "apiKeyDaysValid": 60,
  "apiKeyNeverExpires": true,
  "name": "CalTeam",
  "metadata": {}
}'
{
  "status": "success",
  "data": {
    "id": 123,
    "name": "<string>",
    "metadata": {},
    "apiKey": "<string>"
  }
}

Path Parameters

orgId
number
required

Body

application/json
name
string
required

Name of the organization

Minimum length: 1
apiKeyDaysValid
number
default:
30

For how many days is managed organization api key valid. Defaults to 30 days.

Required range: x > 1
apiKeyNeverExpires
boolean

If true, organization api key never expires.

metadata
object

Response

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