Every response from the Hasp AI API includes two complementary identifiers:Documentation Index
Fetch the complete documentation index at: https://docs.usehasp.com/llms.txt
Use this file to discover all available pages before exploring further.
request_id— the full identifier for the inference request, inreq_<ulid>format.message_id— the ULID portion ofrequest_id(without thereq_prefix), used as the lookup key forGET /v1/ai/messages/{id}.
Where to find them
Non-streaming responses (POST /v1/ai/chat or POST /v1/messages with stream: false):
stream: true): the run.started SSE event carries both:
POST /v1/messages): the standard Anthropic id field is the msg_<ulid> form of the message_id:
Format
request_id values begin with req_ followed by a 26-character ULID. message_id is the same ULID without the prefix. ULIDs are:
- Lexicographically sortable — you can range-query by prefix.
- Timestamp-embedded — the first 10 characters encode millisecond creation time.
- URL-safe — no encoding required in path parameters.
Retrieving a request
The retrieval endpoint accepts the ULID in any of its three equivalent forms:content is null when store: false was passed or the organization’s storage mode is set to None. Lookups are always scoped to your organization — you cannot retrieve another organization’s records.
Durability guarantee
A shell row is created beforerun.started fires — even if the request fails mid-stream, the record is retrievable with whatever state was captured at that point. Records are retained per your organization’s data retention policy (default: 7 years for HIPAA-covered entities).
Using it for support
When filing a support request, include therequest_id. Support staff can use it to:
- Retrieve the exact request and response payload (subject to BAA and access controls).
- Cross-reference the audit log entry for the same request.
- Identify the model version, inference latency, and any compliance events triggered.
request_id values in public-facing error messages — they are internal identifiers, not user-facing content.