REST API · n8n
Send messages and tasks from an HTTP step in your scripts or automations. Authenticate with a program key and use stable task IDs.
REST API · Developer docsCONNECTION GUIDE
Verify the connection with one message,
then receive replies and run approved tasks.
01 · PREPARE
Keep keys in your runtime's secret configuration or a private key file, outside source code and conversations. App-approved MCP connections do not require copying a program key.
02 · CONNECT
Send messages and tasks from an HTTP step in your scripts or automations. Authenticate with a program key and use stable task IDs.
REST API · Developer docsAdd Pushyou to an agent that supports MCP. Approve its conversations and permissions in the app, or connect with a program key.
MCP · Developer docsThe receiver polls response events and runs your handler. Webhooks deliver signed events to your HTTPS endpoint.
See the receiver and examples03 · CONTINUE THE WORK
The original request and its result stay in the same task. If the outcome is uncertain, such as after a timeout, check the external state before deciding to retry. An ACK does not replace task completion.
Deployment, incident and report use cases · Fields, states and API reference
04 · RUN & VERIFY
The REST receiver runs on Node 22 or later. It saves progress and execution results to resume after delivery failures. For use after closing your terminal, follow the macOS or Linux service setup in the installation guide.
The deployment example is a dry run and makes no infrastructure changes. The n8n file is an importable request example; verify execution in your own environment separately. Tasks cannot run while your program is stopped or your computer is asleep.
Verify message delivery and a real reply round trip, step by step.