curl --request GET \
--url https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details \
--header 'Authorization: Bearer <token>'import requests
url = "https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"workflow_id": "<string>",
"run_id": "<string>",
"status": "<string>",
"execution_id": "<string>",
"execution_status": "<string>",
"task_queue": "<string>",
"workflow_type": "<string>",
"temporal_web_url": "<string>",
"trace": {
"activities": [
{
"activity_id": "<string>",
"activity_type": "<string>",
"status": "<string>",
"scheduled_time": "2023-11-07T05:31:56Z",
"started_time": "2023-11-07T05:31:56Z",
"completed_time": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"attempt": 1,
"worker_identity": "<string>",
"failure_message": "<string>",
"input": {},
"result": {}
}
],
"timeline": [
{}
],
"total_activities": 123,
"completed_activities": 0,
"failed_activities": 0
},
"start_time": "2023-11-07T05:31:56Z",
"close_time": "2023-11-07T05:31:56Z",
"execution_duration_ms": 0,
"attempt": 1,
"history_length": 0,
"history_size_bytes": 0,
"input": {},
"recent_events": [
{
"event_id": 123,
"event_type": "<string>",
"event_time": "2023-11-07T05:31:56Z",
"details": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Get Execution Details
Get detailed information about an execution including activity trace.
This endpoint retrieves comprehensive execution details including:
- Execution status and timing
- Activity execution trace with timeline
- Recent workflow events
- Link to Temporal Web UI
Args: execution_id: Execution UUID or Temporal workflow ID request: FastAPI request object (contains kubiya_token in state) organization: Current organization from auth db: Database session
Returns: WorkflowDetailsResponse with full execution details and activity trace
Raises: 404: Execution not found 403: Access denied (execution doesn’t belong to organization) 500: Failed to fetch execution details from Temporal
curl --request GET \
--url https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details \
--header 'Authorization: Bearer <token>'import requests
url = "https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"workflow_id": "<string>",
"run_id": "<string>",
"status": "<string>",
"execution_id": "<string>",
"execution_status": "<string>",
"task_queue": "<string>",
"workflow_type": "<string>",
"temporal_web_url": "<string>",
"trace": {
"activities": [
{
"activity_id": "<string>",
"activity_type": "<string>",
"status": "<string>",
"scheduled_time": "2023-11-07T05:31:56Z",
"started_time": "2023-11-07T05:31:56Z",
"completed_time": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"attempt": 1,
"worker_identity": "<string>",
"failure_message": "<string>",
"input": {},
"result": {}
}
],
"timeline": [
{}
],
"total_activities": 123,
"completed_activities": 0,
"failed_activities": 0
},
"start_time": "2023-11-07T05:31:56Z",
"close_time": "2023-11-07T05:31:56Z",
"execution_duration_ms": 0,
"attempt": 1,
"history_length": 0,
"history_size_bytes": 0,
"input": {},
"recent_events": [
{
"event_id": 123,
"event_type": "<string>",
"event_time": "2023-11-07T05:31:56Z",
"details": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Enter your Kubiya API token (format: Bearer )
Path Parameters
Response
Successful Response
Detailed workflow information
Temporal workflow ID
Temporal run ID
Workflow status
Execution entity ID
Execution status from DB
Task queue name
Workflow type
Temporal Web UI URL
Workflow execution trace
Show child attributes
Show child attributes
Workflow start time
Workflow close time
Execution duration in milliseconds
Execution attempt number
History event count
History size in bytes
Workflow input data
Recent workflow events
Show child attributes
Show child attributes
Was this page helpful?