Login
POST
/auth/login
const url = 'https://api.mengi.cloud/auth/login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.mengi.cloud/auth/login \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "password": "example" }'Login with email and password
Request Body required
Section titled “Request Body required ” Media type application/json
LoginRequest
object
email
required
Email
string format: email
password
required
Password
string
Example generated
{ "email": "hello@example.com", "password": "example"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
LoginResponse
Login response with user info and token.
object
id
required
Id
string format: uuid
email
required
Email
string
is_active
required
Is Active
boolean
access_token
required
Access Token
string
token_type
Token Type
string
requires_passkey_migration
Requires Passkey Migration
boolean
Example
{ "token_type": "bearer", "requires_passkey_migration": false}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}