Skip to main content
PUT
/
api
/
v1
/
products
/
{productId}
/
delivery
Attach Delivery File
curl --request PUT \
  --url https://api.sequenzy.com/api/v1/products/{productId}/delivery \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "source": "<string>",
  "fileName": "<string>",
  "fileSizeBytes": 123,
  "mimeType": "<string>"
}
'
{
  "success": true,
  "product": {
    "id": "prod_internal_1",
    "title": "The Indie Hacker Guide",
    "digitalDelivery": {
      "url": "https://example.com/guide.pdf",
      "source": "url",
      "fileName": "guide.pdf",
      "fileSizeBytes": null,
      "mimeType": null,
      "updatedAt": "2026-06-11T00:00:00.000Z"
    }
  }
}
Attach the distributable file buyers receive after purchasing this product. Purchase events then expose it as {{event.download.url}} and {{event.download.name}} in sequence emails.

Request

productId
string
required
Product ID (from List Products). For products pushed via the Commerce API, you can also use your own productId (e.g. my-ebook).
url
string
required
Public http(s) URL of the file. Use Create Upload URL to host the file on Sequenzy, or link to a file hosted elsewhere.
source
string
default:"url"
upload for files hosted on Sequenzy, url for external links.
fileName
string
Display name for the file (e.g. guide.pdf). Used as {{event.download.name}}.
fileSizeBytes
number
File size in bytes.
mimeType
string
File MIME type.
curl -X PUT "https://api.sequenzy.com/api/v1/products/prod_internal_1/delivery" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/guide.pdf", "fileName": "guide.pdf"}'

Responses

{
  "success": true,
  "product": {
    "id": "prod_internal_1",
    "title": "The Indie Hacker Guide",
    "digitalDelivery": {
      "url": "https://example.com/guide.pdf",
      "source": "url",
      "fileName": "guide.pdf",
      "fileSizeBytes": null,
      "mimeType": null,
      "updatedAt": "2026-06-11T00:00:00.000Z"
    }
  }
}