Skip to content
Hoist AI Assets Docs
Read docs Get API access

Authentication

Hoist Assets has two authentication surfaces. REST API and CLI calls use bearer tokens. MCP clients obtain bearer tokens through OAuth consent after a signed-in human approves access.

Every API request except GET /v1/_health needs a bearer token.

Authorization header
Authorization: Bearer $HOIST_TOKEN
Credential handling.Treat bearer tokens like passwords. Do not place them in browser code, public repos, screenshots, prompts, or analytics payloads.

The CLI can use the same token with --token or the HOIST_TOKEN environment variable. There is no separate CLI key flow.

MCP clients use OAuth consent. 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. API, CLI, and MCP calls use bearer tokens with explicit scopes, so keep machine-client tokens separate from browser sign-in state.