Skip to main content
GET
/
api
/
v1
/
flows
/
executions
/
{execution_id}
Get Execution
curl --request GET \
  --url https://agent-studio.thena.ai/api/v1/flows/executions/{execution_id} \
  --header 'x-api-key: <api-key>'
{
  "id": "<string>",
  "flow_id": "<string>",
  "agent_id": "<string>",
  "organization_id": "<string>",
  "execution_number": 123,
  "trigger_type": "manual",
  "trigger_data": {},
  "variables": {},
  "priority": "low",
  "status": "pending",
  "started_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "duration_ms": 123,
  "timeout_seconds": 300,
  "steps": [
    {
      "step_id": "<string>",
      "step_name": "<string>",
      "step_type": "<string>",
      "tool_name": "<string>",
      "status": "pending",
      "input_data": {},
      "output_data": {},
      "error_message": "<string>",
      "started_at": "2023-11-07T05:31:56Z",
      "completed_at": "2023-11-07T05:31:56Z",
      "duration_ms": 123,
      "retry_count": 0,
      "metadata": {}
    }
  ],
  "final_output": {},
  "error_message": "<string>",
  "error_details": {},
  "retry_count": 0,
  "max_retries": 3,
  "parent_execution_id": "<string>",
  "tokens_used": 123,
  "tool_calls_count": 0,
  "cost_estimate": 123,
  "performance_metrics": {},
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Path Parameters

execution_id
string
required

Response

Successful Response

Complete flow execution record.

flow_id
string
required

ID of the executed flow

agent_id
string
required

ID of the agent that owns the flow

organization_id
string
required

Organization ID

execution_number
integer
required

Sequential execution number for this flow

trigger_type
enum<string>
required

How the execution was triggered

Available options:
manual,
event,
scheduled,
api,
webhook,
test
priority
enum<string>
required

Execution priority

Available options:
low,
normal,
high,
urgent
status
enum<string>
required

Current execution status

Available options:
pending,
queued,
running,
completed,
failed,
cancelled,
timeout,
retrying
started_at
string<date-time>
required

When execution started

id
string

Unique execution ID

trigger_data
object

Original trigger data

variables
object

Execution variables

completed_at
string<date-time> | null

When execution completed

duration_ms
integer | null

Total execution duration in milliseconds

timeout_seconds
integer
default:300

Execution timeout

steps
FlowExecutionStep · object[]

Execution steps

final_output
object

Final execution output

error_message
string | null

Error message if execution failed

error_details
object

Detailed error information

retry_count
integer
default:0

Number of retries attempted

max_retries
integer
default:3

Maximum number of retries

parent_execution_id
string | null

Parent execution if this is a retry

tokens_used
integer | null

Total tokens used in LLM calls

tool_calls_count
integer
default:0

Number of tool calls made

cost_estimate
number | null

Estimated cost in USD

performance_metrics
object

Performance metrics

metadata
object

Additional execution metadata

created_at
string<date-time>

When record was created

updated_at
string<date-time>

When record was last updated

I