API reference / JSON:API

post/v3/trips/llm

The same trip, with a quotable answer per leg

Operation
v3CreateTripLlm
Authentication
API key

Adds `meta.answers`: one sentence per leg with its citation attached, rather than filed elsewhere a model would drop it. The citation is what a hallucinated answer cannot produce.

Request

Body

dataobjectrequired

Responses

200A JSON:API collection, with `meta.answers`.
metaobjectrequired
dataJsonApiResource[]required
400A malformed parameter, or a filter/include/language this endpoint cannot honour. Refused rather than ignored: an ignored filter returns a full answer that looks filtered.
errorsobject[]required
401No key, an unknown key, a revoked key, or an inactive tenant.
errorsobject[]required
403The key is valid but does not hold `reference:read`.
errorsobject[]required

Example

curl
curl -X POST https://api.haavisa.com/v3/trips/llm \
  -H "Authorization: Bearer $HAAVISA_API_KEY"

More in JSON:API

Something unclear? The eligibility guide explains the model behind the answers; the errors guide covers the envelope.