Register
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/register \
--header 'Content-Type: application/json' \
--header 'X-BLUDIA-API-KEY: <api-key>' \
--data '
{
"email": "sarah@example.com",
"password": "correct horse battery",
"full_name": "Sarah Ahmed"
}
'const options = {
method: 'POST',
headers: {'X-BLUDIA-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'sarah@example.com',
password: 'correct horse battery',
full_name: 'Sarah Ahmed'
})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/ext/api/v1/auth/{guard}/register"
payload = {
"email": "sarah@example.com",
"password": "correct horse battery",
"full_name": "Sarah Ahmed"
}
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "q3Jx...",
"token_type": "Bearer",
"expires_in": 900,
"record_id": 42
}
}{
"error": "<string>",
"message": "<string>"
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"message": "Rate limit exceeded."
}Authentication
Register
Creates an end-user account in the guard’s collection and returns a session. Send the login field under its field name, password (min 8), and any other fields. Assigns the guard’s default user role. If email verification is on, the response includes status: pending_verification and a code is emailed. Limited to 10 requests per minute per IP.
POST
/
auth
/
{guard}
/
register
Register
curl --request POST \
--url https://{host}/ext/api/v1/auth/{guard}/register \
--header 'Content-Type: application/json' \
--header 'X-BLUDIA-API-KEY: <api-key>' \
--data '
{
"email": "sarah@example.com",
"password": "correct horse battery",
"full_name": "Sarah Ahmed"
}
'const options = {
method: 'POST',
headers: {'X-BLUDIA-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'sarah@example.com',
password: 'correct horse battery',
full_name: 'Sarah Ahmed'
})
};
fetch('https://{host}/ext/api/v1/auth/{guard}/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/ext/api/v1/auth/{guard}/register"
payload = {
"email": "sarah@example.com",
"password": "correct horse battery",
"full_name": "Sarah Ahmed"
}
headers = {
"X-BLUDIA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "q3Jx...",
"token_type": "Bearer",
"expires_in": 900,
"record_id": 42
}
}{
"error": "<string>",
"message": "<string>"
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"status": false,
"message": "<string>",
"errors": "<unknown>",
"request_id": "<string>"
}{
"message": "Rate limit exceeded."
}Authorizations
Body
application/json
