API-Based Execution & Token Management π
flowyml provides a robust REST API for executing pipelines, managing tokens, and interacting with the system programmatically. This allows you to integrate flowyml into your existing infrastructure, such as CI/CD pipelines or custom dashboards.
π Token Management
Secure access to the flowyml API is managed via API tokens.
Creating Tokens
You can generate tokens via the UI or CLI.
Using CLI:
Using UI: 1. Navigate to Settings > API Tokens. 2. Click Generate New Token. 3. Copy the token immediately; it won't be shown again.
Using Tokens
Include the token in the Authorization header of your HTTP requests:
π API-Based Pipeline Execution
You can trigger pipelines remotely using the REST API.
Trigger a Run
Endpoint: POST /api/v1/runs
Request Body:
Example (curl):
Check Run Status
Endpoint: GET /api/v1/runs/{run_id}
Response:
List Runs
Endpoint: GET /api/v1/runs
Query Parameters:
- pipeline_name: Filter by pipeline.
- status: Filter by status (e.g., success, failed).
- limit: Number of results to return.
π API Reference
For a complete list of endpoints, visit the interactive API documentation (Swagger UI) at:
http://localhost:8080/docs