🟢API for Login
This page describes how to login via API.
What can you do?
Login using email and password
Pass login and password. Get authentication token. Provide header: 'Authentication: Bearer {token_access}'
Body
usernamestring · email · min: 1Required
username
passwordstring · min: 1Required
password
Responses
200Success
application/json
400
Validation error or MFA is enabled for this user
application/json
401Error
application/json
403Error
application/json
post
POST /api/v1/auth/login/ HTTP/1.1
Host: saas.haut.ai
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"username": "[email protected]",
"password": "text"
}
{
"id": 1,
"email": "[email protected]",
"username": "[email protected]",
"company_id": "123e4567-e89b-12d3-a456-426614174000",
"token_access": "text",
"access_token": "text",
"refresh_token": "text",
"is_verified": true,
"profile": {
"metadata": null,
"full_name": "text",
"kyc_enabled": true,
"terms_payment_accepted_at": null,
"terms_and_policy_accepted_at": true,
"feature_flags": {
"ANY_ADDITIONAL_PROPERTY": true
}
}
}
Last updated
Was this helpful?