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())

Personal Access Tokens (for single sign-on users)

If you sign in to Tessallite through single sign-on (SAML or OIDC), you do not have a password to type into a BI tool such as Excel or Power BI. Instead, generate a Personal Access Token and use it in place of the password.

How to create one:

  1. Sign in to the Tessallite web app.
  2. Open the account menu (top right) and choose Personal Access Tokens.
  3. Click Generate token, give it a label (for example, "Excel on my laptop"), and optionally set an expiry.
  4. Copy the token immediately. It is shown once and cannot be retrieved again. Store it somewhere safe, like a password manager.

How to use one:

Managing tokens: the same page lists your tokens (label, a masked preview, when each was created, and when it was last used) and lets you revoke any token. A revoked or expired token is refused on its next connection; a BI session already open ends within a short window.

A Personal Access Token is a secret, just like a password. Anyone who has it can query Tessallite as you until it is revoked or expires. Do not paste it into email, chat, or source code.

Password users can also generate a token — it is a convenient way to connect a BI tool without embedding your account password in a connection string.

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