Tailflow
Skip to article
Browse documentation

Webhooks · Action

Custom request

Makes a request with the method and the body you write, and hands the answer to the steps below. Use it when the other three do not fit: a PATCH, a DELETE, a body with nested fields or numbers, XML. The body is sent exactly as written once its values are filled in. Unlike POST and PUT, nothing is encoded for you, so a value from the event with a quote in it can break a JSON body.

At a glance

IntegrationWebhooks
Credits1

Settings

method
GET, POST, PUT, PATCH or DELETE. GET when nothing is chosen.
urlRequiredAccepts event fields
Where the request goes. It must be a public http or https address.
bodyOptionalAccepts event fields
Sent exactly as written, once the values are filled in. A body that is JSON is labelled JSON unless you set a content type yourself.
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_request_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 GET request with a body is refused: clear the body, or choose another method.
  • 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.