Create an invite
curl --request POST \
--url https://beta.creatorcore.co/api/v2/org/invites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"email": "jsmith@example.com",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({email: 'jsmith@example.com', roleId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://beta.creatorcore.co/api/v2/org/invites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/org/invites"
payload = {
"email": "jsmith@example.com",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"invite": {
"inviteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"status": "invited",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>"
},
"acceptUrl": "<string>",
"emailDelivery": {
"sent": true,
"failureReason": "not_configured"
}
}Members and roles
Create an invite
Creates an invite, emails a join link to the invitee, and returns 201 with the invite, an acceptUrl containing the invite token, and emailDelivery. When emailDelivery.sent is false the invite still exists; share acceptUrl with the invitee directly. The token is returned only on create; list and read responses omit it. Re-inviting the same pending email rotates the token and resends. Returns 404 if the role does not exist, 409 (member_exists) if the email already belongs to a member, or 409 (user_limit_reached) when the organization has reached its max user cap.
POST
/
api
/
v2
/
org
/
invites
Create an invite
curl --request POST \
--url https://beta.creatorcore.co/api/v2/org/invites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"email": "jsmith@example.com",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({email: 'jsmith@example.com', roleId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://beta.creatorcore.co/api/v2/org/invites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/org/invites"
payload = {
"email": "jsmith@example.com",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"invite": {
"inviteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"status": "invited",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>"
},
"acceptUrl": "<string>",
"emailDelivery": {
"sent": true,
"failureReason": "not_configured"
}
}Authorizations
Was this page helpful?