Skip to main content

Upload input file for a flow

This endpoint allows to add files (primarily images) to a created flow. The images are expected as MIME-Type + Base64 (e.g., 'data:image/png;base64,abc...'). Allowed types are image/png, image/jpg, image/tiff, and image/bmp. Important: images can only be added to a created flow that has not been started yet. After a flow has been started, it is not possible to add more input files. Additional data is optional and can be used to store user-specific information attached to the input file.

Endpoint

POST https://flows.generio.ai/flows/{flow_id}/input

Parameters

flow_id (required)

  • Location: path
  • Type: string
  • Example: string

Request Body

Schema

{
"file_data": "string"
}
  • file_data (string): Base64 encoded data of the file to be uploaded (e.g., 'data:image/png,base64;...')
  • additional (any): Optional additional data for the input file.

Code Examples

Copy and run these examples in your terminal or code editor.Make sure to replace YOUR_TOKEN with your actual authentication token.

curl -X POST "https://flows.generio.ai/flows/{flow_id}/input" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"file_data": "string"
}'