Skip to main content
The HASP AI API lets you send HIPAA-compliant AI requests from any backend. It is a separate surface from the App Builder SDK — it uses API keys instead of session cookies, and it calls a different base URL.

Base URL

Authentication

Every request requires an Authorization header with a Bearer token:
API keys are created in Settings → API Keys in your HASP dashboard, 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. All requests also require an active Business Associate Agreement (BAA) on your organization. Without one, every request returns 402 BAA_REQUIRED. Sign the BAA in Settings → Compliance.

Your first request

Response:

Drop-in Anthropic SDK

If you already use @anthropic-ai/sdk, change one line:
Your existing code, tools, and types all continue to work. See POST /v1/messages for the full compat surface.

API surfaces

Every inference surface reaches the same Anthropic and OpenAI models — see Model Selection.

What’s next