# HTTP Webhook Destination Config Reference

<p><a href="https://www.rudderstack.com/docs/destinations/http-webhook/setup-guide/" >HTTP Webhook</a> sends each event to an HTTP endpoint you own. You choose the method, body format, authentication, and — when the default passthrough doesn&rsquo;t suit the endpoint — how RudderStack maps the event onto the outgoing request.</p>
<p>In an HTTP Webhook destination spec:</p>
<ul>
<li><code>type: http</code></li>
<li><code>definition_version: 1</code></li>
</ul>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="sample-configuration">Sample configuration</h2><div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">version: rudder/v1
kind: destination
metadata:
  name: orders-webhook-prod
spec:
  id: orders-webhook-prod
  display_name: Orders Webhook Production
  type: http
  definition_version: 1
  enabled: true
  config:
    api_url: https://api.example.com/v1/events
    method: POST
    format: JSON

    auth: apiKeyAuth
    api_key_name: &#34;{{ .WEBHOOK_API_KEY_NAME }}&#34;
    api_key_value: &#34;{{ .WEBHOOK_API_KEY }}&#34;

    is_default_mapping: false
    properties_mapping:
      - to: $.eventName
        from: $.event
      - to: $.customer.id
        from: $.userId
    query_params:
      - to: source
        from: rudderstack
    headers:
      - to: X-Request-Source
        from: &#34;{{ .WEBHOOK_HEADER_VALUE }}&#34;
    path_params:
      - path: $.properties.accountId

    is_batching_enabled: true
    max_batch_size: &#34;50&#34;

    event_filtering:
      whitelist:
        - Order Completed
        - Order Refunded

    connection_mode:
      web: cloud
      cloud: cloud
    consent_management:
      web:
        - provider: oneTrust
          consents:
            - analytics</code></pre></div>
</div>
<p>The above example uses API key authentication and custom request mapping. <code>xml_root_key</code> is omitted because it applies only when <code>format</code> is <code>XML</code>. Several keys apply only in certain combinations — see <a href="#key-dependencies" >Key dependencies</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="config-keys">Config keys</h2><p><code>config</code> accepts only the keys listed below. The <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/#config-key-rules" >shared config key rules</a> cover unknown keys, defaults, and immutability.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="key-dependencies">Key dependencies</h3><p>Several keys only take effect in combination with another key&rsquo;s value. The CLI enforces one of these — <code>max_batch_size</code> — and accepts the rest whatever the other key says, so a key that doesn&rsquo;t apply is stored and ignored rather than rejected.</p>
<table>
<thead>
<tr>
<th>Key</th>
<th>Applies when</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>username</code>, <code>password</code></td>
<td><code>auth</code> is <code>basicAuth</code></td>
</tr>
<tr>
<td><code>bearer_token</code></td>
<td><code>auth</code> is <code>bearerTokenAuth</code></td>
</tr>
<tr>
<td><code>api_key_name</code>, <code>api_key_value</code></td>
<td><code>auth</code> is <code>apiKeyAuth</code></td>
</tr>
<tr>
<td><code>xml_root_key</code></td>
<td><code>format</code> is <code>XML</code></td>
</tr>
<tr>
<td><code>properties_mapping</code></td>
<td><code>is_default_mapping</code> is <code>false</code></td>
</tr>
<tr>
<td><code>is_batching_enabled</code></td>
<td><code>format</code> is <code>JSON</code></td>
</tr>
<tr>
<td><code>max_batch_size</code></td>
<td><code>is_batching_enabled</code> is <code>true</code> <strong>and</strong> <code>format</code> is <code>JSON</code></td>
</tr>
</tbody>
</table>
<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="endpoint">Endpoint</h3><div class="rs-ckeys">
<div class="rs-ckey" id="api_url">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">api_url</p>Required</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Endpoint RudderStack sends events to. Both <code>http</code> and <code>https</code> are accepted; an <code>https</code> endpoint needs a valid TLS certificate for delivery to succeed.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Must be a public domain URL: a scheme, at least one dot-separated label followed by an alphabetic top-level domain, an optional port, and an optional path.</li>
<li>A bare hostname, a bare IP address, <code>localhost</code> in any form, and <code>ngrok.io</code> addresses are all rejected.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  To append path or query segments built from the event, use <code>path_params</code> and <code>query_params</code> rather than writing them into this value.
</div>

</div>

<div class="rs-ckey" id="method">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">method</p>Required</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  HTTP method of the outgoing request: <code>POST</code>, <code>PUT</code>, <code>PATCH</code>, <code>GET</code>, or <code>DELETE</code>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>The dashboard defaults this to <code>POST</code>. Rudder CLI requires it explicitly.</li>
<li>A spec that omits this key fails validation.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="format">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">format</p>Required</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Body format of the outgoing request: <code>JSON</code>, <code>XML</code>, or <code>FORM</code>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>The dashboard defaults this to <code>JSON</code>. Rudder CLI requires it explicitly.</li>
<li>A spec that omits this key fails validation.</li>
<li>The value also decides whether <code>xml_root_key</code> and <code>is_batching_enabled</code> apply.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="xml_root_key">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">xml_root_key</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Root key wrapping every mapped field in the request body.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Applies when <code>format</code> is <code>XML</code>.</li>
<li>At most 100 characters, and must not contain line breaks.</li>
</ul>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="authentication">Authentication</h3><div class="rs-ckeys">
<div class="rs-ckey" id="auth">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">auth</p>Required</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Authentication method for the request: <code>noAuth</code>, <code>basicAuth</code>, <code>bearerTokenAuth</code>, or <code>apiKeyAuth</code>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>The dashboard defaults this to <code>noAuth</code>. Rudder CLI requires it explicitly.</li>
<li>A spec that omits this key fails validation.</li>
<li>The value decides which credential keys below are required.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="username">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">username</p>RequiredSecret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Username for basic authentication.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Required when <code>auth</code> is <code>basicAuth</code>.</li>
<li>1 to 100 characters, and must not contain line breaks.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="password">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">password</p>RequiredSecret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Password for basic authentication.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Required when <code>auth</code> is <code>basicAuth</code>.</li>
<li>At most 100 characters, and must not contain line breaks.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="bearer_token">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">bearer_token</p>RequiredSecret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Token sent in the <code>Authorization</code> header.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Required when <code>auth</code> is <code>bearerTokenAuth</code>.</li>
<li>1 to 2048 characters, and must not contain line breaks.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="api_key_name">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">api_key_name</p>RequiredSecret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Name of the header carrying the API key — for example <code>X-Api-Key</code>, which is what the dashboard prefills.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Required when <code>auth</code> is <code>apiKeyAuth</code>.</li>
<li>1 to 100 characters, with no whitespace.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  Rudder CLI treats the header <strong>name</strong> as a secret as well as its value, so write it as a <code>{{ .VAR }}</code> reference — see <a href="#secrets" >Secrets</a>.
</div>

</div>

<div class="rs-ckey" id="api_key_value">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">api_key_value</p>RequiredSecret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Value of the API key header.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Required when <code>auth</code> is <code>apiKeyAuth</code>.</li>
<li>1 to 100 characters, and must not contain line breaks.</li>
</ul>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="request-mapping">Request mapping</h3><p>By default the source event is sent through unmodified. The keys in this group either turn that off and reshape the body, or add to the request URL and headers — those additions apply either way.</p>
<p>Each mapping entry pairs a <code>from</code> (where the value comes from) with a <code>to</code> (where it lands on the outgoing request). A <code>from</code> is a <a href="https://en.wikipedia.org/wiki/JSONPath" >JSONPath</a> into the source event, such as <code>$.properties.orderId</code>, or a bare constant such as <code>rudderstack</code>. A quoted constant like <code>&quot;EUR&quot;</code> is not valid.</p>

<blockquote class="warning">
  <div class="tip-quote">
    
    <div class="tip-text">If you define more than one mapping for the same key, only the first is used and the rest are ignored.</div>
  </div>
</blockquote>
<div class="rs-ckeys">
<div class="rs-ckey" id="is_default_mapping">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">is_default_mapping</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>boolean</code>
  </p><p class="rs-ckey__field">
    Default value:
    <code>true</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Send the source event payload as it is, without applying <code>properties_mapping</code>. This is what the dashboard calls <strong>Send the event payload as is</strong>.
</p>

<div class="rs-ckey__extra">
  Set it to <code>false</code> to shape the body yourself. When <code>format</code> is <code>XML</code> and this stays <code>true</code>, the unmodified payload is sent under <code>xml_root_key</code>.
</div>

</div>

<div class="rs-ckey" id="properties_mapping">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">properties_mapping</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>array of objects</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Maps fields of the source event onto the request body.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Applies when <code>is_default_mapping</code> is <code>false</code>.</li>
<li><code>to</code> — JSONPath of the field on the outgoing request. Must be a JSONPath or empty; a bare token like <code>properties.value</code> is rejected.</li>
<li><code>from</code> — JSONPath into the source event, or a constant of up to 100 characters.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">properties_mapping:
  - to: $.messageType
    from: $.type
  - to: $.customer.firstName
    from: $.traits.firstName</code></pre></div>
</div>

</div>

</div>

<div class="rs-ckey" id="query_params">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">query_params</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>array of objects</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Query parameters appended to <code>api_url</code>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>to</code> — parameter name. Must be a plain token of up to 100 characters, not a JSONPath.</li>
<li><code>from</code> — JSONPath into the source event, or a constant of up to 100 characters.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">query_params:
  - to: source
    from: rudderstack
  - to: order_id
    from: $.properties.orderId</code></pre></div>
</div>

</div>

</div>

<div class="rs-ckey" id="headers">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">headers</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>array of objects</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Headers added to the outgoing request.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>to</code> — header name. Must be a plain token of up to 100 characters, not a JSONPath.</li>
<li><code>from</code> — JSONPath into the source event, or a constant of up to 100 characters. <strong>Secret</strong> — see <a href="#secrets" >Secrets</a>.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">headers:
  - to: X-Request-Source
    from: rudderstack</code></pre></div>
</div>

</div>

</div>

<div class="rs-ckey" id="path_params">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">path_params</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>array of objects</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Path segments appended to <code>api_url</code>, in the order listed.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>path</code> — JSONPath into the source event, or a plain token of up to 100 characters. A quoted value like <code>&quot;order&quot;</code> is rejected.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">path_params:
  - path: accounts
  - path: $.properties.accountId</code></pre></div>
</div>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="batching">Batching</h3><div class="rs-ckeys">
<div class="rs-ckey" id="is_batching_enabled">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">is_batching_enabled</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>boolean</code>
  </p><p class="rs-ckey__field">
    Default value:
    <code>false</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Collect events and send them as a JSON array — <code>[{event1},{event2},...]</code> — instead of one request per event.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Applies when <code>format</code> is <code>JSON</code>.</li>
<li>A batch is sent when it reaches <code>max_batch_size</code>, or after five seconds, whichever comes first.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="max_batch_size">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">max_batch_size</p>Required</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Largest number of events in one batch, written as a string rather than a number.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Required when <code>is_batching_enabled</code> is <code>true</code>.</li>
<li>Applies when <code>format</code> is <code>JSON</code>.</li>
<li>A string integer from <code>1</code> to <code>100</code>.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">is_batching_enabled: true
max_batch_size: &#34;50&#34;</code></pre></div>
</div>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="event-filtering">Event filtering</h3><div class="rs-ckeys">
<div class="rs-ckey" id="event_filtering">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">event_filtering</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Restricts which <code>track</code> events reach the destination, by event name.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>whitelist</code> — array of event names to allow; every other <code>track</code> event is dropped.</li>
<li><code>blacklist</code> — array of event names to drop; every other <code>track</code> event is allowed.</li>
<li>The two are mutually exclusive, and this the CLI does enforce — setting both fails validation. Omit the block entirely to filter nothing.</li>
<li>Each name is at most 100 characters, or a <code>{{ path || fallback }}</code> template.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">event_filtering:
  whitelist:
    - Order Completed
    - Order Refunded</code></pre></div>
</div>
<blockquote class="warning">
  <div class="tip-quote">
    
    <div class="tip-text"><p><a href="https://www.rudderstack.com/docs/sources/event-streams/sdks/event-filtering/" >Client-side event filtering</a> is applied by the device SDK, so it covers destinations reached in device mode. HTTP Webhook connects in <code>cloud</code> mode only, for every source type, which is why the dashboard doesn&rsquo;t offer these controls for it. Rudder CLI accepts and sends the keys regardless.</p>
<p>Filter events with a <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/manage-transformations/" >transformation</a> instead.</p>
</div>
  </div>
</blockquote>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="per-source-keys">Per-source keys</h3><p>Both keys are objects keyed by the local source type — the tokens listed under <a href="#source-types" >Source types</a>. A key naming a source type this destination doesn&rsquo;t support fails validation.</p>
<div class="rs-ckeys">
<div class="rs-ckey" id="connection_mode">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">connection_mode</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Maps each source type you connect to the mode its events reach the endpoint in, using the modes in <a href="#source-types" >Source types</a>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>An entry is required for each source type you connect — see <a href="#connect-a-source" >Connect a source</a>.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">connection_mode:
  web: cloud
  cloud: cloud</code></pre></div>
</div>

</div>

</div>

<div class="rs-ckey" id="consent_management">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">consent_management</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Consent provider configuration per source type. The entry shape, accepted providers, and the rules on <code>resolution_strategy</code> and <code>consents</code> are shared across all destination types — see <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/#consent-management" >Consent management</a>.
</p>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="source-types">Source types</h2><p>HTTP Webhook accepts events from these source types in the mentioned connection modes:</p>
<table>
<thead>
<tr>
<th>Source type</th>
<th>Connection mode</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>android</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>android_kotlin</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>ios</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>ios_swift</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>web</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>unity</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>react_native</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>flutter</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>cordova</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>cloud</code></td>
<td><code>cloud</code></td>
</tr>
<tr>
<td><code>warehouse</code></td>
<td><code>cloud</code></td>
</tr>
</tbody>
</table>
<p>Every source type is <code>cloud</code> only — events reach the endpoint from RudderStack&rsquo;s servers, never in device mode.</p>
<p>Unlike most destination types, HTTP Webhook accepts <code>warehouse</code>, the token a <a href="https://www.rudderstack.com/docs/sources/reverse-etl/" >Reverse ETL source</a> resolves to.</p>

<html lang="en">
<blockquote class="info">
  <div class="tip-quote">
    
    <div class="tip-text">The dashboard additionally offers HTTP Webhook to AMP and Shopify sources. Rudder CLI doesn&rsquo;t manage those connections, so <code>amp</code> and <code>shopify</code> are invalid here.</div>
  </div>
</blockquote>

</html>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="connect-a-source">Connect a source</h2><p>An event stream connection to this destination is checked against two rules at <code>validate</code> time.</p>
<p><strong>The source&rsquo;s type must be supported.</strong> A source&rsquo;s type resolves to one of the tokens above before the check — a JavaScript source resolves to <code>web</code>, and webhook and server-side SDK sources resolve to <code>cloud</code>. An unsupported type reports:</p>
<div class="rs-code">
  <div class="rs-code__head"><button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-text" data-lang="text">destination &#39;orders-webhook-prod&#39; (type &#39;http&#39;) does not support source &#39;my-source&#39;:
source type &#39;amp&#39; is not among supported source types: android, android_kotlin, ...</code></pre></div>
</div>
<p><strong>The destination config must carry a <code>connection_mode</code> entry for that source type.</strong> This lives on the destination spec, not on the <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/yaml-connections/" >connection spec</a>. Without it:</p>
<div class="rs-code">
  <div class="rs-code__head"><button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-text" data-lang="text">destination &#39;orders-webhook-prod&#39; config has no &#39;connection_mode&#39; entry for source type &#39;web&#39;</code></pre></div>
</div>
<p>HTTP Webhook needs no additional config keys to connect a source of any type.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="secrets">Secrets</h2><p>Rudder CLI treats six keys as secrets: <code>username</code>, <code>password</code>, <code>bearer_token</code>, <code>api_key_name</code>, <code>api_key_value</code>, and every <code>headers</code> entry&rsquo;s <code>from</code> value. Write each as a <code>{{ .VAR }}</code> reference and supply the value at apply time:</p>
<div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">config:
  auth: apiKeyAuth
  api_key_name: &#34;{{ .WEBHOOK_API_KEY_NAME }}&#34;
  api_key_value: &#34;{{ .WEBHOOK_API_KEY }}&#34;
  headers:
    - to: X-Request-Source
      from: &#34;{{ .WEBHOOK_HEADER_VALUE }}&#34;</code></pre></div>
</div>
<div class="rs-code">
  <div class="rs-code__head">bash<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">export RUDDER_WEBHOOK_API_KEY=&#34;...&#34;
rudder-cli apply

# or
rudder-cli apply --var-file secrets.vars.yaml</code></pre></div>
</div>
<p>Note that:</p>
<ul>
<li><strong><code>api_key_name</code></strong> is the header name, not the key itself, and the dashboard stores it in the clear. Rudder CLI masks it anyway, on the grounds that a custom header name identifies the endpoint&rsquo;s auth scheme.</li>
<li><strong><code>headers</code> values</strong> are masked as a group, because a header is a common place to put a signing secret. If you use headers only for constants, they&rsquo;re still written back as <code>{{ .VAR }}</code> placeholders on import, and you&rsquo;ll need to fill each one in.</li>
<li><code>rudder-cli import</code> writes every one of these keys back as a <code>{{ .VAR }}</code> placeholder rather than its value, since the API doesn&rsquo;t return secrets. Fill the placeholders in before the first apply.</li>
</ul>
<p>See <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/variable-substitution/" >How to Use Variable Substitution in Rudder CLI</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="see-more">See more</h2><ul>
<li><a href="https://www.rudderstack.com/docs/destinations/http-webhook/setup-guide/" >HTTP Webhook Destination</a> for the mapping UI, worked payload examples, and FAQ</li>
<li><a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/" >Destination Type Reference for Rudder CLI</a> for the rules shared across destination types</li>
<li><a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/yaml-destinations/" >Destination YAML Reference</a> for the spec envelope</li>
</ul>

