New Tool Radar

AI Agents & Automation

How to Call a Flowise Chatflow From Your Code With Its API

Call a Flowise chatflow's REST API endpoint with curl, so your own app can ask the flow a question and get the answer back.

Schematic diagram with four steps: open the chatflow in the builder, find its API endpoint, POST a question with curl, then read the flow's answer.

Every chatflow in Flowise gets a REST API endpoint automatically, which means the flow you built in the visual builder is also a callable service. Your app can POST a question to it and get the flow’s answer back, without opening the builder.

Find the endpoint and POST a question

Open the chatflow in the builder and find its API endpoint — Flowise shows the endpoint and an example call for each chatflow. Send a POST to that endpoint with your question in the body, for example with curl, and the reply carries the flow’s answer. The endpoint runs on the same Flowise server, so the base is your Flowise address, usually http://localhost:3000.

curl -X POST <chatflow-endpoint-from-the-builder> \
  -H "Content-Type: application/json" \
  -d '{"question": "What does the document say about refunds?"}'
# the endpoint is shown in the builder for each chatflow;
# the base is your Flowise address, usually http://localhost:3000

The API answers with the flow’s output, including whatever the chain did — retrieval, tools, or a plain model call. If the flow needs authentication, the call must carry the same credentials the builder uses; an open endpoint on a shared network is an open model for anyone who finds it.

Try it: four checks

Check What you should see If you do not see it
Flowise running The server is up on port 3000 Start it with npx flowise start
Endpoint found The chatflow shows its API endpoint Check the builder’s API panel
POST succeeds The curl call returns an answer Check the chatflow id
Answer from flow The reply is the flow’s answer Compare with the builder’s chat

Expected result. We checked the Flowise local setup guide, which says every chatflow gets a REST API endpoint and that chatflows can be exported as JSON. We did not call an endpoint on this machine.

Limits

This guide covers the API call only. The exact endpoint path and auth depend on your Flowise setup. We did not test any call ourselves.

Sources

See all