cURL
curl --request POST \ --url https://api.example.com/auth/signup \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "password": "password123", "firstName": "John", "lastName": "Doe" } '
{ "access_token": "<string>", "refresh_token": "<string>", "user": { "id": "uuid", "email": "[email protected]", "roles": [ "user" ], "firstName": "John", "lastName": "Doe", "image": "https://example.com/image.jpg" } }
"[email protected]"
"password123"
"John"
"Doe"
User successfully created
{ "id": "uuid", "email": "[email protected]", "roles": ["user"], "firstName": "John", "lastName": "Doe", "image": "https://example.com/image.jpg"}