List agentic automation runs
import requests
url = "https://api.datagrid.com/v1/agentic-automations/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/agentic-automations/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/agentic-automations/runs \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "agentic_automation_run",
"id": "<string>",
"automation_id": "<string>",
"agent_id": "<string>",
"agent_name": "<string>",
"automation_name": "<string>",
"invocation": "automatic",
"status": "queued",
"failure_reason": "exception",
"triggered_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"output_conversation_id": "<string>",
"type": "scheduled",
"resource_type": "<string>",
"resource_id": "<string>",
"result": "<string>",
"structured_result": {}
}
],
"has_more": true
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Agentic Automations
List agentic automation runs
List runs of agentic automations, newest first. With no filters, the list has every run in the caller’s teamspace. agent_id keeps the runs of one agent, and an unknown agent gives an empty list. resource_type is the kind of record, for example Submittals, and resource_id is the id of the record, as a string; either one keeps only app-event runs on matching records. Add type to keep only scheduled or only app-event runs, status to keep one status, and invocation to keep only some ways a run started, for example automatic,manual to leave out test runs. All filters can be combined. Page with the id of the last or first run as after / before; send both to list only the runs between two runs. Each run carries result and structured_result.
GET
/
agentic-automations
/
runs
List agentic automation runs
import requests
url = "https://api.datagrid.com/v1/agentic-automations/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/agentic-automations/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/agentic-automations/runs \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "agentic_automation_run",
"id": "<string>",
"automation_id": "<string>",
"agent_id": "<string>",
"agent_name": "<string>",
"automation_name": "<string>",
"invocation": "automatic",
"status": "queued",
"failure_reason": "exception",
"triggered_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"output_conversation_id": "<string>",
"type": "scheduled",
"resource_type": "<string>",
"resource_id": "<string>",
"result": "<string>",
"structured_result": {}
}
],
"has_more": true
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}