---
title: "GET /v1/sandbox/{chatId}/export/{assetId}/download"
description: "Get a download link for an exported file — Returns a short-lived signed link (valid for 5 minutes) to a file your chat's sandbox exported."
full: true
---

**Auth:** required. Send an `ivy_` API key (`Authorization: Bearer ivy_…` or `X-Ivy-Api-Key`), a Clerk session JWT (`Authorization: Bearer …`) or the Clerk `__session` cookie (browser sessions). See [Authentication](/docs/api/authentication).

Returns a short-lived signed link (valid for 5 minutes) to a file your chat's sandbox exported. The asset must belong to the chat and be within your storage scope.

## Request

#### Path parameters

- `chatId` (string) —
ID of the chat that owns the sandbox

- `assetId` (string) —
ID of the exported asset, as listed in the sandbox manifest

## Responses

### `200` OK

Signed download link

Response shape:

- `url` (string (uri)) —
Short-lived signed download link

- `filename` (string) —
Display name of the file

- `sizeBytes` (integer) —

- `expiresAt` (string (date-time)) —
When the link stops working (5 minutes after issue)

### `401` Unauthorized

Authentication required

Response shape: `object`

### `403` Forbidden

You do not own this chat, your key's project scope excludes it, or the asset belongs to a different chat

Response shape: `object`

### `404` Not Found

Resource not found

Response shape: `object`

### `429` Too Many Requests

Rate limit exceeded

Response shape: `object`

**curl**

```bash
curl -X GET 'https://ivybiosciences.com/api/v1/sandbox/{chatId}/export/{assetId}/download' \
  -H "Authorization: Bearer $IVY_API_KEY"
```

**JavaScript**

```js
const res = await fetch('https://ivybiosciences.com/api/v1/sandbox/{chatId}/export/{assetId}/download', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${process.env.IVY_API_KEY}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os, requests

res = requests.get(
    "https://ivybiosciences.com/api/v1/sandbox/{chatId}/export/{assetId}/download",
    headers={"Authorization": f"Bearer {os.environ['IVY_API_KEY']}"},
)
data = res.json()
```
