Get All Agent Executions
Agent
Get All Agent Executions
Retrieve all executions (call runs) for a specific agent
GET
Get All Agent Executions
Documentation Index
Fetch the complete documentation index at: https://docs.unpod.dev/llms.txt
Use this file to discover all available pages before exploring further.
Get All Agent Executions
Retrieve all execution runs associated with a specific agent. This endpoint provides a summary of each run including status, task counts, and timestamps — useful for monitoring agent performance and execution history.Prerequisites: Make sure you have your API Token and Org-Handle ready. See Authentication for details.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| agent_handle | string | Yes | Unique handle/identifier of the agent |
You can get the
agent_handle by hitting the Get All Agents API. The handle field in the response is your Agent Handle.Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | API Key format: Token <token> |
| Org-Handle | string | Yes | Organization domain handle |
You can get the
Org-Handle by hitting the Get All Organizations API. The domain_handle field in the response is your Org-Handle.Response Fields
| Field | Type | Description |
|---|---|---|
| count | integer | Total number of executions |
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | array | Array of execution objects |
Execution Object Fields
| Field | Type | Description |
|---|---|---|
| run_id | string | Unique run identifier |
| status | string | Run status: completed, running, failed, pending |
| total_tasks | integer | Total number of tasks in the run |
| completed_tasks | integer | Number of successfully completed tasks |
| created | string | Run creation timestamp (ISO 8601) |
Common Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters provided |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Access denied to the resource |
| 404 | Not Found - Agent not found |
| 500 | Internal Server Error - Server-side error |
Code Examples
Best Practices
- Agent Handle: Use the exact agent handle from the Get All Agents response
- Completion Tracking: Calculate
completed_tasks / total_tasksratio to monitor run success rates - Status Monitoring: Poll this endpoint to track long-running executions
- Error Handling: Always handle potential errors and edge cases
- Security: Keep API tokens secure and rotate them regularly