> For the complete documentation index, see [llms.txt](https://docs.theseus.us/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theseus.us/cyclops/developers/edge-api/flight-logs.md).

# Flight logs

Cyclops writes telemetry and logs each time the Cyclops computer starts. Each start is listed as one flight. Use these endpoints to list them and download them, for example to attach them to a support request.

| Method | Path                            | Purpose                         |
| ------ | ------------------------------- | ------------------------------- |
| `GET`  | `/api/v2/flights`               | List flights that have logs     |
| `GET`  | `/api/v2/flights/{id}/download` | Download the logs of one flight |

Flight logs do not include camera images. If Theseus support asks for the full recording of a flight, see [Recordings](https://docs.theseus.us/cyclops/developers/edge-api/recordings.md).

## List flights

`GET /api/v2/flights`

Flights are sorted newest first.

```bash
curl http://192.168.218.100:5050/api/v2/flights
```

```json
{
  "success": true,
  "data": {
    "count": 1,
    "flights": [
      {
        "id": "42_3f1c9a2e-8b7d-4e21-9c55-0a6d2f4b7e10",
        "name": "42_3f1c9a2e-8b7d-4e21-9c55-0a6d2f4b7e10",
        "size_bytes": 18350080,
        "modified": "2026-10-02T14:52:40",
        "metadata": {
          "timestamp": "2026-10-02T14:31:09Z",
          "software_version": "1.4.0",
          "map_id": "a1b2c3d4_my_area"
        }
      }
    ]
  }
}
```

| Field                       | Description                                                                   |
| --------------------------- | ----------------------------------------------------------------------------- |
| `id`                        | Flight identifier. Use it to download the logs. Treat it as an opaque string. |
| `size_bytes`                | Size of the log download, in bytes.                                           |
| `modified`                  | Last time the flight was written to, in device local time.                    |
| `metadata.timestamp`        | When Cyclops started for this flight, in UTC.                                 |
| `metadata.software_version` | Cyclops software version used for this flight.                                |
| `metadata.map_id`           | Name of the active map for this flight. `null` if none.                       |

{% hint style="info" %}
Flights recorded with [lockdown mode](https://docs.theseus.us/vozilla-gcs-software/vozilla-app/lockdown-mode.md) enabled are not listed.
{% endhint %}

## Download flight logs

`GET /api/v2/flights/{id}/download`

Returns a `.tar` archive with the telemetry and logs of the flight. The archive is streamed, so the response has no `Content-Length` header.

```bash
curl -OJ http://192.168.218.100:5050/api/v2/flights/42_3f1c9a2e-8b7d-4e21-9c55-0a6d2f4b7e10/download
```

`-OJ` saves the file under the name the device sends, for example `42_3f1c9a2e-8b7d-4e21-9c55-0a6d2f4b7e10_logs.tar`.

### Errors

| Status | Cause                                                                   |
| ------ | ----------------------------------------------------------------------- |
| `400`  | No flight with that `id` exists, or the flight has no logs to download. |
