Login
Get a DaaS org access token.
POST
/api/daas/authentication/loginRate Limiting: If you send too many requests in a short time, you will receive a 429 Too Many Requests response.
Example:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…
This login call itself does not need that header. Send the returned token on every other DaaS call.
REQUEST BODY SCHEMA: application/json
usernamerequiredpasswordrequiredRESPONSE BODY SCHEMA: application/json
statusmessagedatatokenResponses
200 — Successfully retrieved access token
200 — Successfully retrieved access token
Returns data.token. Use it as Authorization: Bearer <token> on the next calls.
401 — Invalid username or password
401 — Invalid username or password
Wrong credentials. Check the values from onboarding.
429 — Too Many Requests
429 — Too Many Requests
You sent too many login calls. Wait and retry.
Request example
cURL
bashcurl -X POST http://ext-integration.haat-delivery.io/api/daas/authentication/login \
-H "Content-Type: application/json" \
-d '{"username":"username","password":"password!@123"}'Response example
200
json{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 7200,
"status": "success",
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}401
json{
"status": "failed",
"message": "Invalid username or password",
"data": null
}429
json{
"status": "failed",
"message": "Too Many Requests"
}