# Deliveries

> Besday Deliveries API: list every delivered version of an order and download the video files, previews and originals, with byte ranges.

Source: https://besday.com/docs/api/deliveries · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json

A delivery is one version of the finished video with its files. The first delivery is version 1; each revision adds a version.

## The delivery object

One delivered version of an order’s video, with its files (main video, extra hooks, raw footage, captions, thumbnails). A revision adds a new version.

| Field | Type | Description |
|---|---|---|
| `object` | string | Always `delivery`. One of: `delivery`. |
| `id` | string | Unique id. |
| `order_id` | string | The order. |
| `version` | integer | 1 for the first delivery, 2 after the first revision, and so on. |
| `status` | string | The version’s state. |
| `delivered_at` | string or null | ISO 8601 timestamp (UTC) |
| `created_at` | string | ISO 8601 timestamp (UTC) |
| `files` | object[] | The files: `{ id, slot, file_name, media, mime_type, size_bytes, duration_seconds, width, height, preview_url, download_url }`. `download_url` is null while downloads are locked. |

Example:

```json
{
  "object": "delivery",
  "id": "dv_91aa2f",
  "order_id": "prj_01HZX8Q4V2",
  "version": 1,
  "status": "delivered",
  "delivered_at": "2026-12-06T18:40:00.000Z",
  "created_at": "2026-12-06T18:02:00.000Z",
  "files": [
    {
      "object": "delivery_file",
      "id": "df_4c7e10",
      "slot": "Main video",
      "file_name": "maya-serum-v1.mp4",
      "media": "video",
      "mime_type": "video/mp4",
      "size_bytes": 48211904,
      "duration_seconds": 31.2,
      "width": 1080,
      "height": 1920,
      "preview_url": "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10?variant=preview",
      "download_url": null
    }
  ]
}
```

## List deliveries

`GET /api/v1/orders/{id}/deliveries`

Every delivered version of the order and its files, with preview and download links.

- Scope: `read`
- Returns: 200 a list of `delivery` objects

Path parameters:

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | The order id. |

cURL:

```bash
curl "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries" \
  -H "Authorization: Bearer $BESDAY_API_KEY"
```

Node.js:

```javascript
const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries", {
  headers: {
    Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
```

Python:

```python
import os, uuid, requests

res = requests.get(
    "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries",
    headers={
        "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
```

Response (200):

```json
{
  "object": "list",
  "originals_unlocked": false,
  "locked_reason": "Downloads unlock when you approve. Until then you watch a watermarked preview, which keeps the creator’s work safe while you review it.",
  "data": [
    {
      "object": "delivery",
      "id": "dv_91aa2f",
      "order_id": "prj_01HZX8Q4V2",
      "version": 1,
      "status": "delivered",
      "delivered_at": "2026-12-06T18:40:00.000Z",
      "created_at": "2026-12-06T18:02:00.000Z",
      "files": [
        {
          "object": "delivery_file",
          "id": "df_4c7e10",
          "slot": "Main video",
          "file_name": "maya-serum-v1.mp4",
          "media": "video",
          "mime_type": "video/mp4",
          "size_bytes": 48211904,
          "duration_seconds": 31.2,
          "width": 1080,
          "height": 1920,
          "preview_url": "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10?variant=preview",
          "download_url": null
        }
      ]
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

Errors: `not_found`.

Note: On a real creator’s order, originals unlock when you approve; until then `download_url` is null and `preview_url` serves a watermarked preview. AI creators’ files download at once.


## Download a file

`GET /api/v1/orders/{id}/deliveries/files/{file_id}`

The file’s bytes (supports HTTP Range). Add `?variant=preview` for the watermarked preview.

- Scope: `read`
- Returns: 200 the file’s bytes

Path parameters:

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | The order id. |
| `file_id` | string | yes | A file id from List deliveries. |

Query parameters:

| Name | Type | Required | Description |
|---|---|---|---|
| `variant` | string | no | Serve the watermarked preview instead of the original. One of: `preview`. |

cURL:

```bash
curl -L -o video.mp4 "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10" \
  -H "Authorization: Bearer $BESDAY_API_KEY"
```

Node.js:

```javascript
const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10", {
  headers: {
    Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
  },
});
const bytes = Buffer.from(await res.arrayBuffer());
```

Python:

```python
import os, uuid, requests

res = requests.get(
    "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10",
    headers={
        "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
    },
    timeout=30,
)
res.raise_for_status()
open("video.mp4", "wb").write(res.content)
```

Errors: `download_locked`, `not_found`.

