curl --request POST \
--url https://api.example.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"fullName": "<string>",
"password": "<string>",
"phone": "<string>"
}
'{
"success": true,
"data": {
"user": {
"id": "<string>",
"email": "<string>",
"fullName": "<string>",
"phone": {},
"avatar": {},
"emailVerified": true,
"createdAt": "<string>"
},
"accessToken": "<string>",
"refreshToken": "<string>"
}
}Register a new user account
curl --request POST \
--url https://api.example.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"fullName": "<string>",
"password": "<string>",
"phone": "<string>"
}
'{
"success": true,
"data": {
"user": {
"id": "<string>",
"email": "<string>",
"fullName": "<string>",
"phone": {},
"avatar": {},
"emailVerified": true,
"createdAt": "<string>"
},
"accessToken": "<string>",
"refreshToken": "<string>"
}
}Creates a new user account with email, password, and profile information. Returns the user object along with access and refresh tokens for immediate authentication.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LeonardoCaero/platform-api/llms.txt
Use this file to discover all available pages before exploring further.
Show data properties
Show user properties
{
"success": false,
"error": {
"message": "Email already registered",
"statusCode": 409
}
}
{
"success": false,
"error": {
"message": "Validation error",
"statusCode": 400,
"details": []
}
}
curl -X POST https://api.example.com/api/auth/register \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"fullName": "John Doe",
"password": "securePassword123",
"phone": "+1234567890"
}'
{
"success": true,
"data": {
"user": {
"id": "clx1234567890abcdef",
"email": "user@example.com",
"fullName": "John Doe",
"phone": "+1234567890",
"avatar": null,
"emailVerified": false,
"createdAt": "2026-03-04T10:30:00.000Z"
},
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "rt_clx1234567890abcdef"
}
}