Ai API
1 operation. Back to the API overview. Examples use synthetic data.
Ai ask
POST /admin/v1/ai/ask
Needs the permissions: dlq:retransmit, transactions:read.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
context | any | optional | - |
history | array of object (AiTurnJSON) | optional | - |
history.[]role | string | optional | - |
history.[]text | string | optional | - |
question | string | optional | - |
{
"context": {},
"history": [
{
"role": "example",
"text": "example"
}
],
"question": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
answer | string | optional | - |
citations | array of object (AiCitation) | optional | - |
citations.[]ref | string | optional | - |
citations.[]tool | string | optional | - |
proposals | array of object (AiCard) | optional | - |
proposals.[]agent_id | string | optional | - |
proposals.[]base_version | integer | optional | - |
proposals.[]checks | any | optional | - |
proposals.[]count | integer | optional | - |
proposals.[]diff | array of object (AiDiffLine) | optional | - |
proposals.[]expires_at | string (date-time) | optional | - |
proposals.[]id | string | optional | - |
proposals.[]origin | string | optional | - |
proposals.[]permission | string | optional | - |
proposals.[]plan_hash | string | optional | - |
proposals.[]proposed_by | string | optional | - |
proposals.[]reason | string | optional | - |
proposals.[]result | any | optional | - |
proposals.[]risk | array of string | optional | - |
proposals.[]status | string | optional | - |
proposals.[]summary | string | optional | - |
proposals.[]target | string | optional | - |
proposals.[]token | string | optional | Token is returned once, to the proposing console user only. |
proposals.[]tool | string | optional | - |
tools_used | array of string | optional | - |
{
"answer": "example",
"citations": [
{
"ref": "example",
"tool": "example"
}
],
"proposals": [
{
"agent_id": "example-id",
"base_version": 1,
"checks": {},
"count": 1,
"diff": [
{
"op": "example",
"text": "example"
}
],
"expires_at": "2026-01-15T14:30:00Z",
"id": "example-id",
"origin": "example",
"permission": "example",
"plan_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"proposed_by": "example",
"reason": "Example text",
"result": {},
"risk": [
"example"
],
"status": "ok",
"summary": "example",
"target": "example",
"token": "example",
"tool": "example"
}
],
"tools_used": [
"example"
]
}Other responses
401Authentication required403Not permitted404Not Found502Bad Gateway503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"context":{},"history":[{"role":"example","text":"example"}],"question":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/ai/ask"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.