curl --request POST \
--url https://api.example.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"display_name": "<string>"
}
'{
"success": true,
"data": {
"token": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"display_name": {},
"role": "<string>",
"created_at": "<string>"
}
},
"error": {
"code": 123,
"message": "<string>"
}
}Create a new user account and receive a session token
curl --request POST \
--url https://api.example.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"display_name": "<string>"
}
'{
"success": true,
"data": {
"token": "<string>",
"user": {
"id": "<string>",
"email": "<string>",
"display_name": {},
"role": "<string>",
"created_at": "<string>"
}
},
"error": {
"code": 123,
"message": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iamngoni/heimdall/llms.txt
Use this file to discover all available pages before exploring further.
Show properties
curl -X POST https://api.heimdall.example/api/auth/register \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "securepassword123",
"display_name": "John Doe"
}'
{
"success": true,
"data": {
"token": "7a3f9c2e1b5d8a4c6e9f2b3a7c1d5e8f9a2b4c6d8e1f3a5b7c9d2e4f6a8b1c3d5e7f9",
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "user@example.com",
"display_name": "John Doe",
"role": "user",
"created_at": "2026-03-12T10:30:00Z"
}
}
}
{
"success": false,
"error": {
"code": 400,
"message": "Validation failed: email: Invalid email address"
}
}
{
"success": false,
"error": {
"code": 409,
"message": "A user with this email already exists"
}
}
{
"success": false,
"error": {
"code": 500,
"message": "Internal server error"
}
}