v1

latestSwagger 2.0MIT2026-07-1793106379.6 KB
Assistants

Create new assistant with custom functions

post/flows/{flowID}/assistants/

Path parameters

flowIDinteger required

flow id (use 0 to create a new flow together with the assistant)

Request body

inputstring required
providerstring required
resource_idsinteger[]
use_agentsboolean

Example request

{
  "functions": {
    "functions": [
      {
        "timeout": 60,
        "url": "https://example.com/api/v1/function"
      }
    ]
  },
  "input": "user input for running assistant",
  "provider": "openai",
  "use_agents": true
}

Response

assistant created successful

statusstring

Example response

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