Get a saved agent run
curl --request GET \
--url https://omnicommerce.ai/api/v1/agents/{agentId}/runs/{runId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/agents/{agentId}/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/agents/{agentId}/runs/{runId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"run_id": "<string>",
"thread_id": "<string>",
"status": "queued",
"messages": [
{
"type": "human",
"role": "user",
"content": "<string>",
"id": "<string>",
"name": "<string>",
"tool_calls": [
{
"name": "<string>",
"args": "<unknown>",
"id": "<string>"
}
],
"tool_call_id": "<string>",
"memory_sources": [
{
"title": "<string>",
"href": "<string>",
"stale": true
}
]
}
],
"structured_output": {},
"approvals": [
{
"interrupt_instance_id": "<string>",
"tool_name": "<string>",
"tool_args": "<unknown>",
"message": "<string>"
}
],
"error": "<string>"
}Agents
Get a saved agent run
Read the canonical run resource. Organization, caller, credential and exact agent access are checked again. Requires agents:invoke.
GET
/
api
/
v1
/
agents
/
{agentId}
/
runs
/
{runId}
Get a saved agent run
curl --request GET \
--url https://omnicommerce.ai/api/v1/agents/{agentId}/runs/{runId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/agents/{agentId}/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/agents/{agentId}/runs/{runId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"run_id": "<string>",
"thread_id": "<string>",
"status": "queued",
"messages": [
{
"type": "human",
"role": "user",
"content": "<string>",
"id": "<string>",
"name": "<string>",
"tool_calls": [
{
"name": "<string>",
"args": "<unknown>",
"id": "<string>"
}
],
"tool_call_id": "<string>",
"memory_sources": [
{
"title": "<string>",
"href": "<string>",
"stale": true
}
]
}
],
"structured_output": {},
"approvals": [
{
"interrupt_instance_id": "<string>",
"tool_name": "<string>",
"tool_args": "<unknown>",
"message": "<string>"
}
],
"error": "<string>"
}Authorizations
Query Parameters
Response
The run resource.