API reference / JSON:API
post
/v3/trips/llmThe 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
dataobjectrequiredResponses
200A JSON:API collection, with `meta.answers`.
metaobjectrequireddataJsonApiResource[]required400A 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[]required401No key, an unknown key, a revoked key, or an inactive tenant.
errorsobject[]required403The key is valid but does not hold `reference:read`.
errorsobject[]requiredExample
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.