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

# Export jobs as CSV or JSONL

> Export jobs as CSV or JSONL for compliance / migration. Streams up to 10k rows per call…

Export jobs as CSV or JSONL for compliance / migration.

Streams up to 10k rows per call. For larger volumes, paginate via
`since`/`until` windows and stitch on the client side. CSV is RFC
4180-compliant (quoted fields, `\r\n` line endings); JSONL is
one JSON object per line.

Columns / fields: `id`, `template`, `status`, `summary`, `error`,
`input_tokens`, `output_tokens`, `cost_usd`, `created_at`,
`updated_at`, `tags` (semicolon-joined in CSV).

### Query parameters

<ParamField query="format" type="string">
  Output format. `csv` (default) or `jsonl`.
</ParamField>

<ParamField query="status" type="string,null">
  Filter to a single status; mirrors `/jobs?status=`.
</ParamField>

<ParamField query="template" type="string,null">
  Filter to a single agent\_type.
</ParamField>

<ParamField query="since" type="string,null">
  ISO 8601 lower bound on `created_at`; rows older are excluded.
</ParamField>

<ParamField query="until" type="string,null">
  ISO 8601 upper bound on `created_at`; rows newer are excluded.
</ParamField>

<ParamField query="limit" type="integer">
  Hard cap on rows returned. Max 10000.
</ParamField>

### Response

Returns `any`.

<Note>
  The spec this page is generated from declares this response as an untyped object — the server
  returns JSON, but its shape is not published. Read a live response to see the fields; treat any
  field you find as unversioned until the spec names it.
</Note>

### Status codes

| Code  | Meaning             |
| ----- | ------------------- |
| `200` | Successful Response |
| `422` | Validation Error    |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.computer.stateset.app/api/v1/jobs/export' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>
