POST or GET, and the flow starts a run.
The address
The address is shown on the Trigger tab of the start step:404. A flow that is switched off answers 410. If the address is not reachable from the internet, the Trigger tab says so, because systems outside your network cannot call it.
Require a login
Under Authentication, choose who may call the address. A call that fails the check is refused with401 and starts nothing.
Fill only the fields of the chosen type. A type with missing fields, or a secret that cannot be read, refuses every call. The secret fields are hidden from people who may only read the flow. Instead of typing a secret into the field, you can enter a reference to a variable, for example
{{variables['WEBHOOK_KEY']}}, and replace the value in one place. A variable that does not exist refuses every call.
What the flow receives
The run receives the call as trigger data:
The body may be up to 5 MB. A larger body is refused with
413. A call that starts a run answers 200 with { "data": { "runId": "..." } } at once, before the run has finished.
Send files
A call with the typemultipart/form-data can carry files. Text parts become fields of body, and a name that repeats becomes a list. File parts are stored with the run and handed over in files, where a step can take the url as a file input.
Collabase reads what a file contains and ignores the type the caller declares. It accepts PDF, PNG, JPEG, GIF, WebP, ZIP and Office files, gzip and text such as CSV, JSON or XML. Another kind of file is refused with
415, too many files or a file that is too large with 413.
Repeat a call safely
Add anIdempotency-Key header, up to 200 characters, when the caller may send the same call twice. A repeated call with the same key answers with the run of the first call and starts nothing. The key is remembered for 24 hours. A longer key is ignored.
Rate limit
One flow takes 120 calls a minute, from all callers together. Above that the answer is429 with a Retry-After header that says how many seconds to wait.
Wait for the answer
Add/sync to the address when the caller needs the result:
Respond to webhook
Add Respond to webhook from the flow control plug at the point where the answer is known:
The step sets the answer. The flow can go on with more steps afterwards. The caller does not wait for them.
Test a webhook
The Trigger tab has a second address for your tests, the Test address:1
Copy the address
Select Copy address, or Copy curl command for a ready call.
2
Wait for the call
Select Wait for a call, then let the other system call the test address. The editor waits up to two minutes. If no call arrives, it says so.
3
Check the data
The data picker now lists the fields of your call. The sample keeps the method, the body and the query, but no files.
curl: