For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList agents
      • POSTCreate agent
      • POSTFetch external agent card
      • POSTRefresh cached agent card
      • GETGet agent details
      • PUTUpdate agent
      • DELDelete agent
      • GETExport agent for runtime
      • GETList agent executions
      • GETGet execution detail
      • GETList tool calls
      • GETGet tool call detail
      • POSTPublish agent
      • POSTAdd capability to agent
      • DELRemove capability from agent
Dashboard
LogoLogo
Runtype APIAgents

Get execution detail

GET
/v1/agents/:id/executions/:executionId
GET
/v1/agents/:id/executions/:executionId
$curl https://api.runtype.com/v1/agents/id/executions/executionId \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "id": "exec_9f8b7c6d5a4e3f21",
3 "agentId": "agent_1234abcd5678efgh",
4 "agentSource": "https://github.com/runtype/agents/sample-agent",
5 "executionId": "exec_9f8b7c6d5a4e3f21",
6 "parentExecutionId": "exec_1a2b3c4d5e6f7g8h",
7 "surfaceType": "web",
8 "status": "completed",
9 "iterations": 5,
10 "totalCost": "0.0234",
11 "stopReason": "max_iterations_reached",
12 "startedAt": "2024-06-10T09:15:30Z",
13 "completedAt": "2024-06-10T09:17:45Z",
14 "createdAt": "2024-06-10T09:15:00Z",
15 "agentSpec": null,
16 "totalTokens": 1450,
17 "inputMessages": [
18 {
19 "role": "user",
20 "content": "Generate a summary of the latest quarterly earnings report."
21 }
22 ],
23 "finalOutput": {
24 "summary": "The company reported a 12% increase in revenue driven by strong sales in the technology sector, with net profit margins improving by 3% compared to the previous quarter."
25 },
26 "iterationDetails": [
27 {
28 "iteration": 1,
29 "output": "Initial data extraction completed.",
30 "tokensUsed": 250
31 },
32 {
33 "iteration": 2,
34 "output": "Draft summary generated.",
35 "tokensUsed": 300
36 },
37 {
38 "iteration": 3,
39 "output": "Summary refined with financial highlights.",
40 "tokensUsed": 300
41 },
42 {
43 "iteration": 4,
44 "output": "Grammar and style improvements applied.",
45 "tokensUsed": 300
46 },
47 {
48 "iteration": 5,
49 "output": "Final summary approved.",
50 "tokensUsed": 300
51 }
52 ],
53 "loopConfig": {
54 "maxIterations": 5,
55 "stopOnCondition": "summary_approved",
56 "retryOnFailure": false
57 }
58}
Get full details for a single agent execution including final output, iteration details, and loop configuration.
Was this page helpful?
Previous

List tool calls

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired
executionIdstringRequired

Response

Execution detail
idstring
agentIdstring or null
agentSourcestring or null
executionIdstring
parentExecutionIdstring or null
surfaceTypestring or null
statusstring
iterationsinteger or null
totalCoststring or null
stopReasonstring or null
startedAtstring or null
completedAtstring or null
createdAtstring
agentSpecany or null
totalTokensany or null
inputMessagesany or null
finalOutputany or null
iterationDetailsany or null
loopConfigany or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error