POST/api/v1/askThe chat pipeline, on the api channel
curl -s https://gluon.example/api/v1/ask \
-H "Authorization: Bearer $BUYER_TOKEN" \
-H 'content-type: application/json' \
-d '{"question": "Which supplier contracts need attention this quarter?"}'
200The cited answer, with the same withheld count
{
"answer": "Three supplier contracts need attention this quarter. C-1 ends on 31 March 2027 according to the signed contract [1]. The ERP register says 14 November 2026 [2], so check the date with the contract owner. C-1040 expires on 10 November 2026 [3] and C-1060 on 30 November 2026 [4].",
"citations": [
{"n": 1, "title": "C-1", "sourceTitle": "Legal contract library", …},
{"n": 2, "title": "C-1", "sourceTitle": "ERP contract register", …},
{"n": 3, "title": "C-1040", "sourceTitle": "ERP contract register", …},
{"n": 4, "title": "C-1060", "sourceTitle": "ERP contract register", …}
],
"withheld": 0,
"refused": false,
…
}
GET/api/v1/objects/procurement.ContractThe contracts themselves
curl -s -H "Authorization: Bearer $BUYER_TOKEN" \
'https://gluon.example/api/v1/objects/procurement.Contract?q=C-1&limit=10'
200Masked values read ****, withheld properties are named
{
"items": [
{…, "contractNumber": "C-1", …,
"ownerEmail": "a.devries@gluon.example", …,
"_id": "c-1", "_withheld": []},
{…, "contractNumber": "C-1040", …,
"ownerEmail": "a.devries@gluon.example", …,
"_id": "c-1040", "_withheld": []},
{…, "contractNumber": "C-1060", …,
"ownerEmail": "a.devries@gluon.example", …,
"_id": "c-1060", "_withheld": []}
],
"withheld": 0
}