Overview
The Deploy Flow endpoint creates a new revision of your flow and deploys it, making it accessible for execution via the public API. Once deployed, your flow will be available athttps://{flow_name}.flows.graphorlm.com.
- Method:
POST - URL:
https://{flow_name}.flows.graphorlm.com/deploy - 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 |
Content-Type | application/json | Yes |
Request Body
The request body should be a JSON object with the following optional fields:| Field | Type | Required | Description |
|---|---|---|---|
tool_description | string | No | Custom description for the deployed flow that will be used in tool definitions |
Example Request
Minimal Request
For a basic deployment without custom tool description:Response Format
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the deployment was successful |
message | string | Human-readable message about the deployment |
revision_id | string | Unique identifier for the created revision |
status | string | Current status of the flow (should be βDeployedβ) |
Code Examples
JavaScript/Node.js
Python
cURL
Deployment Process
The deployment process involves several steps:- Validation: Checks if the flow exists and is properly configured
- Revision Creation: Creates a new revision with updated node IDs
- Graph Update: Updates the flow graph with the new revision
- Component Deployment: Deploys all flow components (dataset, chunking, retrieval, Response Node, etc.)
- Traffic Routing: Routes 100% of traffic to the new revision
- Status Update: Updates the flow status to βDeployedβ
Deployment Requirements
Before deploying a flow, ensure:1. Flow Configuration
- β Flow has been created and saved
- β Response Node is configured and properly connected
- β All required components are configured
- β Dataset node has source documents selected
- β Response Node model and prompt configuration is complete and valid
2. Source Documents
- β Documents are uploaded to the project
- β Documents are processed and in βCompletedβ status
- β At least one document is selected in dataset nodes
3. Flow Components
- β All nodes have valid configurations
- β Node connections are properly established
- β Required parameters are set for each component
4. API Access
- β Valid API token with deployment permissions
- β Flow name is unique and follows naming conventions
Error Responses
Common Error Codes
| Status Code | Description | Common Causes |
|---|---|---|
| 400 | Bad Request | Invalid flow configuration, missing required components |
| 401 | Unauthorized | Invalid or missing API token |
| 404 | Not Found | Flow doesnβt exist or insufficient permissions |
| 500 | Internal Server Error | Deployment process failed, infrastructure issues |
Error Response Format
Example Error Responses
Flow Not Found
Invalid Configuration
Deployment Failed
Missing Response Node
Insufficient Permissions
Tool Description Usage
Thetool_description parameter is used when your deployed flow is accessed via MCP (Model Context Protocol) or when itβs used as a tool in other systems. It helps describe what your flow does and how it should be used.
Best Practices for Tool Descriptions
- Be Specific: Clearly describe what your flow does
- Include Use Cases: Mention what types of queries it handles best
- Mention Data Sources: Indicate what kind of documents or data it processes
Examples of Good Tool Descriptions
Integration Examples
Automated Deployment Pipeline
Batch Deployment for Multiple Flows
Best Practices
Pre-Deployment Checklist
- β Ensure Response Node is configured and connected
- β Test your flow configuration in the Graphor interface
- β Verify all documents are processed and available
- β Ensure dataset nodes have appropriate source selections
- β Test component configurations individually
- β Validate Response Node model, prompt, and API settings
Deployment Strategy
- Start Small: Deploy simple flows first to validate the process
- Monitor Performance: Watch deployment progress and check for errors
- Version Control: Keep track of revision IDs for rollback if needed
- Gradual Rollout: Test thoroughly before production deployment
Post-Deployment
- Verify Functionality: Test the deployed flow with sample queries
- Monitor Performance: Check response times and accuracy
- Update Documentation: Document the deployment and any custom configurations
- Set Up Monitoring: Implement logging and error tracking
Security Considerations
- API Token Management: Use environment variables for tokens
- Access Control: Ensure only authorized users can deploy flows
- Network Security: Use HTTPS for all deployment requests
- Audit Trail: Keep logs of all deployments for compliance
Troubleshooting
Flow Not Found Error
Flow Not Found Error
Solution: Verify that:
- The flow exists in your Graphor project
- The flow name in the URL exactly matches the flow name in the system
- Your API token has access to the correct project
- The flow has been saved properly in the flow builder
Invalid Configuration Error
Invalid Configuration Error
Solution: Check your flow configuration:
- Ensure you have a Response Node configured in your flow
- Ensure all required nodes are present
- Verify dataset nodes have source documents selected
- Check that all node parameters are properly configured
- Validate Response Node model and prompt configuration
- Ensure all node connections are properly established
Missing Response Node
Missing Response Node
Solution: For βNo Response Node foundβ deployment errors:
- Add a Response Node to your flow
- Configure the Response Node with a valid model and prompt
- Connect the Response Node properly to receive input from other nodes
- The Response Node is required to generate responses for deployed flows
- Ensure the Response Node is not disconnected from the flow
Deployment Timeout
Deployment Timeout
Solution: For slow deployments:
- Complex flows may take several minutes to deploy
- Check if large datasets are being processed
- Try deploying during off-peak hours
- Contact support if deployment consistently times out
Source Document Issues
Source Document Issues
Solution: Verify your documents:
- All documents are uploaded and processed
- Documents have βCompletedβ status in the sources list
- At least one document is selected in dataset nodes
- Documents are accessible and not corrupted
Authentication Failures
Authentication Failures
Solution: Check your API authentication:
- Verify API token is valid and not expired
- Ensure token has deployment permissions
- Check that token belongs to the correct project
- Regenerate token if necessary
Internal Server Errors
Internal Server Errors
Solution: For deployment infrastructure issues:
- Check Graphor status page for service incidents
- Try deployment again after a few minutes
- Simplify flow configuration if possible
- Contact support with revision ID if error persists
Monitoring and Management
After successful deployment, you can:Check Deployment Status
- Monitor flow execution through the Graphor dashboard
- Use the Run Flow endpoint to test functionality
- Review logs and performance metrics
Update Deployments
- Modify your flow configuration in the Graphor interface
- Deploy again to create a new revision
- Previous revisions are automatically replaced
Rollback if Needed
- Contact support if you need to rollback to a previous revision
- Keep track of working revision IDs for reference
Next Steps
After successfully deploying your flow, you can:Run Flow
Execute your deployed flow with queries and get responses
Flow Overview
Explore all available flow management endpoints
Integrate Workflow
Advanced integration patterns and MCP server usage
API Tokens
Learn how to generate and manage API tokens

