authentication
Browser Register
Register through the same-origin browser adapter and set an HTTP-only session.
POST
/
api
/
auth
/
register
Browser Register
curl --request POST \
--url https://api.aixy-gateway.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"organization_name": "<string>",
"organization_slug": "<string>",
"name": "<string>",
"email": "[email protected]",
"password": "<string>",
"legal_acceptance": {
"terms_accepted": true,
"privacy_notice_acknowledged": true,
"terms_version": "<string>",
"privacy_notice_version": "<string>"
}
}
'import requests
url = "https://api.aixy-gateway.com/api/auth/register"
payload = {
"organization_name": "<string>",
"organization_slug": "<string>",
"name": "<string>",
"email": "[email protected]",
"password": "<string>",
"legal_acceptance": {
"terms_accepted": True,
"privacy_notice_acknowledged": True,
"terms_version": "<string>",
"privacy_notice_version": "<string>"
}
}
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({
organization_name: '<string>',
organization_slug: '<string>',
name: '<string>',
email: '[email protected]',
password: '<string>',
legal_acceptance: {
terms_accepted: true,
privacy_notice_acknowledged: true,
terms_version: '<string>',
privacy_notice_version: '<string>'
}
})
};
fetch('https://api.aixy-gateway.com/api/auth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"person": {
"id": "<string>",
"email": "<string>",
"name": "<string>"
},
"organizations": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"user_id": "<string>",
"role": "<string>",
"authentication_required": "sso"
}
],
"account": {
"organization": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"object": "organization"
},
"user": {
"id": "<string>",
"organization_id": "<string>",
"email": "<string>",
"name": "<string>",
"role": "<string>",
"project_ids": [
"<string>"
],
"object": "organization.user",
"role_label": "<string>"
},
"permissions": [
"<string>"
],
"expires_at": "<string>"
},
"expires_at": "<string>",
"organization": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"object": "organization"
},
"user": {
"id": "<string>",
"organization_id": "<string>",
"email": "<string>",
"name": "<string>",
"role": "<string>",
"project_ids": [
"<string>"
],
"object": "organization.user",
"role_label": "<string>"
},
"permissions": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Body
application/json
Required string length:
12 - 256Show child attributes
Show child attributes
Single-use Turnstile token, required when registration protection is enabled.
Maximum string length:
2048Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Browser Register
curl --request POST \
--url https://api.aixy-gateway.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"organization_name": "<string>",
"organization_slug": "<string>",
"name": "<string>",
"email": "[email protected]",
"password": "<string>",
"legal_acceptance": {
"terms_accepted": true,
"privacy_notice_acknowledged": true,
"terms_version": "<string>",
"privacy_notice_version": "<string>"
}
}
'import requests
url = "https://api.aixy-gateway.com/api/auth/register"
payload = {
"organization_name": "<string>",
"organization_slug": "<string>",
"name": "<string>",
"email": "[email protected]",
"password": "<string>",
"legal_acceptance": {
"terms_accepted": True,
"privacy_notice_acknowledged": True,
"terms_version": "<string>",
"privacy_notice_version": "<string>"
}
}
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({
organization_name: '<string>',
organization_slug: '<string>',
name: '<string>',
email: '[email protected]',
password: '<string>',
legal_acceptance: {
terms_accepted: true,
privacy_notice_acknowledged: true,
terms_version: '<string>',
privacy_notice_version: '<string>'
}
})
};
fetch('https://api.aixy-gateway.com/api/auth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"person": {
"id": "<string>",
"email": "<string>",
"name": "<string>"
},
"organizations": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"user_id": "<string>",
"role": "<string>",
"authentication_required": "sso"
}
],
"account": {
"organization": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"object": "organization"
},
"user": {
"id": "<string>",
"organization_id": "<string>",
"email": "<string>",
"name": "<string>",
"role": "<string>",
"project_ids": [
"<string>"
],
"object": "organization.user",
"role_label": "<string>"
},
"permissions": [
"<string>"
],
"expires_at": "<string>"
},
"expires_at": "<string>",
"organization": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"object": "organization"
},
"user": {
"id": "<string>",
"organization_id": "<string>",
"email": "<string>",
"name": "<string>",
"role": "<string>",
"project_ids": [
"<string>"
],
"object": "organization.user",
"role_label": "<string>"
},
"permissions": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}