Skip to main content

Upload input asset for a flow

This endpoint allows to add input assets to a created flow. The assets are expected as data with the structure MIME-Type + Base64 (e.g., 'data:image/png;base64,abc...'). Important: assets 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 assets. Additional data is optional and can be used to store user-specific information attached to the input asset (and copied to the output asset).

Endpoint

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

Parameters

flow_id (required)

  • Location: path
  • Type: string

Request Body

Schema

  • data (string): Base64 encoded data (e.g., 'data:image/png,base64;...')
  • additional (any): Optional additional user data that is stored with flow.

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}/inputs" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'