# The Query Run object

### The Query Run object

```json
{
  "created": "2025-08-26T00:00:00.000Z",
  "id": "qryrun_test_xxx",
  "object": "v2.data.reporting.query_run",
  "sql": "select * from balance_transactions limit 10",
  "result": null,
  "result_options": {
    "compress_file": false
  },
  "status": "running",
  "status_details": {},
  "livemode": false
}
```

## Attributes

- `id` (string)
  The unique identifier of the `QueryRun` object.

- `object` (string, value is "v2.data.reporting.query_run")
  String representing the object’s type. Objects of the same type share the same value of the object field.

- `created` (timestamp)
  Time at which the object was created.

- `livemode` (boolean)
  Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.

- [`result`](https://docs.stripe.com/api/v2/data/reporting/query-runs/object.md?query=result&api-version=2026-04-22.preview) (object, nullable)
  Details how to retrieve the results of a successfully completed `QueryRun`.

- [`result_options`](https://docs.stripe.com/api/v2/data/reporting/query-runs/object.md?query=result_options&api-version=2026-04-22.preview) (object, nullable)
  The options specified for customizing the output of the `QueryRun`.

- `sql` (string)
  The SQL that was executed.

- `status` (enum)
  The current status of the `QueryRun`.
Possible enum values:
  - `failed`
    Query has failed to complete due to an error.

  - `running`
    Query is in progress.

  - `succeeded`
    Query has successfully completed.

- `status_details` (map)
  Additional details about the current state of the `QueryRun`. Populated when the `QueryRun`

  is in the `failed` state, providing more information about why the query failed.
