Overview
The List Flows endpoint returns all flows within your project, providing essential information about each flow including deployment status and public access URLs.- Method:
GET
- URL:
https://flows.graphorlm.com
- Authentication: Required (API Token)
Authentication
All requests must include a valid API token in the Authorization header:Learn how to generate API tokens in the API Tokens guide.
Request Format
Headers
Header | Value | Required |
---|---|---|
Authorization | Bearer YOUR_API_TOKEN | Yes |
Query Parameters
This endpoint does not accept query parameters. All flows in your project will be returned.Example Request
Response Format
Success Response (200 OK)
Response Fields
Field | Type | Description |
---|---|---|
flows | array | Array of flow objects containing flow information |
total | integer | Total number of flows in the project |
Flow Object Structure
Each flow object contains:Field | Type | Description |
---|---|---|
name | string | Unique name of the flow |
description | string | Description of the flow’s purpose (may be null) |
status | string | Current deployment status of the flow |
url | string | Public URL for the deployed flow (null if not deployed) |
Flow Status Values
Deployed
Deployed
The flow is successfully deployed and accessible via its public URL. It can receive and process requests.Next Steps: Use the flow URL to execute queries or monitor performance.
Not deployed
Not deployed
The flow exists but hasn’t been deployed yet. It’s not accessible via public URL.Next Steps: Use the Deploy Flow endpoint to make it available.
New
New
A newly created flow that hasn’t been configured or deployed yet.Next Steps: Configure the flow in the GraphorLM interface and then deploy it.
Failed
Failed
The last deployment attempt failed. The flow may have configuration issues.Next Steps: Check flow configuration and attempt deployment again.
Code Examples
JavaScript/Node.js
Python
cURL
PHP
Error Responses
Common Error Codes
Status Code | Description | Example Response |
---|---|---|
401 | Unauthorized - Invalid or missing API token | {"detail": "Invalid authentication credentials"} |
403 | Forbidden - Insufficient permissions | {"detail": "Access denied"} |
500 | Internal Server Error - Server-side error | {"detail": "Internal server error"} |
Error Response Format
Example Error Responses
Invalid API Token
Insufficient Permissions
Server Error
Integration Examples
Flow Management Dashboard
Automated Flow Status Monitoring
Use Cases
Project Overview and Management
- Portfolio Monitoring: Get a complete view of all flows in your project
- Deployment Tracking: Monitor which flows are deployed and accessible
- Status Monitoring: Track flow health and deployment status
- Resource Planning: Understand flow distribution and usage patterns
Development Workflow
- Pre-Deployment Check: Verify flows before deployment
- Health Monitoring: Ensure deployed flows are functioning correctly
- Project Cleanup: Identify unused or failed flows for cleanup
- Team Coordination: Share flow status across development teams
Integration Scenarios
- Dashboard Integration: Display flow status in management dashboards
- Automated Monitoring: Set up alerts for flow health issues
- CI/CD Pipeline: Include flow status checks in deployment pipelines
- API Gateway: Route requests based on flow availability
Best Practices
Regular Monitoring
- Check Status Regularly: Monitor flow status to ensure availability
- Health Checks: Test deployed flows periodically
- Performance Tracking: Monitor response times and error rates
- Capacity Planning: Track flow usage for resource allocation
Error Handling
- Graceful Degradation: Handle API failures gracefully
- Retry Logic: Implement retry mechanisms for transient failures
- Logging: Log API calls and responses for debugging
- Alerting: Set up alerts for flow health issues
Security Considerations
- Token Management: Secure API token storage and rotation
- Access Control: Limit access to flow management functions
- Audit Trails: Log flow status changes and access patterns
- Network Security: Use HTTPS for all API communications