🚀 Simplify your work by integrating Haufe CoPilot Connect via API or MCP
Skip to Content
Citations

Get citations of an assistant message

Returns the sources that support each part of an assistant message. Request the citations only after the answer is complete, in stream mode after the end of the stream.

GET/v1/threads/{thread_id}/messages/{message_id}/citations

Authorization

api-key<token>

In: header

Path Parameters

thread_id*Thread Id
Formatuuid
message_id*Message Id
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages/497f6eca-6276-4993-bfeb-53cbbbba6f08/citations"
{  "citations": [    {      "end": 85,      "start": 0,      "statements": [        {          "id": "HI1234567",          "text": "... die Kündigungsfrist zwei Wochen ...",          "type": "source"        }      ],      "text": "Während der Probezeit beträgt die Kündigungsfrist gemäß § 622 Abs. 3 BGB zwei Wochen."    }  ]}