# mintFeedRunDownload

mutation · in the family [System and integration setup](/reference/system-and-integration-setup/)

## What it does

Get a short-lived download link (5 minutes) for one of a feed’s files.

Mint ONE short-lived presigned download (TTL 300 s) for ONE of a feed's retained run objects. ZERO stored credentials — re-mint per pull under your own session. OWNER-gated ENGINE-side. Template class (hand-derived v74).

## What happens

Mint a fresh link per pull — nothing is stored; your session is the credential.

## Careful

OWNER-gated — the link downloads exported business data.

## Who may call it

Capability area: **System and integration setup** — Registers, connections and the settings your systems run on.

- Owner
- System Administrator
- An API key whose scope allows `api:mintFeedRunDownload`

## Arguments

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `feedSubscriptionId` | [ID](/types/#scalars) `ID!` | yes | No further notes. |
| `key` | [String](/types/#scalars) `String!` | yes | No further notes. |

## Returns

[FeedRunDownloadTicket](/types/FeedRunDownloadTicket/) `FeedRunDownloadTicket!` — The mintFeedRunDownload ticket: fetch the file with a plain GET before it expires; re-mint per pull (the ticket IS the custody — there are no stored feed credentials).

## Example request

```graphql
mutation ExampleMintFeedRunDownload($feedSubscriptionId: ID!, $key: String!) {
  mintFeedRunDownload(feedSubscriptionId: $feedSubscriptionId, key: $key) {
    url
    expiresAt
  }
}
```

Variables:

```json
{
  "feedSubscriptionId": "01900000-0000-7000-8000-d71fef790000",
  "key": "<key>"
}
```

Send it with the envelope naming the version: `"extensions": {"at": {"version": {"name":"genesis","number":0}}}`.

## Example response

```json
{
  "data": {
    "mintFeedRunDownload": {
      "url": "https://example.com/hook",
      "expiresAt": "2027-01-31T00:00:00.000Z"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}
```

## Errors this call can answer

- `VALIDATION/INVALID` — Something in the request is not valid. ([VALIDATION](/errors/VALIDATION/))
- `AUTHN/REQUIRED` — Sign in to do this. ([AUTHN](/errors/AUTHN/))
- `AUTHZ/FORBIDDEN` — Your role does not allow this action. ([AUTHZ](/errors/AUTHZ/))
- `RATE_LIMIT/THROTTLED` — Too many requests in a short time. ([RATE_LIMIT](/errors/RATE_LIMIT/))
- `NOT_FOUND/*` — That record could not be found. ([NOT_FOUND](/errors/NOT_FOUND/))
- `CONFLICT/*` — The record’s state, or a change made in the meantime, does not allow this; the codes are on the CONFLICT page. ([CONFLICT](/errors/CONFLICT/))
- `VALIDATION/VERSION_REQUIRED` — The request did not say which app version it came from. ([VALIDATION](/errors/VALIDATION/))

## Used in

- [Schedule a data feed for your BI tool](/use-cases/schedule-a-data-feed/)
