Get Execution Result
Fetch the final output of an Agent execution via the Squadbase API.
GET
https://api.squadbase.dev/v0/agent/{agentId}/executions/{executionId}/resultReturns the result of an execution. This endpoint always responds with 200 OK: while the execution is still running, output is null and only status is meaningful. Once the execution is COMPLETED, output holds the agent's final output text.
Request headers
Prop
Type
Required
The x-api-key header is required on every request — see Authentication.
Path parameters
Prop
Type
Required
Response — 200 OK
Prop
Type
{
"executionId": "uuid",
"agentId": "uuid",
"status": "COMPLETED",
"output": "Signups grew 18% week-over-week, driven by ...",
"summary": { "messageCount": 12, "toolCallCount": 5 },
"error": null,
"completedAt": "ISO8601"
}Example
curl 'https://api.squadbase.dev/v0/agent/<AGENT_ID>/executions/<EXECUTION_ID>/result' \
-H 'x-api-key: <YOUR_API_KEY>'A 422 (notFound) is returned if the executionId does not exist or does not belong to the agentId in the path. See Errors for details.