Documentation

Hangar docs.

Endpoint reference, MCP guide, runtime architecture, billing model, and a full agent-discovery index.

Get started

Build with Hangar

  • REST API reference

    Endpoint-by-endpoint walkthrough with curl + Node + Python examples.

  • OpenAPI spec

    OpenAPI 3.1, machine-readable. Mirror at /api/openapi.json.

  • MCP server

    Streamable HTTP MCP at /api/mcp. Claude / Cursor / generic clients.

  • Rate limits

    X-RateLimit-* headers and Retry-After backoff.

  • Error catalog

    Stable codes, retry hints, and recovery patterns.

  • Webhooks

    Inbound channels (Telegram, Discord, Slack, billing).

Operate Hangar

  • Billing & wallet

    Subscription model, wallet ledger, top-ups, refunds.

  • Self-host

    Run Hangar on your own Postgres + Fly account.

  • Architecture

    High-level design, data flow, isolation guarantees.

For agents

Markdown alternates

Hangar serves a markdown view of every public page when you send Accept: text/markdown. Permalinks:

Docs — Hangar