Get an agentic automation run
import requests
url = "https://api.datagrid.com/v1/agentic-automations/runs/{id}"
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/{id}', 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/{id} \
--header 'Authorization: Bearer <token>'{
"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": {}
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Agentic Automations
Get an agentic automation run
Get one run of an agentic automation by its ID. Use it to check whether a run has finished, how it ended, and what it answered in result and structured_result.
GET
/
agentic-automations
/
runs
/
{id}
Get an agentic automation run
import requests
url = "https://api.datagrid.com/v1/agentic-automations/runs/{id}"
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/{id}', 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/{id} \
--header 'Authorization: Bearer <token>'{
"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": {}
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Authorizations
Response
The run
Whatever the agent stored for the record, as opaque JSON. Datagrid does not name or validate its keys, so they are an agreement between the agent and its reader, and you cannot sort or filter on one.
Null when the agent stored nothing, and null when result is empty.