---
title: "Get a run trace"
---

> Documentation Index
> Fetch the complete documentation index at: https://simplcron.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a run trace

Path: Simplcron API › Runs

`GET /v1/runs/{runId}/trace`

Read the recorded lifecycle timeline of a run. Wait starters record wait.started and wait.resumed. Wait for Reply records wait.reply_received or wait.timed_out before resumption.

## Authentication

Requires one of the following:

- `bearerAuth`, http bearer, header `Authorization`
- `browserSession`, apiKey, in cookie
- `localBrowserSession`, apiKey, in cookie

## Path parameters

- `runId` (`getRunTrace.path.runId`; string, required) — ID returned at submission.
  - pattern: `^run_[a-f0-9]{32}$`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/v1/runs/<runId>/trace' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/v1/runs/<runId>/trace';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/v1/runs/<runId>/trace"

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

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

print(response.text)
```

## Responses

### 200

Recorded chronological trace

#### Example

```json
{
  "runId": "string",
  "status": "scheduled",
  "events": [
    {
      "id": "string",
      "type": "string",
      "time": "2019-08-24T14:15:22Z",
      "attempt": 5,
      "detail": "string"
    }
  ]
}
```

- `runId` (`getRunTrace.response.200.runId`; string, required)
- `status` (`getRunTrace.response.200.status`; string, required)
  - one of `"scheduled"`, `"queued"`, `"waiting"`, `"running"`, `"retrying"`, `"succeeded"`, `"failed"`, `"cancelled"`
- `events` (`getRunTrace.response.200.events`; array of object, required)
  - `id` (`getRunTrace.response.200.events.id`; string, required)
  - `type` (`getRunTrace.response.200.events.type`; string, required) — Recorded event type. Wait checkpoints emit wait.started followed by wait.resumed if they resume. Wait for Reply records wait.reply_received or wait.timed_out before wait.resumed.
  - `time` (`getRunTrace.response.200.events.time`; string, required)
    - format: `date-time`
  - `attempt` (`getRunTrace.response.200.events.attempt`; any of, optional)
    - any of the following: `integer`, `null`
  - `detail` (`getRunTrace.response.200.events.detail`; string | null, optional)

### 401

Authentication is required

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getRunTrace.response.401.error`; string, required)

### 403

The credential lacks permission

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getRunTrace.response.403.error`; string, required)

### 404

Resource not found in this environment

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getRunTrace.response.404.error`; string, required)


Source: https://simplcron.dev/docs/api/get-run-trace/index.md
