Create Org Invite
curl --request POST \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/invites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orgSlug": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({orgSlug: '<string>'})
};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/invites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/invites"
payload = { "orgSlug": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"orgSlug": "<string>",
"status": "active",
"id": "<string>",
"code": "<string>",
"roleSlug": "<string>",
"usedCount": 123,
"createdBy": "<string>",
"revokedAt": "<string>",
"revokedBy": "<string>",
"createdAt": "<string>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Organizations
Create Org Invite
Create an invite code for an organization
POST
/
v2
/
orgs
/
{orgSlug}
/
invites
Create Org Invite
curl --request POST \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/invites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orgSlug": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({orgSlug: '<string>'})
};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/invites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/invites"
payload = { "orgSlug": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"orgSlug": "<string>",
"status": "active",
"id": "<string>",
"code": "<string>",
"roleSlug": "<string>",
"usedCount": 123,
"createdBy": "<string>",
"revokedAt": "<string>",
"revokedBy": "<string>",
"createdAt": "<string>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Was this page helpful?