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"
}Create a new agent/workflow with name, tools, system prompt, and model. The agent runs in your workspace and can be triggered manually or by schedules/webhooks.
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"
}Project API key. Create and manage keys in the dashboard under Project → API Keys. Send as header: x-api-key:
Show child attributes
Agent created successfully
Show child attributes
Was this page helpful?