ETLMCPData Conveyance Works
Log in Start free
Docs

Webhook (HTTPS POST) destination

What the webhook destination posts to your HTTPS URL, which URLs and secret headers etlmcp refuses, and how the Test button marks its sample row.

The webhook destination sends each run's rows to a URL you own, as JSON in the body of HTTPS POST requests. The URL must start with https://, must not carry a user name or password, and must point at a public server; etlmcp never follows a redirect. You can add one secret header, such as an authorization token, which etlmcp stores encrypted and sends with every request. The Test button posts one sample row with the header X-Etlmcp-Test: 1, so your receiver can tell a test from real data.

Set it up

  1. On the dashboard's destinations page, go to the Webhook (HTTPS POST) panel and give the destination a Name.
  2. Enter the URL of your endpoint.
  3. If your endpoint needs a credential, type it in the Headers field as Name: value, such as Authorization: Bearer …. The field takes one header. Text without a colon after the name is refused with Write the header as Name: value.
  4. Press Add destination, then press Test next to the new destination.

The secret header is tied to the URL's scheme and host, port included. If you later change either one, etlmcp asks you to type the header again; why secrets are bound to their host explains that rule.

What etlmcp refuses

etlmcp checks the scheme and credentials when you save the URL, and the host each time it sends:

  • A scheme other than HTTPS fails with url must start with https://. Plain HTTP is never used.
  • A URL with credentials in it, such as a user name before an @, fails with url must not contain credentials. Put the credential in the secret header instead.
  • The host must resolve to public internet addresses only. If it cannot be resolved, or any address it resolves to is private, loopback, link-local, reserved, multicast or in the carrier-grade NAT range, the delivery stops with host not allowed. Numeric hosts written in unusual forms (a bare decimal number, hex, octal or shortened) are refused too. etlmcp resolves the name once and connects to the address it checked, while still verifying your TLS certificate against the host name.

The secret header has its own rules:

  • The name must be a valid HTTP token: letters, digits and a small set of punctuation, with no spaces. Otherwise: header names must be valid HTTP tokens.
  • You cannot set Host, Content-Length, Content-Type or Transfer-Encoding, in any capitalization. etlmcp sets these itself, and the request fails with header {…} cannot be set, naming the header.
  • The value must be ASCII text on a single line, with no line breaks or null characters: header values must be single-line ASCII text.

What your endpoint receives

Each request has the content type application/json and a body with three keys: rows, a list of row objects; batch, the number of this request, starting at 1; and batches, how many requests the run sends in all. A large run is split into several batches, posted one after another.

Each row holds the standard columns your pipeline's rules leave in place, such as date, network, campaign_id, impressions, clicks and cost, plus any columns the rules add. Platform-specific fields stored under extra arrive flattened, with keys like extra.<field>. A webhook run delivers the rows of its own date range, not the source's whole stored history.

How responses are read

etlmcp reads only the status code and never reads your response body.

Your endpoint answers Result
Any 2xx status The batch counts as delivered.
A 3xx redirect The run stops with webhook redirected. Update the URL to the final address.
429 or any 5xx webhook returned HTTP {…}, treated as a passing error, so the run is tried again while it has attempts left.
Any other status, such as 400 or 401 webhook returned HTTP {…}, a permanent error: the run is not retried.
No answer in time webhook timed out, or a request-failed message when the connection itself fails; either way the run is tried again while it has attempts left.

When a run has more than one batch, the message also says which batch failed, and from the second batch on it ends with ; earlier batches were delivered. A run that is tried again sends its rows again from the first batch, so make your receiver safe to repeat, for example by replacing rows per date and campaign_id rather than appending. Retries covers how many attempts a run gets and how long it waits, and run statuses explains the partial status a failed delivery leaves.

The Test button

Test posts one made-up row (the account is named test and the campaign test campaign, dated 2026-11-14) through the same path as a real run, with your secret header and the extra header X-Etlmcp-Test: 1. A 2xx answer shows Webhook accepted a sample row.; anything else shows the error message a run would record for the same answer. Filter on that header in your receiver so test rows never reach your reports. If your endpoint sits behind a firewall, the destinations page shows the address etlmcp connects from when one is configured.

Related