# exports.get_transactions: Status of an export of transactions (earnings), with its download link when ready.

`GET /v2/exports/transactions/{exportId}` · MCP tool `exports_get_transactions` · [Exports (CSV and Excel)](/v2/reference/exports/)

## What it does

Status of an export of transactions (earnings), with its download link when ready.

## When to use it

Returns the status of an export of transactions (earnings) this key asked for. When status is completed it carries download.parts, one signed link per file of up to 1,000,000 rows (download.url is the first), that work for 10 minutes: download them right away and call this again for new links if they ran out. Only the key that asked for the export can see it. It never changes anything.

## Permission and cost

| | |
| --- | --- |
| Permission | `analytics:read` |
| Effect | Read only: it never changes anything. |
| Cost class | `store` — costs 1 unit (reads the copy VENUZ keeps) |
| Scope | The accounts this key can use. |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `exportId` | path | string (uuid) | yes | Id returned when the export was created. |

## Example request (test mode)

With a test key in `VENUZ_API_KEY` (`export VENUZ_API_KEY=vzk_test_…`), this request changes nothing: test keys answer from a sample dataset.

```bash
curl -X GET "https://open.venuz.ai/v2/exports/transactions/<export_id>" \
  -H "Authorization: Bearer $VENUZ_API_KEY"
```

## Example response (200)

```json
{
  "id": "7e7e7e7e-0000-4000-8000-000000000001",
  "type": "transactions",
  "format": "csv",
  "status": "completed",
  "columns": [
    "transaction_id",
    "account_id",
    "account_name",
    "created_at",
    "type",
    "channel",
    "status",
    "currency",
    "amount_gross_usd",
    "amount_net_usd",
    "fee_usd",
    "vat",
    "tax",
    "media_tax",
    "reversed",
    "fan_id",
    "fan_username",
    "fan_name"
  ],
  "account_ids": [
    "11111111-1111-4111-8111-111111111111"
  ],
  "starts_at": "2026-09-01T00:00:00.000Z",
  "ends_at": "2026-09-29T00:00:00.000Z",
  "created_at": "2026-09-29T10:00:00.000Z",
  "started_at": "2026-09-29T10:00:05.000Z",
  "finished_at": "2026-09-29T10:00:40.000Z",
  "expires_at": "2026-10-06T10:00:40.000Z",
  "row_count": 1,
  "byte_size": 512,
  "error": null,
  "download": {
    "url": "data:text/csv;charset=utf-8,transaction_id%2Caccount_id%2Caccount_name%2Ccreated_at%2Ctype%2Cchannel%2Cstatus%2Ccurrency%2Camount_gross%2Camount_net%2Cfee%2Cvat%2Ctax%2Cmedia_tax%2Creversed%2Cfan_id%2Cfan_username.untrusted_text%2Cfan_name.untrusted_text%0D%0A%2C11111111-1111-4111-8111-111111111111%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2Csample%2Csample%0D%0A",
    "expires_at": "2026-09-29T10:10:40.000Z",
    "parts": [
      {
        "part": 1,
        "rows": 1,
        "url": "data:text/csv;charset=utf-8,transaction_id%2Caccount_id%2Caccount_name%2Ccreated_at%2Ctype%2Cchannel%2Cstatus%2Ccurrency%2Camount_gross%2Camount_net%2Cfee%2Cvat%2Ctax%2Cmedia_tax%2Creversed%2Cfan_id%2Cfan_username.untrusted_text%2Cfan_name.untrusted_text%0D%0A%2C11111111-1111-4111-8111-111111111111%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2C%2Csample%2Csample%0D%0A"
      }
    ]
  },
  "exports_left_today": 49,
  "source": "store"
}
```

## Response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string (uuid) | yes |  |
| `type` | always "transactions" | yes |  |
| `format` | one of "csv", "xlsx" | yes | csv: UTF-8 CSV with a byte order mark. xlsx: an Excel workbook with one sheet. |
| `status` | one of "queued", "running", "completed", "failed", "expired" | yes | queued: waiting its turn. running: VENUZ is building the file. completed: ready to download. failed: see error. expired: the file was deleted (7 days after it finished); ask for a new export. |
| `columns` | array of one of "transaction_id", "account_id", "account_name", "created_at", "type", "channel", "status", "currency", "amount_gross_usd", "amount_net_usd", "fee_usd", "vat", … (18 values) | yes | Columns of the file, in order. |
| `account_ids` | array of string (uuid) | yes | Accounts included. |
| `starts_at` | string (date-time), or null | yes |  |
| `ends_at` | string (date-time), or null | yes |  |
| `created_at` | string (date-time) | yes |  |
| `started_at` | string (date-time), or null | yes |  |
| `finished_at` | string (date-time), or null | yes |  |
| `expires_at` | string (date-time), or null | yes | Until when the file can be downloaded. |
| `row_count` | integer, at least 0, or null | yes |  |
| `byte_size` | integer, at least 0, or null | yes |  |
| `error` | one of "too_many_rows", "source_unavailable", "storage_unavailable", "access_withdrawn", "worker_lost", "internal_error", or null | yes | Why it failed. too_many_rows: it has more than 10,000,000 rows in total; narrow the dates or the accounts. source_unavailable, storage_unavailable, worker_lost, internal_error: ask again later. access_withdrawn: the key or the person that asked for it lost the permission or some of its accounts before it ran. |
| `download` | object, or null | yes | Present only when status is completed and only in exports.get_* responses. |
| `download.url` | string (uri) | yes | Link to download the file (its first part) from VENUZ. It works without the API key, for 10 minutes and only while this key can still read the export (a newer link replaces it): download it now, never store or share it. |
| `download.expires_at` | string (date-time) | yes |  |
| `download.parts` | array of object | yes | Every file of the export, in order: one per 1,000,000 rows, so Excel can open each one. Each part has the header row; together they hold every row once. With one part, its url is url. |
| `download.parts[].part` | integer | yes | Number of the part, from 1. |
| `download.parts[].rows` | integer, at least 0 | yes | Rows in this part. |
| `download.parts[].url` | string (uri) | yes | Link to download this part, valid like url and until expires_at. |
| `exports_left_today` | integer, at least 0 | yes | Exports the agency can still ask for today (UTC), counting every key and the VENUZ screen. The limit is 50 a day; failed exports count too. |
| `source` | always "store" | yes |  |

## Errors and what to do

Every error is `{ "error", "message", "fix", "docs_url", "request_id" }`. Branch on `error`; do what `fix` says.

| Error | HTTP | What to do |
| --- | --- | --- |
| [`invalid_request`](/errors/#invalid_request) | 400 | Correct the request, then retry. When details.invalid_fields is present, each entry names a field and what it needs (its message); when details.reason is present, it says what is wrong. The parameters and body of every operation are in the specification. |
| [`invalid_api_key`](/errors/#invalid_api_key) | 401 | Send a valid key as "Authorization: Bearer vzk_live_..." (or vzk_test_...). If you lost the key, ask the agency to create a new one. |
| [`api_key_expired`](/errors/#api_key_expired) | 401 | Ask the agency to rotate the key or create a new one. Keys last at most 366 days. |
| [`api_key_revoked`](/errors/#api_key_revoked) | 401 | Stop using this key. Ask the agency for a new one if you still need access. |
| [`api_key_suspended`](/errors/#api_key_suspended) | 403 | If details.reason is creator_withdrawn, ask the agency owner to create a new key from an active member of the team. If it is suspended_by_venuz, contact VENUZ support: the same key works again as soon as the suspension is lifted, so do not delete it. |
| [`agency_inactive`](/errors/#agency_inactive) | 403 | The agency's VENUZ account is suspended or closed; access resumes when it is active again. Do not delete the key. |
| [`api_not_enabled`](/errors/#api_not_enabled) | 403 | Ask VENUZ support to enable API access for the agency. Keep the key: it works as soon as access is enabled. |
| [`ip_not_allowed`](/errors/#ip_not_allowed) | 403 | Send the request from one of the addresses allowed on the key, or ask the agency to update the allowed addresses. |
| [`insufficient_scope`](/errors/#insufficient_scope) | 403 | Call GET /v2/whoami to see what this key can do. Ask the agency to grant the missing permission (listed in details.missing_scopes) or to use a key that has it. If details.withheld_by_creator is true, the key has the permission but the person who created it cannot do this in VENUZ today: they need the role permissions in details.creator_missing_permissions (when details.creator_needs is any_of, any one of them is enough), or the agency must use a key created by someone who has them. |
| [`resource_not_found`](/errors/#resource_not_found) | 404 | There is no export with this id for this key (another key asked for it, or the id is wrong). Create a new one. |
| [`rate_limited`](/errors/#rate_limited) | 429 | Wait for the number of seconds in the Retry-After header, then retry. Spread requests out instead of retrying in a loop. Each request costs the units of its cost class (header X-Request-Cost: 1 for stored data, 2 for a realtime call to the OnlyFans account or a heavy query), and the RateLimit-* headers show how many units are left for this key and its agency in the current minute. |
| [`internal_error`](/errors/#internal_error) | 500 | Retry once after a few seconds; do not retry in a loop. If the request was a write, retry with the SAME Idempotency-Key, never a new one. If it keeps failing, contact VENUZ support and include the request_id. |
| [`export_storage_unavailable`](/errors/#export_storage_unavailable) | 503 | The export is fine but no download link can be made right now. Retry after Retry-After seconds. |
| [`api_halted`](/errors/#api_halted) | 503 | Wait for the number of seconds in the Retry-After header, then retry. Your key is still valid. |
| [`stored_data_unavailable`](/errors/#stored_data_unavailable) | 503 | Nothing was changed. Wait for the number of seconds in the Retry-After header, then retry once; do not retry in a loop. Narrowing the request (account_id or chat_id, a smaller limit) makes it lighter. If it keeps failing, contact VENUZ support with the request_id. |

VENUZ is independent software for agencies. It is not affiliated with, endorsed or sponsored by OnlyFans. OnlyFans is a trademark of its owner.
