Pre-create (or re-activate) an org user
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provision-user/"
payload = {
"email": "[email protected]",
"role": "member"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]', role: 'member'})
};
fetch('https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provision-user/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provision-user/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"role": "member"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"role": "member",
"created": true
}{
"error": "User not found"
}{
"error": "User not found"
}User Provisioning
Pre-create (or re-activate) an org user
Pre-creates a user bound to this organization, with a verified primary email so a
later SSO login links to it automatically. Idempotent: re-provisioning an existing
member is a no-op (role/state unchanged). The email’s domain must be in the org’s
allowed_provisioning_domains. The API key must belong to the organization in the path.
POST
/
organizations
/
{id}
/
provision-user
/
Pre-create (or re-activate) an org user
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provision-user/"
payload = {
"email": "[email protected]",
"role": "member"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]', role: 'member'})
};
fetch('https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provision-user/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provision-user/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"role": "member"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"role": "member",
"created": true
}{
"error": "User not found"
}{
"error": "User not found"
}Authorizations
Use Authorization: Api-Key (org-scoped provisioning key)
Path Parameters
UUID of the organization (must match the API key's org)
Body
application/json