Overview
Load simulation data from individual flow nodes for debugging, analysis, or testing purposes. Each node type returns different data structures based on their simulated processing function.- Method:
POST
- URL:
https://{flow_name}.flows.graphorlm.com/nodes/results
- 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 fields:Field | Type | Required | Description |
---|---|---|---|
node_id | string | Yes | The unique identifier of the node to load data from |
page | integer | No | Page number for pagination (starts from 1) |
page_size | integer | No | Number of items per page (default: 10, max: 100) |
Example Request
Response Format
Success Response (200 OK)
Response Structure
Field | Type | Description |
---|---|---|
success | boolean | Whether the simulation data loading operation was successful |
message | string | Human-readable message about the operation result |
items | array | Array of simulation data objects from the specified node |
total | integer | Total number of items available across all pages |
page | integer | Current page number (if pagination was used) |
page_size | integer | Number of items per page (if pagination was used) |
total_pages | integer | Total number of pages available |
Node Data Structures by Type
The structure ofitems
varies based on the node type:
Chunking Node Data
LLM Node Data
Code Examples
JavaScript/Node.js
Python
cURL
Error Responses
Common Error Codes
Status Code | Description | Common Causes |
---|---|---|
400 | Bad Request | Invalid node ID, malformed pagination parameters |
401 | Unauthorized | Invalid or missing API token |
404 | Not Found | Flow not found, node not found in the specified flow |
500 | Internal Server Error | Node data loading failed, processing error |
Error Response Format
Example Error Responses
Flow Not Found
Node Not Found
Invalid Pagination
Simulation Data Loading Failed
Use Cases
Simulation Data Analysis
Examine the simulation output data from different node types to validate processing logic and data structures.Debug Node Issues
Identify problems in individual nodes by examining their simulation results before deploying the flow.Testing and Validation
Extract simulation data to test node configurations and validate processing logic before production deployment.Best Practices
- Pagination: Use appropriate page sizes (20-100 items) for optimal performance
- Error Handling: Implement proper error handling for API failures
- Data Validation: Validate expected data structures from different node types
- Security: Secure API token storage and rotation
Troubleshooting
Node Simulation Data Loading Failed
Node Simulation Data Loading Failed
Solution: If node simulation data loading fails:
- Verify the node ID exists in the specified flow
- Check that the node has been simulated and contains simulation data
- Ensure node dependencies are properly configured
Empty Simulation Results Returned
Empty Simulation Results Returned
Solution: For empty simulation result sets:
- Verify the node has been simulated and processed data
- Check if upstream nodes are providing input data for simulation
- Confirm the node configuration is correct
Authentication Issues
Authentication Issues
Solution: For authentication problems:
- Verify your API token is valid and not expired
- Check that the token has appropriate permissions for the flow
- Ensure the Authorization header is properly formatted
Next Steps
After loading node simulation results, you can:Analyze Simulation Results
Analyze and validate your node simulation data before deployment
Update Node Configuration
Optimize node settings based on simulation analysis
Deploy Flow
Deploy your flow after validating simulation results
Flow Overview
Learn about complete flow management and all node types