Skip to content
Hoist AI Docs
Sign in / Sign up

Authentication

Hoist has two authentication surfaces. REST API and CLI calls use a Hoist API key. MCP clients obtain a scoped access token through OAuth consent after a signed-in human approves access — there is no token to paste for MCP.

Provisioned accounts use a native Hoist API key. Keys are prefixed ha_live_ and are sent as a bearer credential on every request except GET /v1/_health.

Authorization header
Authorization: Bearer ha_live_xxxxxxxxxxxxxxxxxxxxxxxx
Credential handling.Treat an API key like a password. Do not place it in browser code, public repos, screenshots, prompts, or analytics payloads.

The CLI uses the same key. Pass it with --token or set the HOIST_API_KEY environment variable. The API key is the single credential for both REST and CLI — there is no separate CLI credential flow.

MCP clients use OAuth consent — the AI host handles the flow and no API key is pasted into the host. A human approves the scopes the AI client can use, and Hoist stores the approval, billing checks, and audit events server-side.

Use this issuer and route set:

RoutePurpose
https://mcp.assets.hoistai.com/.well-known/oauth-authorization-serverOAuth metadata
https://mcp.assets.hoistai.com/oauth/registerDynamic client registration
https://mcp.assets.hoistai.com/oauth/authorizeHuman approval
https://mcp.assets.hoistai.com/oauth/tokenToken exchange
https://mcp.assets.hoistai.com/oauth/revokeDisconnect or revoke
https://mcp.assets.hoistai.com/mcpProtected MCP endpoint

Tokens and approvals are limited to the scopes granted at issue time.

  • ppsr:search.org
  • ppsr:search.serial
  • abn:lookup
  • gst:status
  • assets:receipts
  • mcp:account.receipts

Human account pages use browser sessions. REST and CLI calls use an API key; MCP calls use an OAuth-issued scoped token. Keep machine-client credentials separate from browser sign-in state.