curl --request POST \
--url https://api.cal.com/v2/organizations/{orgId}/users \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"username": "user123",
"weekday": "Monday",
"brandColor": "#FFFFFF",
"bio": "I am a bio",
"metadata": {
"key": "value"
},
"darkBrandColor": "#000000",
"hideBranding": false,
"timeZone": "America/New_York",
"theme": "dark",
"appTheme": "light",
"timeFormat": 24,
"defaultScheduleId": 1,
"locale": "en",
"avatarUrl": "https://example.com/avatar.jpg",
"organizationRole": "MEMBER",
"autoAccept": true
}
'{
"status": "success",
"data": {
"id": 1,
"email": "john@example.com",
"timeZone": "America/New_York",
"weekStart": "Monday",
"hideBranding": false,
"createdDate": "2022-01-01T00:00:00Z",
"profile": {
"id": 1,
"organizationId": 1,
"userId": 1,
"username": "john_doe"
},
"username": "john_doe",
"name": "John Doe",
"emailVerified": "2022-01-01T00:00:00Z",
"bio": "I am a software developer",
"avatarUrl": "https://example.com/avatar.jpg",
"appTheme": "light",
"theme": "default",
"defaultScheduleId": 1,
"locale": "en-US",
"timeFormat": 12,
"brandColor": "#ffffff",
"darkBrandColor": "#000000",
"allowDynamicBooking": true,
"verified": true,
"invitedTo": 1,
"metadata": {
"key": "value"
}
}
}curl --request POST \
--url https://api.cal.com/v2/organizations/{orgId}/users \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"username": "user123",
"weekday": "Monday",
"brandColor": "#FFFFFF",
"bio": "I am a bio",
"metadata": {
"key": "value"
},
"darkBrandColor": "#000000",
"hideBranding": false,
"timeZone": "America/New_York",
"theme": "dark",
"appTheme": "light",
"timeFormat": 24,
"defaultScheduleId": 1,
"locale": "en",
"avatarUrl": "https://example.com/avatar.jpg",
"organizationRole": "MEMBER",
"autoAccept": true
}
'{
"status": "success",
"data": {
"id": 1,
"email": "john@example.com",
"timeZone": "America/New_York",
"weekStart": "Monday",
"hideBranding": false,
"createdDate": "2022-01-01T00:00:00Z",
"profile": {
"id": 1,
"organizationId": 1,
"userId": 1,
"username": "john_doe"
},
"username": "john_doe",
"name": "John Doe",
"emailVerified": "2022-01-01T00:00:00Z",
"bio": "I am a software developer",
"avatarUrl": "https://example.com/avatar.jpg",
"appTheme": "light",
"theme": "default",
"defaultScheduleId": 1,
"locale": "en-US",
"timeFormat": 12,
"brandColor": "#ffffff",
"darkBrandColor": "#000000",
"allowDynamicBooking": true,
"verified": true,
"invitedTo": 1,
"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
User email address
"user@example.com"
Username
"user123"
Preferred weekday
"Monday"
Brand color in HEX format
"#FFFFFF"
Bio
"I am a bio"
You can store any additional data you want here. Metadata must have at most 50 keys, each key up to 40 characters, and values up to 500 characters.
{ "key": "value" }
Dark brand color in HEX format
"#000000"
Hide branding
false
Time zone
"America/New_York"
Theme
"dark"
Application theme
"light"
Time format
24
Default schedule ID
x >= 01
Locale
"en"
Avatar URL
"https://example.com/avatar.jpg"
MEMBER, ADMIN, OWNER success, error "success"
Show child attributes
The ID of the user
1
The email of the user
"john@example.com"
The time zone of the user
"America/New_York"
The week start day of the user
"Monday"
Whether to hide branding for the user
false
The date when the user was created
"2022-01-01T00:00:00Z"
organization user profile, contains user data within the organizaton context
Show child attributes
The ID of the profile of user
1
The ID of the organization of user
1
The IDof the user
1
The username of the user within the organization context
"john_doe"
The username of the user
"john_doe"
The name of the user
"John Doe"
The date when the email was verified
"2022-01-01T00:00:00Z"
The bio of the user
"I am a software developer"
The URL of the user's avatar
"https://example.com/avatar.jpg"
The app theme of the user
"light"
The theme of the user
"default"
The ID of the default schedule for the user
1
The locale of the user
"en-US"
The time format of the user
12
The brand color of the user
"#ffffff"
The dark brand color of the user
"#000000"
Whether dynamic booking is allowed for the user
true
Whether the user is verified
true
The ID of the user who invited this user
1
{ "key": "value" }
Was this page helpful?