Skip to content

Log in with email and password

POST
/api/auth/login
curl --request POST \
--url http://localhost:8080/api/auth/login \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "password": "example" }'
Media typeapplication/json
object
email
required
string format: email
password
required
string

Example generated

{
"email": "hello@example.com",
"password": "example"
}

Redirect

Successful response

Media typeapplication/json
object
success

Whether the request succeeded.

boolean
data

Endpoint-specific response payload.

message
string
error
string

Example

{
"message": "Operation completed",
"error": "Error message"
}

Invalid request

Media typeapplication/json
object
success
boolean
error
string

Example

{
"error": "Error message"
}

Internal server error

Media typeapplication/json
object
success
boolean
error
string

Example

{
"error": "Error message"
}