curl --request POST \ --url http://localhost:8000/api/v1/auth/register \ --header "Content-Type: multipart/form-data" \ --form "name=Test User" \ --form "account=testuser" \ --form "email=user@example.com" \ --form "password=yourpassword" \ --form "password_confirm=yourpassword" \ | jq
{ "name": "<string>", "email": "jsmith@example.com", "account": "<string>", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "roles": "user", "is_active": true, "is_verified": true, "is_superuser": false, "bio": "<string>", "dob": "2023-12-25", "phone": "<string>", "avatar_photo_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "deleted_at": "2023-12-25", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Register a new user
Successful Response
Public user schema (excludes sensitive information).
8 - 40
255
32
User role enumeration.
user
admin
200
20