TheDocumentation Index
Fetch the complete documentation index at: https://docs.usehasp.com/llms.txt
Use this file to discover all available pages before exploring further.
store flag behaves differently depending on which surface you use.
Native surface (POST /v1/ai/chat)
The native surface accepts store as an optional boolean parameter (default true).
| Value | Behavior |
|---|---|
store: true (default) | Response content is stored in the inference record and returned by GET /v1/ai/messages/{id}. |
store: false | A shell row is still created (for auditability) but no message content is stored. GET /v1/ai/messages/{id} returns the record with content: null. |
store: false only suppresses content persistence — it does not suppress billing, PHI scanning, or audit events.
Anthropic-compat surface (POST /v1/messages)
The compat surface rejects requests that include a store field. This is a deliberate guardrail.
The Anthropic API uses store: false to opt out of training data collection. On the Hasp compat surface that parameter has no meaningful analog — Hasp’s data handling is governed by your BAA and retention policy, not by a per-request flag. Accepting store: false silently would mislead callers into thinking they had opted out of some Hasp-specific storage behavior.
Instead, the API returns a 400 error:
What Hasp stores and retains
Regardless of thestore flag, Hasp’s retention behavior is determined by your organization’s data retention policy configured at the organizational level:
| What | Where | Retention |
|---|---|---|
| Request payload (messages, model, parameters) | Encrypted at rest (Aptible Postgres) | Per your retention policy (default: 7 years for HIPAA) |
| Response content | Same | Same — unless store: false on the native surface |
| PHI redaction metadata | Same | Same |
| Audit log entry | Tamper-resistant audit chain | Permanent (per ADR-024) |
| Token usage | Usage table | Permanent (for billing) |
Disabling content storage
If your use case requires inference without content retention, configure Storage Mode: None in Settings → AI Workspace → Data Retention. This instructs Hasp to perform inference without persisting the message payload. The audit log entry is still created. Note: With storage disabled,GET /v1/ai/messages/{id} returns the record but not the message content. The request_id remains valid and usable for support purposes.
Migrating from @anthropic-ai/sdk with store: false
If your existing code passesstore: false to the Anthropic SDK and you’re pointing it at the Hasp compat surface (/v1/messages), remove the store field:
/v1/ai/chat surface with store: false.