# 6. How to Configure Affiliate Hub

The **Configurations** tab within each affiliate hub lets you manage two key entities for tracking and routing leads:

1. **Postbacks** – callback URLs for registration and first-trade events
2. **Snippets** – embeddable code to drive new sign-ups

The **Postbacks** entity allows you or your partners to control and track user traffic and activity within our CRM system. Once a user registers in our CRM, a request is sent to the configured postback URL. Similarly, when the user completes their first transaction, a request is also sent to the configured postback URL.

You can add postback URLs for two types of activity:

1. **FTD (First Time Deposit)**
2. **Registration**

##### **To add a new postback**:

Postbacks let you notify external systems whenever a user registers or makes their very first transaction (FTD). You configure them for each affiliate hub on the **Configurations** tab:

1. **Open Your Affiliate Hub’s Configurations:** In the left nav, click **Affiliate Hub**, select the affiliate hub you want, then choose the **Configurations** tab at the top.
2. **Enable the Postbacks Panel:** Flip the toggle at the top of the **Postbacks** card to “on” if it isn’t already.
3. **Enter the Callback URL:** In the **Postback URL** field, type the full HTTPS endpoint your system will expose.

Use mustache placeholders (`{{…}}`) to inject dynamic client data. Only these tokens are allowed:

<div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary" id="bkmrk-%7B%7Bemail%7D%7D-%E2%86%92-client%E2%80%99s"><div class="overflow-y-auto p-4" dir="ltr">`{{email}}    → client’s email address  {{status}}   → “Registration” or “FTD”  {{subID}}    → the Sub ID you entered on the client profile  {{affiliateID}} → the client’s Affiliate ID  {{sourceID}} → the tracking <span class="hljs-built_in">source</span> identifier  `</div></div>Hover the ℹ️ icon next to **Fields** to view the complete, supported placeholder list. Any other token (e.g. `{{phone}}`) will fail frontend validation (red warning) and be passed through as literal text if it somehow reaches the backend.

**Select the Trigger Event:** From the dropdown to the right of the URL, pick **Registration** (fires on every new signup) or **FTD** (fires once at first transaction).

**Add the Postback:** Click the green **➕** button to insert your URL+event into the active list.

**Confirm &amp; Save:** You can immediately click away or hit the affiliate hub’s **Save** button.

A *“Success! Affiliate hub configuration successfully updated”* toast appears once your new postback is accepted.

##### **Editing or Disabling**

**Edit** any existing entry by clicking its ✏️ icon, updating the URL or event type, then saving.

**Disable** temporarily by flipping the entry’s toggle switch off—no removal needed.

The **Snippet** entity provides customizable code that you can insert into your website or social media page to attract clients to the platform. You can configure the code in various formats through Settings &gt; Texts &gt; Code Snippets.

##### **To get a snippet:**

Snippets are blocks you can embed on websites or ads to route new leads directly into this affiliate hub.

Click **Copy** to save the code to your clipboard.

Once highlighted, click **Copy** to grab the snippet text.

You can also get a snippet from the main Affiliate Hub page. To do that:

1. Navigate to the **Affiliate Hubs** tab.
2. Click on the **Show snippet** icon near the specific affiliate hub.
3. A drawer with the snippet will appear.

<p class="callout info">**Tip:** All changes take effect immediately for new leads. Existing leads retain their original source/postback assignments unless you manually update them. By carefully configuring your **Sources**, **Postbacks**, and **Snippets**, you ensure accurate lead attribution and seamless integration with external systems</p>