Ai actions API
4 operations. Back to the API overview. Examples use synthetic data.
List a i actions
GET /admin/v1/ai/actions
Needs the permission: transactions:read.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
actions | any | optional | - |
enabled | any | optional | - |
{
"actions": {},
"enabled": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/ai/actions"Get a i action
GET /admin/v1/ai/actions/{id}
Needs the permission: transactions:read.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
agent_id | string | optional | - |
base_version | integer | optional | - |
checks | any | optional | - |
count | integer | optional | - |
diff | array of object (AiDiffLine) | optional | - |
diff.[]op | string | optional | - |
diff.[]text | string | optional | - |
expires_at | string (date-time) | optional | - |
id | string | optional | - |
origin | string | optional | - |
permission | string | optional | - |
plan_hash | string | optional | - |
proposed_by | string | optional | - |
reason | string | optional | - |
result | any | optional | - |
risk | array of string | optional | - |
status | string | optional | - |
summary | string | optional | - |
target | string | optional | - |
token | string | optional | Token is returned once, to the proposing console user only. |
tool | string | optional | - |
{
"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"
}Other responses
401Authentication required403Not permitted404Not Found
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/ai/actions/example-id"Cancel a i action
POST /admin/v1/ai/actions/{id}/cancel
Needs the permission: transactions:read.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
plan_hash | string | optional | - |
token | string | optional | - |
{
"plan_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"token": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
id | any | optional | - |
status | any | optional | - |
{
"id": {},
"status": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"plan_hash":"0000000000000000000000000000000000000000000000000000000000000000","token":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/ai/actions/example-id/cancel"Confirm a i action
POST /admin/v1/ai/actions/{id}/confirm
Needs the permission: transactions:read.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
plan_hash | string | optional | - |
token | string | optional | - |
{
"plan_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"token": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
id | any | optional | - |
results | any | optional | - |
status | integer | optional | - |
{
"id": {},
"results": {},
"status": 1
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"plan_hash":"0000000000000000000000000000000000000000000000000000000000000000","token":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/ai/actions/example-id/confirm"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.