v1

latestSwagger 2.0MIT2026-07-1793106379.6 KB
Flows

Create new flow with custom functions

post/flows/

Request body

inputstring required
providerstring required
resource_idsinteger[]

Example request

{
  "functions": {
    "functions": [
      {
        "timeout": 60,
        "url": "https://example.com/api/v1/function"
      }
    ]
  },
  "input": "user input for first task in the flow",
  "provider": "openai"
}

Response

flow created successful

statusstring

Example response

{
  "data": {
    "functions": {
      "functions": [
        {
          "timeout": 60,
          "url": "https://example.com/api/v1/function"
        }
      ]
    }
  },
  "status": "success"
}