Tailflow
Skip to article
Browse documentation

Webhooks · Action

POST

Makes a POST request with the fields you list, as JSON or as a form, and hands the answer to the steps below. Use it to call an API that wants its own shape, not the whole event: opening a ticket, starting a build, writing a row somewhere. You give rows and Tailflow encodes them, so a value from the event with a quote in it cannot break the body.

At a glance

IntegrationWebhooks
Credits1

Settings

urlRequiredAccepts event fields
Where the request goes. It must be a public http or https address.
payload_type
JSON or Form. JSON when nothing is chosen.
dataOptionalAccepts event fields
One row per field: a name and a value. Values take event fields; every value is sent as text.
headersOptionalAccepts event fields
Rows of name and value sent with the request, for an endpoint that asks for a key or a token. Values take event fields; names do not.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.webhook_post_1.status }} — the action’s key, then which one it is if you use more than one of the same kind.

status
The answer's status code.
headers
The answer's content type, under headers.content-type.
body
What came back: parsed when the endpoint said JSON and it is JSON, text otherwise. Up to 64 KB.
truncated
Whether the body was longer than 64 KB and was cut. A cut body stays text.

Good to know

  • A private or internal address is refused, and every redirect is checked the same way.
  • Anything but a success answer (2xx) fails the step. The answer is recorded on the run and is not handed to the steps below.
  • A failed request never stops the flow: the next event's request may succeed.
  • The run records the request with the value of any header whose name reads like a credential (it contains auth, key, token, secret, cookie, password or signature) masked. A secret in the URL, in the body, or under a header with another name is recorded as written.
  • Headers masked that way are not sent on to another host if the endpoint redirects there.
  • Validate run does not make the request. It shows what would be sent. Test run makes it.