cURL
curl --request POST \ --url https://api.superbox.ai/v1/auth/register \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "username": "<string>", "password": "<string>" } '
{ "user": { "id": "<string>", "email": "<string>", "username": "<string>", "created_at": "<string>" }, "token": "<string>", "refresh_token": "<string>" }
POST /auth/register - Create a new user account
POST /auth/register
cURL curl -X POST https://api.superbox.ai/v1/auth/register \ -H "Content-Type: application/json" \ -d '{ "email": "areeb@example.com", "username": "areeb", "password": "SecurePass123!" }'
Show properties
{ "user": { "id": "usr_1234567890", "email": "areeb@example.com", "username": "areeb", "avatar_url": null, "created_at": "2024-01-15T10:30:00Z" }, "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refresh_token": "rt_abcdef123456..." }
{ "error": "Validation failed", "details": { "email": "Invalid email format", "password": "Password must be at least 8 characters" } }