Skip to main content

Create a new flow

This endpoint allows to create new flows. The template should be a valid template_name or template_id (from GET /templates). Parameters allow to control the flow execution (details about the parameters are provided in GET /templates as well). Additional data is optional and can be used to store user-specific information. Inputs are optional and allow to directly upload input files (e.g., images) to the flow. Important: when inputs are provided the flow will start automatically.

Endpoint

POST https://flows.generio.ai/flows

Request Body

Schema

{
"additional": {}
}
  • template (string)
  • parameters (any)
  • additional (any): Optional additional user data that is stored with flow.
  • inputs (any): Optional list of input files, each with file_data and optional additional information.

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