/auth/register
Public
Create an account and receive an access token.
Parameters
| Field | Type | Description |
|---|---|---|
| name required | string | Full display name. Max 120 chars. |
| email required | string | Unique email address. |
| password required | string | Min 8 characters. |
| handle | string | Optional unique username (a–z, 0–9, _). |
Request
curl -X POST https://sayzio.app/api/v1/auth/register \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"name": "Jane Creator",
"email": "jane@example.com",
"password": "supersecret"
}'
Response — 200 OK
{
"data": {
"user": { "id": 42, "name": "Jane Creator", "email": "jane@example.com", "handle": null, ... },
"token": "1|abcdef0123456789..."
}
}