Base URL
Authentication
Every request requires anAuthorization header with a Bearer token:
/developers/keys/new), or via the API Keys endpoint. The key prefix hasp_api_live_ identifies a live key. Keys are shown in plaintext exactly once on creation — copy it before closing the modal.
Requests from a paid organization also require an active Business Associate Agreement (BAA). Without one, every request returns 402 BAA_REQUIRED. Sign the BAA in Settings → Compliance. Free Evaluation organizations are not BAA-gated — and are not covered by a BAA, so never send real PHI from one. See BAA Gating.
Your first request
Drop-in Anthropic SDK
If you already use@anthropic-ai/sdk, change one line:
API surfaces
Every inference surface reaches the same Anthropic and OpenAI models — see Model Selection.
What’s next
- POST /v1/ai/chat — native streaming chat, full event taxonomy
- POST /v1/messages — Anthropic SDK drop-in
- POST /v1/chat/completions — OpenAI SDK drop-in
- PHI Guard — how PHI detection and redaction work
- API Keys — create and revoke keys programmatically