Skip to main content
The Essal API supports two authentication methods: API Keys for server-to-server integrations, and OAuth 2.0 for user-facing flows. Both methods use the same header and share a unified scope system across all six apps.

API Keys

API keys are the fastest way to authenticate. They are long-lived credentials tied to a workspace and a set of scopes.

Creating an API Key

  1. Go to Settings → Developer → API Keys in the admin dashboard
  2. Click Create API Key
  3. Assign a name and select the required scopes (e.g. office:read, sales:write)
  4. Copy and securely store the key — it is shown only once

Using an API Key

Pass the key as a request header:
API keys grant access to your entire workspace. Store them in environment variables or a secrets manager — never hard-code them in source files.

OAuth 2.0

For applications acting on behalf of a user, use the OAuth 2.0 Authorization Code flow with PKCE.

Authorization Flow

The response includes an access_token (1-hour lifetime) and a refresh_token (30-day lifetime).

Scopes Reference

Use the narrowest scope necessary for each integration. The read:all and write:all convenience scopes are available but not recommended for production keys.