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": {
    "key": "value"
  }
}'
{
  "status": "success",
  "data": {
    "id": 123,
    "name": "<string>",
    "metadata": {
      "key": "value"
    },
    "apiKey": "<string>"
  }
}

Path Parameters

orgId
number
required

Body

application/json
name
string
required

Name of the organization

Minimum length: 1
Example:

"CalTeam"

apiKeyDaysValid
number
default:30

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

Required range: x >= 1
Example:

60

apiKeyNeverExpires
boolean

If true, organization api key never expires.

Example:

true

metadata
object

You can store any additional data you want here. Metadata must have at most 50 keys, each key up to 40 characters. Values can be strings (up to 500 characters), numbers, or booleans.

Example:
{ "key": "value" }

Response

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

"success"

data
object
required