[Tenjin API Reference](https://api-docs.tenjin.com/llms.txt) › [Cloud Data Exporter API](https://api-docs.tenjin.com/cloud-data-exporter-api.md) › List runs

- Cloud Data Exporter API OpenAPI spec: https://api-docs.tenjin.com/openapi/cloud-data-exporter-api.json

# List runs

- **Method:** `GET`
- **Path:** `/v1/runs`
- **Operation ID:** `get_runs`
- **Tags:** Cloud Data Exporter Runs

Results are paginated and ordered newest window first. Use the `page` and `per_page` query parameters to page through results; pagination metadata is returned in the response headers. Filter by `config_id` to follow one export, by `status` to find failures, or by `table` to follow one report table.

## Effective servers

- `https://api.tenjin.com/cloud_data_exporter`

## Authentication

- **Bearer**: HTTP bearer (`JWT`)

  Generate an access token on the [Access Tokens](https://dashboard.tenjin.com/dashboard/access_tokens) page of the Tenjin dashboard and send it as `Authorization: Bearer <access token>`. [API access tokens](https://tenjin.com/docs/api-access-tokens/) explains them.

## Query parameters

- **`page`**: `integer`, default: `1`

  Page of results to fetch.
- **`per_page`**: `integer`, default: `25`, minimum: `0`, maximum: `200`

  Number of results to return per page.
- **`config_id`**: `string`

  Only runs of this config (UUID). A config outside the current org matches nothing.
- **`status`**: `string`, possible values: `"pending", "processing", "completed", "failed"`

  Only runs in this status (pending/processing/completed/failed)
- **`kind`**: `string`, possible values: `"events", "dated_tables", "entity_tables", "all"`, default: `"events"`

  Only runs of this kind (events/dated_tables/entity_tables), or `all` for every kind. Defaults to `events`.
- **`table`**: `string`, possible values: `"daily_events", "cohort_events", "pre_cohort_events", "daily_country_stats", "daily_ad_revenues", "apps", "campaigns", "publisher_apps", "ad_networks", "creatives"`

  Only the tables runs that carry this report table (daily_events/cohort_events/pre_cohort_events/daily_country_stats/daily_ad_revenues/apps/campaigns/publisher_apps/ad_networks/creatives), and the failed runs of its kind. A `kind` sent beside it must be a valid one and is not used.

## Responses

### 200 List export runs for the current org, newest window first

**Headers:**

- **`Link`**

  RFC 8288 pagination links (rel="first", "last", "next", "prev")

  `string`
- **`Total`**

  Total number of runs matching the request

  `integer`
- **`Per-Page`**

  Number of runs returned per page

  `integer`

**Content type:** `application/json`

**Array of:**

schema: `CloudDataExporterRun`

- **`completed_at` (required)**: `string`, format: `date-time`

  When the run completed or failed (ISO8601)
- **`config_id` (required)**: `string`

  UUID of the CloudDataExporterConfig that triggered this run
- **`dagster_run_id` (required)**: `string`

  Identifier of the pipeline run that produced this window. Quote it to Tenjin support when asking about a specific delivery
- **`failure_reason` (required)**: `string`

  Reason a failed run failed, exposed only when fault is "customer" — e.g. "NoSuchBucket: The specified bucket does not exist". Null when the run did not fail, or when the failure was not the customer's
- **`fault` (required)**: `string`

  Whose fault a failed run was: "customer" (their bucket, its policy or its encryption, so theirs to fix) or "tenjin" (ours). A run that was cancelled is "tenjin". Null when the run did not fail or predates fault classification
- **`id` (required)**: `string`

  Run UUID
- **`kind` (required)**: `string`, possible values: `"events", "dated_tables", "entity_tables"`

  What the run delivered: "events" for the hourly events files, "dated_tables" or "entity_tables" for the report tables
- **`started_at` (required)**: `string`, format: `date-time`

  When the Dagster job started (ISO8601)
- **`status` (required)**: `string`

  Run status. One of: pending, processing, completed, failed
- **`tables` (required)**: `array of object`

  On a tables run, one entry for each table: its name and its outcome, one of delivered, unchanged, deferred, refused. A refused table also carries detail, the message your bucket returned. Null on an events run, and on a tables run that failed before it reached a table
- **`window_end` (required)**: `string`, format: `date-time`

  End of the export time window (ISO8601)
- **`window_start` (required)**: `string`, format: `date-time`

  Start of the export time window (ISO8601)

**Example:**

```json
[
  {
    "id": "d94f1c22-8a35-4b7e-9f0c-1e2d3a4b5c6d",
    "config_id": "",
    "dagster_run_id": "7f3a2b10-5c4d-4e8f-9a1b-2c3d4e5f6a7b",
    "kind": "events",
    "window_start": "",
    "window_end": "",
    "status": "completed",
    "started_at": "",
    "completed_at": "",
    "fault": "",
    "failure_reason": "",
    "tables": [
      {}
    ]
  }
]
```

### 401, 403, 422

- `401` The access token was revoked, or your user role has no access to the Cloud Data Exporter
- `403` Missing or malformed access token, or the Cloud Data Exporter is not enabled for this organization
- `422` Invalid pagination or filter parameters

**Content type:** `application/json`

schema: `Error`

- **`error` (required)**: `string`

  Error message (same as title, for backward compatibility)
- **`status` (required)**: `integer`

  HTTP status code
- **`title` (required)**: `string`

  Short, human-readable summary
- **`type` (required)**: `string`

  URI identifying the problem type
- **`detail`**: `string`

  Human-readable explanation specific to this occurrence

**Example:**

```json
{
  "error": "",
  "type": "",
  "title": "",
  "status": 422,
  "detail": ""
}
```

## Schemas

- `Error` — shown above.
- `CloudDataExporterRun` — shown above.
