---
title: "Download a produced file"
---

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

# Download a produced file

Path: CloudRaker Paperwork API › Runs

`GET /v1/runs/{id}/output/{name}`

Redirects to a signed, time-limited URL for one of the files a run produced — the redacted PDF, the filled form, the sealed document.

`{name}` is the file name exactly as it appears in `output.files[].name` on [the run](https://docs.cloudraker.com/paperwork/api/runs/get-run), or the file id. The same signed URL is already inline on the run body; this route exists as the stable, guessable alias you can hard-code.

> **Note:** A `409 output_not_ready` means the file is registered but its bytes are still settling. It is retryable — wait a moment and ask again.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `id` (`getRunOutput.path.id`; string, required)
  - minLength 1
- `name` (`getRunOutput.path.name`; string, required)
  - minLength 1

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/v1/runs/<id>/output/<name>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/runs/<id>/output/<name>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/v1/runs/<id>/output/<name>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 302

Redirect to the signed download URL.

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`getRunOutput.response.400.success`; boolean, required)
  - one of `false`
- `error` (`getRunOutput.response.400.error`; array<unknown>, required)
- `data` (`getRunOutput.response.400.data`; unknown, required)

### 404

Unknown run id, or the run produced no file by that name.

### 409

The output file exists but its bytes are still settling (`output_not_ready`, retryable) — retry shortly.

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`getRunOutput.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`getRunOutput.response.429.message`; string, required)
- `retryable` (`getRunOutput.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`getRunOutput.response.429.requestId`; string, required)
- `docUrl` (`getRunOutput.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/runs/get-run-output/index.md
