HAAT Integration Docs

Login

Get a DaaS org access token.

POST/api/daas/authentication/login

Rate 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
usernamerequired
string

Org DaaS username from onboarding.

passwordrequired
string

Password from onboarding.

RESPONSE BODY SCHEMA: application/json
status
string

For example success.

message
string | null

Human-readable result.

data
object

Login payload.

token
string

DaaS org JWT. Send it as Authorization: Bearer <token>.

Responses

200 — Successfully retrieved access token

Returns data.token. Use it as Authorization: Bearer <token> on the next calls.

401 — Invalid username or password

Wrong credentials. Check the values from onboarding.

429 — Too Many Requests

You sent too many login calls. Wait and retry.

Request example
cURL
bash
curl -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"
}

Type to search…

↑↓ navigate↵ openesc close