Skip to main content
POST
/
api
/
v1
/
workflow
/
manager
/
create
Create workflow (agent)
curl --request POST \
  --url https://flowra.dev/api/v1/workflow/manager/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "New Agent",
  "description": "<string>",
  "agentPrompt": "<string>",
  "modelSettings": "<unknown>",
  "toolSlugs": [
    "<string>"
  ],
  "allowedKnowledgeCollectionIds": [
    "<string>"
  ],
  "allowedDatabaseCollectionIds": [
    "<string>"
  ],
  "isPublic": false,
  "externalMcpConfigs": [
    {
      "name": "<string>",
      "url": "<string>",
      "headers": {},
      "tools": [
        "<string>"
      ]
    }
  ]
}
'
{
  "id": "<string>",
  "name": "<string>",
  "projectId": "<string>",
  "nodes": "<array>",
  "edges": "<array>",
  "workflowType": "static",
  "isActive": true,
  "isPublic": true,
  "version": "<string>",
  "executionCount": 123,
  "successfulExecutionCount": 123,
  "failedExecutionCount": 123,
  "connections": "<array>",
  "tools": "<array>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "workspaceId": "<string>",
  "inputSchema": {},
  "outputSchema": {},
  "clonedFromWorkflowId": "<string>",
  "clonedFromVersion": "<string>",
  "lastExecutedAt": "<string>",
  "sourceVersionLatest": "1.0.2"
}

Authorizations

x-api-key
string
header
required

Project API key. Create and manage keys in the dashboard under Project → API Keys. Send as header: x-api-key:

Body

application/json

Response

Agent created successfully