> This page is also available as Markdown: append .md to its URL. The full index of Sikaru docs is at https://docs.sikaru.ai/llms.txt. Code examples use only operations from the public API reference at https://docs.sikaru.ai/api-reference.

# Managed Run Transcript

GET https://api.sikaru.ai/v1/projects/{project_id}/runs/{run_id}/transcript

Reference: https://docs.sikaru.ai/api-reference/runs/get-transcript

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `project_id` (string, required)
- `run_id` (string, required)

## Response

### 200

Successful Response

- `events` (list of TranscriptEvent, required)
- `evidence` (enum, required)
  - Allowed values: `retained_snapshot`, `retained_progress`, `unavailable`, `personal`
- `run` (TranscriptRun, required)
- `trajectory` (TranscriptTrajectory, required, nullable)
- `connections` (list of PersonalConnectionPrompt, optional)
- `progress` (list of TranscriptProgressEvent, optional)
- `usage` (TranscriptUsage, optional, nullable)

## Errors

### 401 Unauthorized Error

Missing or invalid credentials (`unauthenticated`).

- `code` (string, required) — Stable machine code. Specific values: `insufficient_credits` (402): billing does not allow this request now; check your plan, credits and the agent's spending cap; `idempotency_conflict` (409): the idempotency key was already used for a different request, or for a file that was deleted; `concurrent_request` (409): another request is changing the same resource; send the same request again; `agent_disabled` (409): the agent is turned off; turn it on before starting new work; `release_unavailable` (409): the agent has no release that can run; `action_not_pending` (409): the tool call or approval is not waiting for this input: it already has an outcome, its run finished, it is handled by Sikaru, or it does not match a pending request; `not_retryable` (409): the run cannot be retried: it did not fail, its failure is not recoverable, or it failed too long ago; `branch_unavailable` (409): the session cannot be branched at that run; `record_invalid` (409): the retained record cannot be read; `state_conflict` (409): the request conflicts with the resource's current state; read it before trying again; `agent_capacity_full` (429): the agent's turn capacity is full; `agent_unavailable` (503): execution is switched off for this agent; `turn_delivery_pending` (503): the message was recorded but has not started; send it again with the same idempotency key; `execution_storage_unavailable` (503): session, file or workspace storage is unavailable right now; `storage_unavailable` (503): the storage behind this resource is unavailable right now; `trajectory_storage_unavailable` (503): retained run records cannot be read right now. Otherwise a status default: `bad_request` (400), `unauthenticated` (401), `payment_required` (402), `forbidden` (403), `not_found` (404), `method_not_allowed` (405), `not_acceptable` (406), `request_timeout` (408), `conflict` (409), `gone` (410), `length_required` (411), `precondition_failed` (412), `payload_too_large` (413), `unsupported_media_type` (415), `range_not_satisfiable` (416), `invalid_request` (422), `locked` (423), `precondition_required` (428), `rate_limited` (429), `internal_error` (500), `not_implemented` (501), `bad_gateway` (502), `service_unavailable` (503), `gateway_timeout` (504). `429` and `503` refusals with a specific code carry `Retry-After` in seconds.
- `detail` (string, required)

### 403 Forbidden Error

The credential lacks access or a required scope (`forbidden`).

- `code` (string, required) — Stable machine code. Specific values: `insufficient_credits` (402): billing does not allow this request now; check your plan, credits and the agent's spending cap; `idempotency_conflict` (409): the idempotency key was already used for a different request, or for a file that was deleted; `concurrent_request` (409): another request is changing the same resource; send the same request again; `agent_disabled` (409): the agent is turned off; turn it on before starting new work; `release_unavailable` (409): the agent has no release that can run; `action_not_pending` (409): the tool call or approval is not waiting for this input: it already has an outcome, its run finished, it is handled by Sikaru, or it does not match a pending request; `not_retryable` (409): the run cannot be retried: it did not fail, its failure is not recoverable, or it failed too long ago; `branch_unavailable` (409): the session cannot be branched at that run; `record_invalid` (409): the retained record cannot be read; `state_conflict` (409): the request conflicts with the resource's current state; read it before trying again; `agent_capacity_full` (429): the agent's turn capacity is full; `agent_unavailable` (503): execution is switched off for this agent; `turn_delivery_pending` (503): the message was recorded but has not started; send it again with the same idempotency key; `execution_storage_unavailable` (503): session, file or workspace storage is unavailable right now; `storage_unavailable` (503): the storage behind this resource is unavailable right now; `trajectory_storage_unavailable` (503): retained run records cannot be read right now. Otherwise a status default: `bad_request` (400), `unauthenticated` (401), `payment_required` (402), `forbidden` (403), `not_found` (404), `method_not_allowed` (405), `not_acceptable` (406), `request_timeout` (408), `conflict` (409), `gone` (410), `length_required` (411), `precondition_failed` (412), `payload_too_large` (413), `unsupported_media_type` (415), `range_not_satisfiable` (416), `invalid_request` (422), `locked` (423), `precondition_required` (428), `rate_limited` (429), `internal_error` (500), `not_implemented` (501), `bad_gateway` (502), `service_unavailable` (503), `gateway_timeout` (504). `429` and `503` refusals with a specific code carry `Retry-After` in seconds.
- `detail` (string, required)

### 404 Not Found Error

The resource or route does not exist (`not_found`).

- `code` (string, required) — Stable machine code. Specific values: `insufficient_credits` (402): billing does not allow this request now; check your plan, credits and the agent's spending cap; `idempotency_conflict` (409): the idempotency key was already used for a different request, or for a file that was deleted; `concurrent_request` (409): another request is changing the same resource; send the same request again; `agent_disabled` (409): the agent is turned off; turn it on before starting new work; `release_unavailable` (409): the agent has no release that can run; `action_not_pending` (409): the tool call or approval is not waiting for this input: it already has an outcome, its run finished, it is handled by Sikaru, or it does not match a pending request; `not_retryable` (409): the run cannot be retried: it did not fail, its failure is not recoverable, or it failed too long ago; `branch_unavailable` (409): the session cannot be branched at that run; `record_invalid` (409): the retained record cannot be read; `state_conflict` (409): the request conflicts with the resource's current state; read it before trying again; `agent_capacity_full` (429): the agent's turn capacity is full; `agent_unavailable` (503): execution is switched off for this agent; `turn_delivery_pending` (503): the message was recorded but has not started; send it again with the same idempotency key; `execution_storage_unavailable` (503): session, file or workspace storage is unavailable right now; `storage_unavailable` (503): the storage behind this resource is unavailable right now; `trajectory_storage_unavailable` (503): retained run records cannot be read right now. Otherwise a status default: `bad_request` (400), `unauthenticated` (401), `payment_required` (402), `forbidden` (403), `not_found` (404), `method_not_allowed` (405), `not_acceptable` (406), `request_timeout` (408), `conflict` (409), `gone` (410), `length_required` (411), `precondition_failed` (412), `payload_too_large` (413), `unsupported_media_type` (415), `range_not_satisfiable` (416), `invalid_request` (422), `locked` (423), `precondition_required` (428), `rate_limited` (429), `internal_error` (500), `not_implemented` (501), `bad_gateway` (502), `service_unavailable` (503), `gateway_timeout` (504). `429` and `503` refusals with a specific code carry `Retry-After` in seconds.
- `detail` (string, required)

### 409 Conflict Error

`record_invalid`: the retained record cannot be read.

- `code` (string, required) — Stable machine code. Specific values: `insufficient_credits` (402): billing does not allow this request now; check your plan, credits and the agent's spending cap; `idempotency_conflict` (409): the idempotency key was already used for a different request, or for a file that was deleted; `concurrent_request` (409): another request is changing the same resource; send the same request again; `agent_disabled` (409): the agent is turned off; turn it on before starting new work; `release_unavailable` (409): the agent has no release that can run; `action_not_pending` (409): the tool call or approval is not waiting for this input: it already has an outcome, its run finished, it is handled by Sikaru, or it does not match a pending request; `not_retryable` (409): the run cannot be retried: it did not fail, its failure is not recoverable, or it failed too long ago; `branch_unavailable` (409): the session cannot be branched at that run; `record_invalid` (409): the retained record cannot be read; `state_conflict` (409): the request conflicts with the resource's current state; read it before trying again; `agent_capacity_full` (429): the agent's turn capacity is full; `agent_unavailable` (503): execution is switched off for this agent; `turn_delivery_pending` (503): the message was recorded but has not started; send it again with the same idempotency key; `execution_storage_unavailable` (503): session, file or workspace storage is unavailable right now; `storage_unavailable` (503): the storage behind this resource is unavailable right now; `trajectory_storage_unavailable` (503): retained run records cannot be read right now. Otherwise a status default: `bad_request` (400), `unauthenticated` (401), `payment_required` (402), `forbidden` (403), `not_found` (404), `method_not_allowed` (405), `not_acceptable` (406), `request_timeout` (408), `conflict` (409), `gone` (410), `length_required` (411), `precondition_failed` (412), `payload_too_large` (413), `unsupported_media_type` (415), `range_not_satisfiable` (416), `invalid_request` (422), `locked` (423), `precondition_required` (428), `rate_limited` (429), `internal_error` (500), `not_implemented` (501), `bad_gateway` (502), `service_unavailable` (503), `gateway_timeout` (504). `429` and `503` refusals with a specific code carry `Retry-After` in seconds.
- `detail` (string, required)

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

### 503 Service Unavailable Error

`trajectory_storage_unavailable`: retained run records cannot be read right now.

- `code` (string, required) — Stable machine code. Specific values: `insufficient_credits` (402): billing does not allow this request now; check your plan, credits and the agent's spending cap; `idempotency_conflict` (409): the idempotency key was already used for a different request, or for a file that was deleted; `concurrent_request` (409): another request is changing the same resource; send the same request again; `agent_disabled` (409): the agent is turned off; turn it on before starting new work; `release_unavailable` (409): the agent has no release that can run; `action_not_pending` (409): the tool call or approval is not waiting for this input: it already has an outcome, its run finished, it is handled by Sikaru, or it does not match a pending request; `not_retryable` (409): the run cannot be retried: it did not fail, its failure is not recoverable, or it failed too long ago; `branch_unavailable` (409): the session cannot be branched at that run; `record_invalid` (409): the retained record cannot be read; `state_conflict` (409): the request conflicts with the resource's current state; read it before trying again; `agent_capacity_full` (429): the agent's turn capacity is full; `agent_unavailable` (503): execution is switched off for this agent; `turn_delivery_pending` (503): the message was recorded but has not started; send it again with the same idempotency key; `execution_storage_unavailable` (503): session, file or workspace storage is unavailable right now; `storage_unavailable` (503): the storage behind this resource is unavailable right now; `trajectory_storage_unavailable` (503): retained run records cannot be read right now. Otherwise a status default: `bad_request` (400), `unauthenticated` (401), `payment_required` (402), `forbidden` (403), `not_found` (404), `method_not_allowed` (405), `not_acceptable` (406), `request_timeout` (408), `conflict` (409), `gone` (410), `length_required` (411), `precondition_failed` (412), `payload_too_large` (413), `unsupported_media_type` (415), `range_not_satisfiable` (416), `invalid_request` (422), `locked` (423), `precondition_required` (428), `rate_limited` (429), `internal_error` (500), `not_implemented` (501), `bad_gateway` (502), `service_unavailable` (503), `gateway_timeout` (504). `429` and `503` refusals with a specific code carry `Retry-After` in seconds.
- `detail` (string, required)

## Types

### TranscriptEvent

- `createdAt` (string, required)
- `id` (string, required)
- `label` (string, required)
- `sequence` (integer, required)

### TranscriptRun

- `accountId` (string, required)
- `completedAt` (string, required, nullable)
- `conversationId` (string, required, nullable)
- `environment` (enum, required)
  - Allowed values: `Draft`, `Live`
- `harnessVersionId` (string, required)
- `id` (string, required)
- `name` (string, required)
- `sessionId` (string, required)
- `startedAt` (string, required)
- `status` (string, required)
- `traceId` (string, required, nullable)
- `contentVisible` (boolean, optional, default: true)
- `error` (RunError, optional, nullable) — Why a run failed: a stable code, a customer-facing message and whether `retry` can run it again.
- `personal` (boolean, optional, default: false)

### TranscriptTrajectory

- `agent` (map from string to string, required)
- `extra` (map from string to any, required)
- `schema_version` (string, required)
- `session_id` (string, required)
- `steps` (list of TranscriptStep, required)
- `final_metrics` (map from string to integer, optional)
- `subagent_trajectories` (list of TranscriptTrajectory, optional)
- `trajectory_id` (string, optional, nullable)

### PersonalConnectionPrompt

- `display_name` (string, required)
- `id` (string, required)
- `kind` (string, required)

### TranscriptProgressEvent

- `id` (string, required)
- `kind` (enum, required)
  - Allowed values: `message`, `tool`, `execution`
- `label` (string, required)
- `ordering` (enum, required)
  - Allowed values: `source_sequence`, `timestamp`, `unknown`
- `blocks` (list of TranscriptProgressBlock, optional)
- `observedAt` (string, optional, nullable)
- `role` (string, optional, nullable)
- `status` (string, optional, nullable)

### TranscriptUsage

- `cachedTokens` (integer, optional, nullable)
- `inputTokens` (integer, optional, nullable)
- `outputTokens` (integer, optional, nullable)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### RunError

Why a run failed: a stable code, a customer-facing message and whether `retry` can run it again.

- `code` (string, required) — Stable failure code. Known values: `model_timeout`, `model_unavailable`, `insufficient_credits`, `setup_failed`, `tool_not_allowed`, `evidence_unavailable`, `interrupted`, `capacity_unavailable`, `recovery_unavailable`, `execution_connection_lost`, `execution_process_exited`, `execution_session_failed`, `execution_failed`. Treat an unrecognized code like `execution_failed`.
- `message` (string, required) — Customer-facing explanation and next step.
- `recoverable` (boolean, required) — Whether `retry` can run the failed turn again. When false, follow the message instead, for example by starting a new session.
- `stage` (enum, required) — Execution stage where the failure occurred.
  - Allowed values: `admission`, `setup`, `model`, `tool`, `python`, `recovery`, `persistence`, `execution`

### TranscriptStep

- `message` (string, required)
- `results` (list of TranscriptToolResult, required)
- `source` (enum, required)
  - Allowed values: `user`, `agent`
- `step_id` (integer, required)
- `tool_calls` (list of TranscriptToolCall, required)
- `llm_call_count` (integer, optional, nullable)
- `metrics` (map from string to integer, optional)
- `reasoning_content` (string, optional, nullable)

### TranscriptProgressBlock

- `availability` (enum, required)
  - Allowed values: `retained`, `redacted`, `expired`, `not_recorded`, `unsupported`, `not_loaded`
- `kind` (enum, required)
  - Allowed values: `text`, `input`, `result`
- `format` (enum, optional, default: text)
  - Allowed values: `text`, `json`
- `text` (string, optional, nullable)
- `value` (any, optional)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

### TranscriptToolResult

- `content` (any, optional)
- `source_call_id` (string, optional, nullable)
- `tool_calls` (list of TranscriptHostToolCall, optional)

### TranscriptToolCall

- `arguments` (any, optional)
- `function_name` (string, optional, nullable)
- `tool_call_id` (string, optional, nullable)

### TranscriptHostToolCall

- `arguments` (any, required)
- `name` (string, required)
- `operation_id` (string, required)
- `status` (string, required)
- `result` (any, optional)

## Examples

**Response**

```json
{
  "events": [
    {
      "createdAt": "string",
      "id": "string",
      "label": "string",
      "sequence": 1
    }
  ],
  "evidence": "retained_snapshot",
  "run": {
    "accountId": "string",
    "completedAt": "string",
    "conversationId": "string",
    "environment": "Draft",
    "harnessVersionId": "string",
    "id": "string",
    "name": "string",
    "sessionId": "string",
    "startedAt": "string",
    "status": "string",
    "traceId": "string",
    "contentVisible": true,
    "error": {
      "code": "string",
      "message": "string",
      "recoverable": true,
      "stage": "admission"
    },
    "personal": false
  },
  "trajectory": {
    "agent": {},
    "extra": {},
    "schema_version": "string",
    "session_id": "string",
    "steps": [
      {
        "message": "string",
        "results": [
          {
            "content": null,
            "source_call_id": "string",
            "tool_calls": [
              {
                "arguments": null,
                "name": "string",
                "operation_id": "string",
                "status": "string",
                "result": null
              }
            ]
          }
        ],
        "source": "user",
        "step_id": 1,
        "tool_calls": [
          {
            "arguments": null,
            "function_name": "string",
            "tool_call_id": "string"
          }
        ],
        "llm_call_count": 1,
        "metrics": {},
        "reasoning_content": "string"
      }
    ],
    "final_metrics": {},
    "subagent_trajectories": [
      null
    ],
    "trajectory_id": "string"
  },
  "connections": [
    {
      "display_name": "string",
      "id": "string",
      "kind": "string"
    }
  ],
  "progress": [
    {
      "id": "string",
      "kind": "message",
      "label": "string",
      "ordering": "source_sequence",
      "blocks": [
        {
          "availability": "retained",
          "kind": "text",
          "format": "text",
          "text": "string",
          "value": null
        }
      ],
      "observedAt": "string",
      "role": "string",
      "status": "string"
    }
  ],
  "usage": {
    "cachedTokens": 1,
    "inputTokens": 1,
    "outputTokens": 1
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.sikaru.ai/v1/projects/project_id/runs/run_id/transcript"

headers = {"Authorization": "Bearer <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.sikaru.ai/v1/projects/project_id/runs/run_id/transcript';
const options = {method: 'GET', headers: {Authorization: 'Bearer <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.sikaru.ai/v1/projects/project_id/runs/run_id/transcript"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.sikaru.ai/v1/projects/project_id/runs/run_id/transcript")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.sikaru.ai/v1/projects/project_id/runs/run_id/transcript")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.sikaru.ai/v1/projects/project_id/runs/run_id/transcript', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.sikaru.ai/v1/projects/project_id/runs/run_id/transcript");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sikaru.ai/v1/projects/project_id/runs/run_id/transcript")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```