Mezcal ExplorerMezcalDocs
QuickstartBuildAgentsReference
Open explorer
Documentation homeQuickstartConceptsMonitor 10 Wallets
BuildAPIAdvanced UtilitiesProtocol RoutesAPI Surface PolicySDKTypeScript SDK

Live reference

Interactive API referenceReference hub
AgentsAgent CLIMCP Quickstart
Reference Catalogs
Docs/Quickstart/Concepts

Concepts

Terms you will see across Mezcal docs—URLs, auth, pagination, and API tiers.

API referenceTypeScript SDKCLIAgents

In this guide

Host and pathAuthLists and data shapeRoute tiersResponses you should handleSurfaces
Loading documentation content…
PreviousQuickstartGet connected to Mezcal quickly with a public host, a bounded API key, and no repo setup.NextMonitor 10 WalletsCanonical REST, SDK, and CLI starter for monitoring a fixed wallet set with recent activity, transactions, holdings, and token flows.

On this page

Host and pathAuthLists and data shapeRoute tiersResponses you should handleSurfaces
Mezcal ExplorerMezcalDocumentation

One product surface across the explorer, HTTP API, CLI, SDK, and MCP transport. The docs should guide you into the right path instead of behaving like a separate app.

Open explorerAPI referenceBack to top

Concepts

Short definitions shared by the Quickstart, REST guide, and Build pages.

Host and path

TermMeaning
MEZCAL_BASE_URLOn the hosted external lane, your API root including /api, e.g. https://<host>/api. The explorer UI on the same host talks to the same backend.
/v1/{chain}Chain segment in the path. SN_MAIN is Starknet mainnet. Full example: …/api/v1/SN_MAIN/status.
Same-origin /v1/*Inside the web app, the browser may call /v1/... via proxy. Integrators following these docs usually use /api/v1/... with a key.

Auth

TermMeaning
X-Mezcal-Api-KeyHeader you send on every API request. No Bearer prefix—just the key value.
401Key missing or not accepted. Fix credentials before retrying.
403Key valid but route or tier not allowed (common on batch utility routes).

Lists and data shape

TermMeaning
Cursor paginationList responses use items and often nextCursor. Pass the cursor back to get the next page. Offsets are not the default model.
limitCap on how many rows one response returns. Keep it modest on hosted APIs.

Route tiers

TierMeaning
Official public APIDefault documented contract in Scalar and mezcal-openapi.yaml. Start here.
Advanced utilitiesSupported batch helpers (e.g. tx previews, tx detail hydration, address summaries). Often need a broader key. See Advanced utilities.
Protocol routesPublic bridge-analytics extension reads. Private protocol validation surfaces are not part of this public spec.
Internal-onlyApp or operations traffic—not part of your integration contract unless Mezcal documents it for you.

Responses you should handle

SignalAction
X-Request-IdInclude it when you report a bug or ask for support.
Retry-AfterHonor it on retries instead of hammering the API.
exact / truncated (holdings)For portfolio-style decisions, treat holdings as complete only when exact=true and truncated=false.

Surfaces

REST, the TypeScript SDK, and the CLI share the public REST contract. MCP exposes the same objects through a separate tool surface.

SurfaceRole
RESTDirect HTTP; see API reference.
TypeScript SDKTyped client; see SDK.
CLIShell; see Agent CLI.
MCPTools for coding agents over the MCP / JSON-RPC surface; see MCP quickstart.