Invite a person
curl --request POST \
--url https://control.api.niadra.com/v1/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "nina@acme.example",
"roles": [
{
"role": "review",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23"
}
],
"with_totp": false
}
'import requests
url = "https://control.api.niadra.com/v1/users"
payload = {
"email": "nina@acme.example",
"roles": [
{
"role": "review",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23"
}
],
"with_totp": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'nina@acme.example',
roles: [{role: 'review', space_id: '0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23'}],
with_totp: false
})
};
fetch('https://control.api.niadra.com/v1/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://control.api.niadra.com/v1/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'nina@acme.example',
'roles' => [
[
'role' => 'review',
'space_id' => '0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23'
]
],
'with_totp' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://control.api.niadra.com/v1/users"
payload := strings.NewReader("{\n \"email\": \"nina@acme.example\",\n \"roles\": [\n {\n \"role\": \"review\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\"\n }\n ],\n \"with_totp\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://control.api.niadra.com/v1/users")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"nina@acme.example\",\n \"roles\": [\n {\n \"role\": \"review\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\"\n }\n ],\n \"with_totp\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://control.api.niadra.com/v1/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"nina@acme.example\",\n \"roles\": [\n {\n \"role\": \"review\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\"\n }\n ],\n \"with_totp\": false\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"last_login_at": null,
"totp_uri": null,
"created_at": "2026-09-24T12:00:00Z",
"deactivated_at": null,
"password_set": false,
"sso": false,
"last_sso_login_at": null,
"second_factor_confirmed_at": null,
"recovery_codes_left": 0,
"invitation_expires_at": "2026-10-01T12:00:00Z",
"invitation": {
"token": "Q2hvb3NlIGEgcGFzc3dvcmQgb25jZS4gTm90IGEgc2Vzc2lvbi4",
"expires_at": "2026-10-01T12:00:00Z"
},
"user_id": "0192f0a0-4e5f-7061-9c72-8d9e0f1a2b36",
"email": "nina@acme.example",
"roles": [
{
"role": "review",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23",
"source_ids": []
}
]
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Control: people and roles
Invite a person
A new person in the Console, with a single-use invitation or through the company SSO.
POST
/
v1
/
users
Invite a person
curl --request POST \
--url https://control.api.niadra.com/v1/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "nina@acme.example",
"roles": [
{
"role": "review",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23"
}
],
"with_totp": false
}
'import requests
url = "https://control.api.niadra.com/v1/users"
payload = {
"email": "nina@acme.example",
"roles": [
{
"role": "review",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23"
}
],
"with_totp": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'nina@acme.example',
roles: [{role: 'review', space_id: '0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23'}],
with_totp: false
})
};
fetch('https://control.api.niadra.com/v1/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://control.api.niadra.com/v1/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'nina@acme.example',
'roles' => [
[
'role' => 'review',
'space_id' => '0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23'
]
],
'with_totp' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://control.api.niadra.com/v1/users"
payload := strings.NewReader("{\n \"email\": \"nina@acme.example\",\n \"roles\": [\n {\n \"role\": \"review\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\"\n }\n ],\n \"with_totp\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://control.api.niadra.com/v1/users")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"nina@acme.example\",\n \"roles\": [\n {\n \"role\": \"review\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\"\n }\n ],\n \"with_totp\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://control.api.niadra.com/v1/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"nina@acme.example\",\n \"roles\": [\n {\n \"role\": \"review\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\"\n }\n ],\n \"with_totp\": false\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"last_login_at": null,
"totp_uri": null,
"created_at": "2026-09-24T12:00:00Z",
"deactivated_at": null,
"password_set": false,
"sso": false,
"last_sso_login_at": null,
"second_factor_confirmed_at": null,
"recovery_codes_left": 0,
"invitation_expires_at": "2026-10-01T12:00:00Z",
"invitation": {
"token": "Q2hvb3NlIGEgcGFzc3dvcmQgb25jZS4gTm90IGEgc2Vzc2lvbi4",
"expires_at": "2026-10-01T12:00:00Z"
},
"user_id": "0192f0a0-4e5f-7061-9c72-8d9e0f1a2b36",
"email": "nina@acme.example",
"roles": [
{
"role": "review",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23",
"source_ids": []
}
]
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Authorizations
Body
application/json
Optional. Without it the person receives an invitation: a single-use link to choose a password, then the authenticator at the first sign-in. A person whose e-mail domain belongs to the tenant's SSO gets no invitation and signs in through the identity provider.
Required string length:
12 - 1024Response
The person, with the invitation (shown once) when created without a password.

