Overview
Sources are external workflow platforms that Spark connects to for syncing and executing workflows. Supported source types:- langflow: LangFlow workflow platform
- automagik-hive: AutoMagik Hive multi-agent system
- automagik-agents: AutoMagik Agents framework
List Sources
Retrieve all configured workflow sources with pagination support.Filter by source status:
active or inactiveNumber of items per page (min: 1, max: 100)
Number of items to skip for pagination
Response
200 Success
401 Unauthorized
Get Source
Retrieve a specific workflow source by ID.UUID of the source to retrieve
Response
200 Success
404 Not Found
Create Source
Create a new workflow source. Spark will validate the source by checking its health endpoint and fetching version information.Human-readable name for the source (auto-generated if not provided)
Source type:
langflow, automagik-hive, or automagik-agentsBase URL of the workflow source (e.g.,
http://localhost:7860)API key for authentication (leave empty if source doesn’t require auth)
Response
201 Created
400 Bad Request
400 Bad Request (Connection Failed)
Source Validation: Spark validates the source by connecting to its health endpoint. Ensure the source is running and accessible before creating.Health Endpoints by Type:
- LangFlow:
GET /health - Hive:
GET /api/v1/health - Agents:
GET /health
Update Source
Update an existing workflow source. You can update the name, URL, API key, or status.UUID of the source to update
New name for the source
New source type (not recommended to change)
New base URL for the source
New API key for authentication
New status:
active or inactiveResponse
200 Success
404 Not Found
400 Bad Request
Partial Updates: You only need to include the fields you want to update. Other fields remain unchanged.
Delete Source
Delete a workflow source. This will also remove all associated workflows and schedules.UUID of the source to delete
Response
200 Success
404 Not Found
400 Bad Request
Cascade Delete: Deleting a source will remove all workflows and schedules associated with it. This action cannot be undone.
Source Types
LangFlow
LangFlow is a visual workflow builder for creating AI agents and workflows. Configuration:GET /health (expects {"status": "ok"})
AutoMagik Hive
Hive is a multi-agent system supporting agents, teams, and workflows. Configuration:GET /api/v1/health (expects {"status": "success"})
AutoMagik Agents
AutoMagik Agents is a framework for building AI agents. Configuration:GET /health (expects {"status": "healthy"})
Error Codes
| Status | Detail | Cause |
|---|---|---|
| 400 | Source with URL already exists | Duplicate source URL |
| 400 | Failed to validate source | Cannot connect to source or health check failed |
| 400 | Error deleting source | Database or cascade delete error |
| 404 | Source not found | Invalid source ID |
| 401 | Invalid API key | Missing or incorrect X-API-Key header |

