Developers
ENPT

Receive data by webhook

Start a flow when another system, such as a form or a website, sends data to a Tolky address.

A flow that starts with the Receive external data step gets its own web address (URL). When another system sends a request to that address, the flow runs with the data it received. Use it for website forms, e-commerce events, CRM updates or any tool that can call a webhook.

Before you start

  • Access to Flows in the platform.
  • A system that can send an HTTP request (most tools call this a "webhook" setting).

Set up the webhook

Create the flow

Go to Flows and click Create flow. Choose Receive external data as the first step.

Save to get the URLs

Save the flow. Until then the step shows Save the flow first to generate the webhook URLs.

Choose the method

Under HTTP method, pick the method the other system uses. POST is the usual one.

Declare the parameters

Under Parameters, add the fields you want to use in the next steps, for example email or order_id. They become available under Input Data.

Build the rest of the flow

Add the steps that use the data: send a message, call an API, use an app.

Test URL and Production URL

The step shows two addresses:

Test URLProduction URL
What runsThe current draft of the flow, as it is in the editorThe published version of the flow
When it worksAlways, even with the flow disabledOnly with Flow active in production turned on
Where you see the resultIn the editor, liveIn Runs

To test, click Test (listen) and send a request to the Test URL, or click Send test call to send an example. When you are done, open the Production URL tab and turn on Flow active in production. Turning it on publishes the current version automatically. Give the Production URL to the other system.

Reply to the caller

By default, the production address answers right away that the call was received, and the flow runs in the background. If the other system needs an answer, such as a result or a confirmation code, add the Reply to caller step at the point where the answer is ready. The address then waits for the flow to reach that step and returns what it defines.

Protection against repeated calls

  • Automatic protection (always on): each address accepts at most one call per interval. The interval is shown in the step. Faster calls get a "wait and try again" answer and do not run the flow. The Test and Production URLs share the same limit.
  • Ignore repeated calls: optional. Choose a declared parameter and a time window. Calls with the same value inside the window run the flow only once.

Common problems

SymptomWhat to do
The Production URL answers "Fluxo desativado"Turn on Flow active in production in the Production URL tab.
"Fluxo ainda não publicado"Turn on Flow active in production. If it is already on, fix the flow warnings that block publishing.
Call blocked by the automatic protectionThe system called too fast. Wait and send again. If your integration needs more calls per second, contact Tolky support.
Call ignored: repeatedA call with the same parameter value arrived inside the repeat window. This is the expected behavior of Ignore repeated calls.
Keep the URL private

Anyone who has the address can call it. Share it only with the system that needs it. To check the caller, send a secret value in a header and check it with a Decision (if / then) step at the start of the flow.

AdvancedTechnical details

Address format (the node ID is replaced by the URL path if you set one):

Production: https://api.tolky.to/api/automations/webhooks/<flow-id>/<node-id>
Test:       https://api.tolky.to/api/automations/webhooks/test/<flow-id>/<node-id>
curl -X POST "https://api.tolky.to/api/automations/webhooks/<flow-id>/<node-id>" \
  -H "Content-Type: application/json" \
  -d '{ "email": "customer@example.com", "order_id": "A-1001" }'
  • The flow receives body, headers and query of the request. JSON and form bodies arrive as objects; other bodies arrive as text in body.raw.
  • URL path: only a-z, 0-9, - and _, up to 64 characters.
  • The repeat window goes from 1 second to 24 hours. Test and production count separate windows.

Production responses:

StatusWhen
202No Reply to caller step: { "success": true, "status": "enqueued", "runId": "..." }.
As definedWith Reply to caller: the status, headers and body set in that step.
200 with "status": "deduped"Ignored as a repeated call.
409Flow disabled or not published.
429Automatic protection. Read the Retry-After header.
504The flow did not reach Reply to caller in time.
  • Call external APIs: the opposite direction, when Tolky calls another system.
  • n8n and Make: connect automation tools in both directions.
  • HubSpot: HubSpot records go to dedicated routes.

Previous

Call external APIs

Next

n8n and Make