Prediction
Send a message to your flow and receive an AI-generated response. This is the primary endpoint for interacting with your flows and assistants.Authentication: API key may be required depending on flow settings.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequiredExample:
Flow ID - the unique identifier of your flow
your-flow-idBody
questionstringOptionalExample:
The question/message to send to the flow
What is artificial intelligence?streamingbooleanOptionalDefault:
Enable streaming responses for real-time output
falseExample: falseResponses
200
Successful prediction response
application/json
400
Bad Request - Invalid input provided or request format is incorrect
application/json
401
Unauthorized - API key required or invalid
application/json
404
Not Found - Chatflow with specified ID does not exist
application/json
413
Payload Too Large - Request payload exceeds size limits
application/json
422
Validation Error - Request validation failed
application/json
500
Internal Server Error - Flow configuration or execution error
application/json
post
/prediction/{id}Last updated