curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/users/register?token=' \
--header 'Content-Type: application/json' \
--data '
{
"mail": "jane.doe+2024@example.com",
"name": "john.doe+member@example.com",
"campaign": "<string>",
"company": "Example Ltd.",
"fullname": "John Doe",
"identityToken": "<string>",
"language": "en",
"lastReleaseAnnouncementSeen": "26.1.0",
"organizationName": [
{
"language": "en",
"value": "Organization Administrators"
}
],
"phone": "+420123456789",
"role": "Head of Legal",
"tenant": "default",
"termsAccepted": false,
"timezone": "Europe/Prague"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/users/register?token="
payload = {
"mail": "jane.doe+2024@example.com",
"name": "john.doe+member@example.com",
"campaign": "<string>",
"company": "Example Ltd.",
"fullname": "John Doe",
"identityToken": "<string>",
"language": "en",
"lastReleaseAnnouncementSeen": "26.1.0",
"organizationName": [
{
"language": "en",
"value": "Organization Administrators"
}
],
"phone": "+420123456789",
"role": "Head of Legal",
"tenant": "default",
"termsAccepted": False,
"timezone": "Europe/Prague"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
mail: 'jane.doe+2024@example.com',
name: 'john.doe+member@example.com',
campaign: '<string>',
company: 'Example Ltd.',
fullname: 'John Doe',
identityToken: '<string>',
language: 'en',
lastReleaseAnnouncementSeen: '26.1.0',
organizationName: [{language: 'en', value: 'Organization Administrators'}],
phone: '+420123456789',
role: 'Head of Legal',
tenant: 'default',
termsAccepted: false,
timezone: 'Europe/Prague'
})
};
fetch('https://sandbox.circularo.com/api/v1/users/register?token=', 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://sandbox.circularo.com/api/v1/users/register?token=",
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([
'mail' => 'jane.doe+2024@example.com',
'name' => 'john.doe+member@example.com',
'campaign' => '<string>',
'company' => 'Example Ltd.',
'fullname' => 'John Doe',
'identityToken' => '<string>',
'language' => 'en',
'lastReleaseAnnouncementSeen' => '26.1.0',
'organizationName' => [
[
'language' => 'en',
'value' => 'Organization Administrators'
]
],
'phone' => '+420123456789',
'role' => 'Head of Legal',
'tenant' => 'default',
'termsAccepted' => false,
'timezone' => 'Europe/Prague'
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/users/register?token="
payload := strings.NewReader("{\n \"mail\": \"jane.doe+2024@example.com\",\n \"name\": \"john.doe+member@example.com\",\n \"campaign\": \"<string>\",\n \"company\": \"Example Ltd.\",\n \"fullname\": \"John Doe\",\n \"identityToken\": \"<string>\",\n \"language\": \"en\",\n \"lastReleaseAnnouncementSeen\": \"26.1.0\",\n \"organizationName\": [\n {\n \"language\": \"en\",\n \"value\": \"Organization Administrators\"\n }\n ],\n \"phone\": \"+420123456789\",\n \"role\": \"Head of Legal\",\n \"tenant\": \"default\",\n \"termsAccepted\": false,\n \"timezone\": \"Europe/Prague\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://sandbox.circularo.com/api/v1/users/register?token=")
.header("Content-Type", "application/json")
.body("{\n \"mail\": \"jane.doe+2024@example.com\",\n \"name\": \"john.doe+member@example.com\",\n \"campaign\": \"<string>\",\n \"company\": \"Example Ltd.\",\n \"fullname\": \"John Doe\",\n \"identityToken\": \"<string>\",\n \"language\": \"en\",\n \"lastReleaseAnnouncementSeen\": \"26.1.0\",\n \"organizationName\": [\n {\n \"language\": \"en\",\n \"value\": \"Organization Administrators\"\n }\n ],\n \"phone\": \"+420123456789\",\n \"role\": \"Head of Legal\",\n \"tenant\": \"default\",\n \"termsAccepted\": false,\n \"timezone\": \"Europe/Prague\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/users/register?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"mail\": \"jane.doe+2024@example.com\",\n \"name\": \"john.doe+member@example.com\",\n \"campaign\": \"<string>\",\n \"company\": \"Example Ltd.\",\n \"fullname\": \"John Doe\",\n \"identityToken\": \"<string>\",\n \"language\": \"en\",\n \"lastReleaseAnnouncementSeen\": \"26.1.0\",\n \"organizationName\": [\n {\n \"language\": \"en\",\n \"value\": \"Organization Administrators\"\n }\n ],\n \"phone\": \"+420123456789\",\n \"role\": \"Head of Legal\",\n \"tenant\": \"default\",\n \"termsAccepted\": false,\n \"timezone\": \"Europe/Prague\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 402,
"type": "SUBSCRIPTION:NOT_ACTIVE",
"message": "Subscription not active",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 410,
"type": "AUTH:IDENTITY_TOKEN_EXPIRED",
"message": "Identity token expired",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Register an account
POST /users/register
Creates an account for somebody signing up themselves and sends them the link that finishes it off - the way in for an instance that admits self-registration at all, and only for the e-mail domains it accepts.
Nothing is disclosed about who already has an account: a registration for an address that is already in use answers exactly like a new one. Where that account was never activated, the registration is simply taken again - the details are refreshed and a new invitation goes out, while any earlier link stops working. Where organizations are in use, the account either joins the one the instance points newcomers at or founds its own, whose administrator it becomes.
An identity that has already been verified elsewhere can be brought along, and where it carries the same e-mail address there is nothing left to confirm: the session comes back straight away instead of by e-mail. How often an address may be registered is limited.
Token or reCAPTCHA authorization: Authorize using a token, or a reCAPTCHA response when reCAPTCHA is enabled, to call this endpoint.
Required user rights (when a token is provided): update_users
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/users/register?token=' \
--header 'Content-Type: application/json' \
--data '
{
"mail": "jane.doe+2024@example.com",
"name": "john.doe+member@example.com",
"campaign": "<string>",
"company": "Example Ltd.",
"fullname": "John Doe",
"identityToken": "<string>",
"language": "en",
"lastReleaseAnnouncementSeen": "26.1.0",
"organizationName": [
{
"language": "en",
"value": "Organization Administrators"
}
],
"phone": "+420123456789",
"role": "Head of Legal",
"tenant": "default",
"termsAccepted": false,
"timezone": "Europe/Prague"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/users/register?token="
payload = {
"mail": "jane.doe+2024@example.com",
"name": "john.doe+member@example.com",
"campaign": "<string>",
"company": "Example Ltd.",
"fullname": "John Doe",
"identityToken": "<string>",
"language": "en",
"lastReleaseAnnouncementSeen": "26.1.0",
"organizationName": [
{
"language": "en",
"value": "Organization Administrators"
}
],
"phone": "+420123456789",
"role": "Head of Legal",
"tenant": "default",
"termsAccepted": False,
"timezone": "Europe/Prague"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
mail: 'jane.doe+2024@example.com',
name: 'john.doe+member@example.com',
campaign: '<string>',
company: 'Example Ltd.',
fullname: 'John Doe',
identityToken: '<string>',
language: 'en',
lastReleaseAnnouncementSeen: '26.1.0',
organizationName: [{language: 'en', value: 'Organization Administrators'}],
phone: '+420123456789',
role: 'Head of Legal',
tenant: 'default',
termsAccepted: false,
timezone: 'Europe/Prague'
})
};
fetch('https://sandbox.circularo.com/api/v1/users/register?token=', 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://sandbox.circularo.com/api/v1/users/register?token=",
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([
'mail' => 'jane.doe+2024@example.com',
'name' => 'john.doe+member@example.com',
'campaign' => '<string>',
'company' => 'Example Ltd.',
'fullname' => 'John Doe',
'identityToken' => '<string>',
'language' => 'en',
'lastReleaseAnnouncementSeen' => '26.1.0',
'organizationName' => [
[
'language' => 'en',
'value' => 'Organization Administrators'
]
],
'phone' => '+420123456789',
'role' => 'Head of Legal',
'tenant' => 'default',
'termsAccepted' => false,
'timezone' => 'Europe/Prague'
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/users/register?token="
payload := strings.NewReader("{\n \"mail\": \"jane.doe+2024@example.com\",\n \"name\": \"john.doe+member@example.com\",\n \"campaign\": \"<string>\",\n \"company\": \"Example Ltd.\",\n \"fullname\": \"John Doe\",\n \"identityToken\": \"<string>\",\n \"language\": \"en\",\n \"lastReleaseAnnouncementSeen\": \"26.1.0\",\n \"organizationName\": [\n {\n \"language\": \"en\",\n \"value\": \"Organization Administrators\"\n }\n ],\n \"phone\": \"+420123456789\",\n \"role\": \"Head of Legal\",\n \"tenant\": \"default\",\n \"termsAccepted\": false,\n \"timezone\": \"Europe/Prague\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://sandbox.circularo.com/api/v1/users/register?token=")
.header("Content-Type", "application/json")
.body("{\n \"mail\": \"jane.doe+2024@example.com\",\n \"name\": \"john.doe+member@example.com\",\n \"campaign\": \"<string>\",\n \"company\": \"Example Ltd.\",\n \"fullname\": \"John Doe\",\n \"identityToken\": \"<string>\",\n \"language\": \"en\",\n \"lastReleaseAnnouncementSeen\": \"26.1.0\",\n \"organizationName\": [\n {\n \"language\": \"en\",\n \"value\": \"Organization Administrators\"\n }\n ],\n \"phone\": \"+420123456789\",\n \"role\": \"Head of Legal\",\n \"tenant\": \"default\",\n \"termsAccepted\": false,\n \"timezone\": \"Europe/Prague\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/users/register?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"mail\": \"jane.doe+2024@example.com\",\n \"name\": \"john.doe+member@example.com\",\n \"campaign\": \"<string>\",\n \"company\": \"Example Ltd.\",\n \"fullname\": \"John Doe\",\n \"identityToken\": \"<string>\",\n \"language\": \"en\",\n \"lastReleaseAnnouncementSeen\": \"26.1.0\",\n \"organizationName\": [\n {\n \"language\": \"en\",\n \"value\": \"Organization Administrators\"\n }\n ],\n \"phone\": \"+420123456789\",\n \"role\": \"Head of Legal\",\n \"tenant\": \"default\",\n \"termsAccepted\": false,\n \"timezone\": \"Europe/Prague\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 402,
"type": "SUBSCRIPTION:NOT_ACTIVE",
"message": "Subscription not active",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 410,
"type": "AUTH:IDENTITY_TOKEN_EXPIRED",
"message": "Identity token expired",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
E-mail address to reach the person at. The invitation to finish setting the account up goes there, so it has to be one they can read - and on instances that only admit certain domains, one of those.
128^[A-Za-z0-9.@_+-]+$"jane.doe+2024@example.com"
Proof of an identity that has already been verified elsewhere - a sign-in through an identity provider, or a pre-registration. It fills in what that identity knows about the person and links it to the new account; where the provider has already confirmed the same e-mail address, no invitation needs to be sent at all. It can be used once and does not wait long. At least one of fullname and identityToken must be provided.