API reference

Ask

Ask a question

POST/api/ask
json
{
  "chatId": "01HX…",
  "messages": [
    { "role": "user", "content": "Which customer MSAs have liability above 12 months' fees?" }
  ]
}

Streams an answer with structured citations into the obligation graph. Citations point to obligation_ids; clients render them as chips that open the underlying PDF span.

Chats

GET/api/chats
POST/api/chats
GET/api/chats/{chat_id}
PATCH/api/chats/{chat_id}
DELETE/api/chats/{chat_id}