Velacent Bridge: beta December 2026, general availability early 2027. E-mail sales to request beta access.

Documentation menu

Ai API

Last updated . Documentation for the current release. Ask in the product.

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

Request body of Ai ask
FieldTypePresenceDescription
contextanyoptional-
historyarray of object (AiTurnJSON)optional-
history.[]rolestringoptional-
history.[]textstringoptional-
questionstringoptional-
Example request body (synthetic data)
{
  "context": {},
  "history": [
    {
      "role": "example",
      "text": "example"
    }
  ],
  "question": "example"
}

Response 200

Response fields of Ai ask
FieldTypePresenceDescription
answerstringoptional-
citationsarray of object (AiCitation)optional-
citations.[]refstringoptional-
citations.[]toolstringoptional-
proposalsarray of object (AiCard)optional-
proposals.[]agent_idstringoptional-
proposals.[]base_versionintegeroptional-
proposals.[]checksanyoptional-
proposals.[]countintegeroptional-
proposals.[]diffarray of object (AiDiffLine)optional-
proposals.[]expires_atstring (date-time)optional-
proposals.[]idstringoptional-
proposals.[]originstringoptional-
proposals.[]permissionstringoptional-
proposals.[]plan_hashstringoptional-
proposals.[]proposed_bystringoptional-
proposals.[]reasonstringoptional-
proposals.[]resultanyoptional-
proposals.[]riskarray of stringoptional-
proposals.[]statusstringoptional-
proposals.[]summarystringoptional-
proposals.[]targetstringoptional-
proposals.[]tokenstringoptionalToken is returned once, to the proposing console user only.
proposals.[]toolstringoptional-
tools_usedarray of stringoptional-
Example response (synthetic data)
{
  "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

  • 401 Authentication required
  • 403 Not permitted
  • 404 Not Found
  • 502 Bad Gateway
  • 503 Unavailable (nothing was changed)
Example request
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.