Documentation Index
Fetch the complete documentation index at: https://docs.runflow.io/llms.txt
Use this file to discover all available pages before exploring further.
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.
| Input size | Approach |
|---|---|
| < 1 MiB | Inline base64 or a public URL is fine. |
| 1 MiB to 50 MiB | Inline if convenient, presigned upload if you control the server. |
| > 50 MiB | Not supported by the asset-upload API. Host the file at a public URL and pass that URL on the run. |
Prerequisites
- A Runflow API key.
- The file on disk or in memory.
Steps
Create an upload
Get a presigned URL. Tell Runflow the filename, MIME type, and exact byte size.Response (201 Created):
PUT the file to upload_url
Use the URL exactly as returned. No auth header, the presigned URL carries the credentials.
Confirm the upload
Tell Runflow the upload is complete. The body is optional; pass Response (201 Created) is the full Asset record. The fields you’ll most often read:
folder_id to file the asset under a folder.Verify it worked
200 with the Asset payload confirms it is usable.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
403 on the PUT | Presigned URL expired | Re-create with POST /v1/asset-uploads. |
422 on create | Size or MIME type rejected | size_bytes max is 50 MiB; check mime_type against the supported list at GET /v1/assets/types. |
| Asset never confirmed | Confirmation step skipped | POST to the confirmations endpoint. |
Related
Assets API
List, get, delete assets.
Asset folders
Organize uploads.