Skip to main content
This path gets a new developer from dashboard signup to current pack discovery, change visibility, and citation-backed claim verification.

Prerequisites

  • a dashboard account at https://dashboard.esheria.ai/ or an existing Esheria API key
  • curl and jq
  • Python 3.11+ for the optional Python and CLI examples
  • Node.js 20.17+ only if you want to preview these Mintlify docs locally

0. Create A Token

Open https://dashboard.esheria.ai/, sign up with verified Google/GitHub OAuth or sign in, choose your Sandbox packs under Settings, then create a data token from API Tokens. Store the token secret immediately; it is shown only once.
The dashboard also shows your current credit balance, usage, billing state, and a playground for testing API calls before you wire them into an app.
Set your environment:
The selected UK pack is only a starting example. Esheria is catalog-first: list packs first, then explicitly use a verified_published pack ID your workspace should query.
If you already received a workspace token from an Esheria operator or workspace owner, you can use it here instead of creating a new dashboard token.

1. Check Liveness

Expected envelope:

2. List Packs

Pack discovery returns only the packs actually loaded and published in the environment your key can access; treat the API response, not documentation, as the source of truth for what is available. To try another jurisdiction, change the filter (for example jurisdiction=UK) or omit jurisdiction to discover every current pack your key can access. The repository-side stage-of-record for every pack (published_serving vs earlier pipeline stages) is docs/pack_status_matrix.md in the esheria-regulations repository. Expected response shape:
See the complete production catalog. The live esheria_list_packs / GET /api/v1/domain-packs response remains authoritative. Common failure modes:

3. Connect MCP

The live MCP endpoint is already hosted:
You do not need local Python, uvx, pipx, or a virtual environment to use the hosted MCP endpoint when your host supports remote MCP. Authentication depends on the host:
  • Claude.ai, Claude Desktop Directory, and Codex use OAuth through the Esheria dashboard consent page. Do not paste an Esheria data token into the Claude Directory connector.
  • Cursor, Claude Code, internal agent hosts, and Codex as an alternative may use a dashboard-created data token as a bearer token.
Hosted OAuth exposes 20 curated read-only tools. A normal API data token exposes 29 safe read/read-like tools. Operator data tokens add only the mutations authorized by their write scopes, up to the complete 37-tool catalog. Invalid and management-only credentials cannot list tools. For the Codex desktop app, open Settings -> MCP servers -> Add server, choose Streamable HTTP, enter https://mcp.esheria.ai/mcp, save and restart, then select Authenticate. Approve access in the Esheria dashboard and use /mcp to verify the connection. For Codex CLI OAuth:
Approve access in the Esheria dashboard, then restart Codex and call esheria_health, esheria_ready, and esheria_list_packs. The desktop app and CLI can share this MCP configuration when they use the same Codex profile. For the bearer-token alternative, set ESHERIA_API_KEY and use:
Do not keep bearer_token_env_var on the same entry when testing OAuth. Other agent hosts should use their Remote MCP or Streamable HTTP MCP configuration screen with:
  • URL: https://mcp.esheria.ai/mcp
  • Authorization: OAuth when the host offers Esheria connector authorization, or Bearer YOUR_DASHBOARD_CREATED_DATA_TOKEN for API-key hosts
The MCP examples in the next sections assume the host is connected to the live endpoint.

4. Check Pack Version History

Use the returned domain_pack_version values to pin reads with version=... or to compare two versions with /diff and /change-events.

5. Verify A Claim When The Pack Enables It

Use claim verification as a guardrail for generated or user-supplied legal text. Claim verification is evaluator-gated, so first inspect the selected pack. The example below uses a pack with an enabled evaluator; generic fact workflows do not depend on claim verification being enabled.
Expected response shape:
Common failure modes:

Next Steps

Self-Serve Dashboard

Create tokens, manage credits, review usage, update billing, and use the playground.

Authentication

Learn headers, idempotency, trace IDs, and error envelopes.

CLI

Install esheria, run smoke checks, and export pack data.

MCP

Connect an agent host to the live MCP endpoint and run the first five tool calls.

Recipes

Copy complete examples for pack discovery, change monitoring, obligations, evidence, penalties, and claim checks.