modellerUpdated 2026-04-17

API Authentication

What this covers

The Tessallite REST API uses HTTP Basic authentication on every request. There are no session tokens, API keys, or OAuth flows.

How authentication works

Each request must include an Authorization header with HTTP Basic credentials: a Tessallite username (email address) and password, base64-encoded.

Base URL: http://HOST:3000/api/v1

Most HTTP clients (curl, Python requests, Postman) handle the encoding automatically.

HTTP Basic auth transmits credentials as base64, not encrypted. Use HTTPS in all production environments.

Permissions

RoleAPI access
System AdminFull access to all endpoints, including workspace management
Tenant AdminProject and workspace-level endpoints within their tenant
ModellerProject, model, and aggregate endpoints
Analyst / ViewerRead-only access; no administrative endpoints

The ADMIN_USER / ADMIN_PASS credentials have full access to all endpoints.

Example: curl

curl -u username:password http://HOST:3000/api/v1/health

Example: Python requests

import requests

response = requests.get(
    "http://HOST:3000/api/v1/health",
    auth=("user@example.com", "yourpassword")
)
print(response.json())

Common authentication errors

HTTP statusMeaningResolution
401 UnauthorizedNo credentials or wrong credentialsVerify email and password; confirm Authorization header is sent
403 ForbiddenCredentials correct but role insufficientUse an account with the required role

Security recommendations

Related