Skip to main content

What you’ll do

Upload a video or large image directly to Runflow’s storage and reference the resulting asset by ID in subsequent run requests.

When to use this

POST /v1/asset-uploads accepts size_bytes up to 50 MiB (52,428,800 bytes); larger uploads are rejected at create time.

Prerequisites

  • A Runflow API key.
  • The file on disk or in memory.

Steps

1

Create an upload

Get a presigned URL. Tell Runflow the filename, MIME type, and exact byte size.
Response (201 Created):
2

PUT the file to upload_url

Use the URL exactly as returned. No auth header, the presigned URL carries the credentials.
3

Confirm the upload

Tell Runflow the upload is complete. The body is optional; pass folder_id to file the asset under a folder.
Response (201 Created) is the full Asset record. The fields you’ll most often read:
4

Use the asset in a run

Reference it by id (or by url if the model accepts a public URL):

Verify it worked

A 200 with the Asset payload confirms it is usable.

Troubleshooting

Assets API

List, get, delete assets.

Asset folders

Organize uploads.