login
Endpoint
POST /api/login
Request Headers
{
"Accept": "application/json",
"Content-Type": "application/json"
}
Request Body
{
"email": "[email protected]",
"password": "eulADXSZFoZZ"
}
Response Body (200)
{
"user": {
"id": 3,
"name": "Client",
"email": "[email protected]",
"email_verified_at": null,
"created_at": "2025-08-22T14:28:26.000000Z",
"updated_at": "2025-08-28T14:42:57.000000Z",
"roles": [
{
"id": 3,
"name": "client",
"guard_name": "web",
"created_at": "2025-08-22T14:28:25.000000Z",
"updated_at": "2025-08-22T14:28:25.000000Z",
"pivot": {
"model_type": "App\\Models\\User",
"model_id": 3,
"role_id": 3
}
}
]
},
"roles": [
"client"
],
"token": "21|k55TLaXl4lGLPHvkwmtIVwzIyQjq6vlCWCr1UDa3fcbb9965"
}
Response Body (422)
{
"message": "The provided credentials are incorrect.",
"errors": {
"email": [
"The provided credentials are incorrect."
]
}
}
29 August 2025