> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# supportTicketExport

> An export `supportTicketExportStart` started, with a fresh download link once it SUCCEEDED. Null when the store has no API export with this id; help desk exports are emailed and never read here.

**Required scopes:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

## Arguments

**id** `ID!` *required*

The id `supportTicketExportStart` returned.

## Returns

**supportTicketExport** `[SupportTicketExport](/docs/api-reference/v3/reference/support/support-ticket-export)`

A CSV of the store's tickets, one row per ticket with its messages in a JSON column, written in the background. It holds the tickets `supportTickets` lists for the same filters. The file is deleted 8 days after the export starts; after that the export reads FAILED with RESULT\_EXPIRED.

**fields**

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the job was started.

**error** `[JobError](/docs/api-reference/v3/reference/common/job-error)`

Why the job failed. Null unless `status` is FAILED.

**fields**

**code** `String!` *required*

A stable code in SCREAMING\_SNAKE\_CASE. Branch on it, not on `message`.

**message** `String!` *required*

What went wrong, in words.

**file** `[File](/docs/api-reference/v3/reference/common/file)`

The CSV, once SUCCEEDED. Its link works for up to an hour; read the export again for a fresh one. Null otherwise.

**fields**

**contentType** `String!` *required*

The file's media type, such as text/csv.

**fileName** `String`

The name the file downloads as. Null when the file has none.

**height** `Int`

An image's height in pixels. Null for other files.

**sizeBytes** `Int`

The file's size in bytes. Null when it wasn't recorded.

**url** `String!` *required*

Where to download the file. Signed and short-lived for a private file (see `urlExpiresAt`); stable for a public one.

**urlExpiresAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When `url` stops working. Null for a public file, whose `url` doesn't expire.

**width** `Int`

An image's width in pixels. Null for other files.

**finishedAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the job finished. Null while it is going.

**id** `ID!` *required*

Poll the job again with this id.

**rowCount** `Int`

How many tickets the file has. Null until SUCCEEDED.

**status** `[JobStatus!](/docs/api-reference/v3/reference/common/job-status)` *required*

Where the job stands.

## Example

```graphql theme={null}
query {
  supportTicketExport(id: "...") {
    createdAt
    finishedAt
    id
    rowCount
    status
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.