Skip to content

Authentication ​

DOLU.ai API uses JWT (JSON Web Token) based authentication.

Login ​

http
POST /api/v1/auth/login

Body:

json
{
  "email": "[email protected]",
  "password": "your-password"
}

Response:

json
{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "refresh_token": "eyJhbGciOiJIUzI1NiIs...",
  "user": {
    "id": "user-uuid",
    "email": "[email protected]",
    "firstName": "John",
    "lastName": "Doe",
    "role": "OWNER"
  }
}

Using the Token ​

Include the token in all API requests:

Authorization: Bearer eyJhbGciOiJIUzI1NiIs...

Refresh Token ​

http
POST /api/v1/auth/refresh
json
{
  "refresh_token": "eyJhbGciOiJIUzI1NiIs..."
}

Token Expiration ​

  • Access token: 24 hours
  • Refresh token: 30 days

Roles ​

RoleDescription
SUPER_ADMINPlatform administrator
OWNERTenant owner
ADMINTenant administrator
AGENTCustomer service agent
VIEWERRead-only access

DOLU.ai - AI-Powered CRM Platform