Workflows API
Verwalten Sie Workflows über die API.
Workflows auflisten
Rufen Sie alle Workflows ab.
GET /workflows
Query-Parameter
page(optional): Seitennummer (Standard: 1)limit(optional): Anzahl pro Seite (Standard: 20, Max: 100)status(optional): Filter nach Status (active,inactive)
Beispiel-Request
curl -X GET "https://api.exeoflow.com/v1/workflows?page=1&limit=20" \
-H "Authorization: Bearer IHR_API_KEY"
Beispiel-Response
{
"success": true,
"data": {
"workflows": [
{
"id": "wf_123456",
"name": "Mein Workflow",
"description": "Workflow-Beschreibung",
"status": "active",
"created_at": "2024-01-01T10:00:00Z",
"updated_at": "2024-01-15T14:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 45,
"pages": 3
}
}
}
Workflow abrufen
Rufen Sie Details zu einem spezifischen Workflow ab.
GET /workflows/{workflow_id}
Beispiel-Request
curl -X GET "https://api.exeoflow.com/v1/workflows/wf_123456" \
-H "Authorization: Bearer IHR_API_KEY"
Beispiel-Response
{
"success": true,
"data": {
"id": "wf_123456",
"name": "Mein Workflow",
"description": "Workflow-Beschreibung",
"status": "active",
"nodes": [
{
"id": "node_1",
"type": "trigger",
"config": {}
}
],
"connections": [],
"created_at": "2024-01-01T10:00:00Z",
"updated_at": "2024-01-15T14:30:00Z"
}
}
Workflow erstellen
Erstellen Sie einen neuen Workflow.
POST /workflows
Request-Body
{
"name": "Neuer Workflow",
"description": "Beschreibung des Workflows",
"nodes": [],
"connections": []
}
Beispiel-Request
curl -X POST "https://api.exeoflow.com/v1/workflows" \
-H "Authorization: Bearer IHR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Neuer Workflow",
"description": "Mein erster API-Workflow"
}'
Beispiel-Response
{
"success": true,
"data": {
"id": "wf_789012",
"name": "Neuer Workflow",
"description": "Mein erster API-Workflow",
"status": "inactive",
"created_at": "2024-01-20T09:00:00Z"
}
}
Workflow aktualisieren
Aktualisieren Sie einen bestehenden Workflow.
PUT /workflows/{workflow_id}
Request-Body
{
"name": "Aktualisierter Name",
"description": "Aktualisierte Beschreibung",
"nodes": [],
"connections": []
}
Beispiel-Request
curl -X PUT "https://api.exeoflow.com/v1/workflows/wf_123456" \
-H "Authorization: Bearer IHR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Aktualisierter Workflow"
}'
Workflow löschen
Löschen Sie einen Workflow.
DELETE /workflows/{workflow_id}
Beispiel-Request
curl -X DELETE "https://api.exeoflow.com/v1/workflows/wf_123456" \
-H "Authorization: Bearer IHR_API_KEY"
Beispiel-Response
{
"success": true,
"data": {
"message": "Workflow erfolgreich gelöscht"
}
}
Workflow aktivieren/deaktivieren
Ändern Sie den Status eines Workflows.
POST /workflows/{workflow_id}/status
Request-Body
{
"status": "active"
}
Mögliche Werte: active, inactive
Beispiel-Request
curl -X POST "https://api.exeoflow.com/v1/workflows/wf_123456/status" \
-H "Authorization: Bearer IHR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "active"
}'
Workflow ausführen
Führen Sie einen Workflow manuell aus.
POST /workflows/{workflow_id}/execute
Request-Body (optional)
{
"input": {
"key": "value"
}
}
Beispiel-Request
curl -X POST "https://api.exeoflow.com/v1/workflows/wf_123456/execute" \
-H "Authorization: Bearer IHR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"user_id": "12345"
}
}'
Beispiel-Response
{
"success": true,
"data": {
"execution_id": "exec_abc123",
"status": "running",
"started_at": "2024-01-20T10:00:00Z"
}
}
Nächste Schritte
- Executions API - Workflow-Ausführungen überwachen
- Webhooks - Webhooks konfigurieren