---
title: "Dynamic URL Templates"
description: "Use `{{ field.path }}` placeholders in endpoint URLs — resolved per-event against the live payload."
url: "https://wpwebhooks.org/docs/dynamic-url-templates/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / Dynamic URL Templates

Feature Pro since v1.7.0

# Dynamic URL Templates

Use \`{{ field.path }}\` placeholders in endpoint URLs — resolved per-event against the live payload.

Add `{{ field.path }}` tokens anywhere in the webhook URL. At dispatch time, each token is resolved against the outgoing (post-mapping) payload using dot-notation. If the token is not found in the mapped payload, the original pre-mapping payload is consulted as fallback. Values are `rawurlencode()`'d before substitution.

## Example URLs

`https://api.hubapi.com/crm/v3/objects/deals/{{ _hs_deal_id }}` — injects the deal ID per event. `https://api.example.com/users/{{ user.id }}/orders/{{ order.id }}` — multiple tokens resolved independently.

/ Related

[Dynamic URLs via Filter](https://wpwebhooks.org/docs/dynamic-urls/)[fswa\_webhook\_url](https://wpwebhooks.org/docs/fswa-webhook-url/)[Code Glue](https://wpwebhooks.org/docs/code-glue/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](https://wpwebhooks.org/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"Dynamic URL Templates — Feature — Webhook Actions Docs","description":"Use `{{ field.path }}` placeholders in endpoint URLs — resolved per-event against the live payload.","url":"https://wpwebhooks.org/docs/dynamic-url-templates/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
