cURL
curl --request POST \ --url https://api.runflow.io/v1/asset-uploads \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "filename": "<string>", "mime_type": "<string>", "size_bytes": 26214400 } '
{ "asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "upload_url": "<string>" }
Generates a presigned PUT URL for direct browser-to-storage upload. The frontend PUTs the file to the returned URL with the declared Content-Type header.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
POST /v1/asset-uploads body.
1 - 500
1 - 255
1 <= x <= 52428800
Successful Response
POST /v1/asset-uploads response.