This page describes how to login via API.
Login using email and password
Last updated 1 month ago
Pass login and password. Get authentication token. Provide header: 'Authentication: Bearer {token_access}'
username
password
const response = await fetch('https://saas.haut.ai/api/v1/auth/login/', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "password": "text", "username": "name@gmail.com" }), }); const data = await response.json();
{ "id": 0, "email": "name@gmail.com", "username": "name@gmail.com", "company_id": "123e4567-e89b-12d3-a456-426614174000", "token_access": "text", "access_token": "text", "refresh_token": "text", "is_verified": false, "profile": { "full_name": "text", "kyc_enabled": false, "terms_and_policy_accepted_at": false } }