register
Endpoint
POST /api/register
Request Headers
{
"Accept": "application/json",
"Content-Type": "application/json"
}
Request Body
{
"name": "Test client",
"email": "[email protected]",
"password": "123Qw456",
"password_confirmation": "123Qw456"
}
Response Body (200)
{
"user": {
"name": "Test client",
"email": "[email protected]",
"updated_at": "2025-08-29T13:34:13.000000Z",
"created_at": "2025-08-29T13:34:13.000000Z",
"id": 4
},
"token": "23|rWG3kAcr8rYfTbejqKFQ5exIiKV39Sa8jriKZEzV5be192e5"
}
Response Body (422)
{
"message": "The email has already been taken. (and 1 more error)",
"errors": {
"email": [
"The email has already been taken."
],
"password": [
"The password field confirmation does not match."
]
}
}
29 August 2025