# How the unsubscribe link works?

<figure><img src="/files/iyjHVpyrghnfF2grmmB7" alt=""><figcaption></figcaption></figure>

## What is an unsubscribe link?

An unsubscribe link is a clickable link included in your email that allows recipients to **opt out of receiving future emails** from you.

When a customer clicks this link, they are removed from a specific email list.

## Why is it important?

Including an unsubscribe link is essential for several reasons:

* Legal compliance (e.g., CAN-SPAM, GDPR, and other email regulations)
* Improved deliverability by reducing spam complaints
* Better sender reputation
* Respecting customer preferences
* Cleaner email lists with more engaged subscribers

Without an unsubscribe option, emails may be marked as spam, which can harm your domain reputation.

## How to add an unsubscribe link

{% stepper %}
{% step %}

### Open the email template builder

Go to the **Email Template Builder**, highlight the text you want to insert a link into, then click the <img src="/files/a3g1aXSfEAAxm22hArsv" alt="" data-size="line"> icon in the text editor.

<figure><img src="/files/HIkde3VJTcWClDHPRtaq" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Select the unsubscribe link

Select the **Unsubscribe link (global)** type, then click Update.

<figure><img src="/files/JB0mBqrityTyEe14VobM" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### You're all set - the unsubscribe link is now added ✨

The unsubscribe link will now appear in your email content.

Once saved, it will automatically generate a working unsubscribe link in the email footer when sent to customers.

<figure><img src="/files/Wxhg6p10n24et1rYpD9D" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## When customers use the unsubscribe link

{% hint style="info" %}
When a customer clicks the unsubscribe link in your email:

* They are redirected to a success page.
* Their email address is automatically removed from the workflows.
* They will no longer receive that type of email.
  {% endhint %}

<figure><img src="/files/ZReZtZyLAFZKPW4kC5qA" alt=""><figcaption></figcaption></figure>

***

#### 📩 **Need help?**

We’re here to make your XFlow experience smooth and successful.\
Our support team is always ready to assist you—no matter how big or small your question is.

<a href="https://admin.shopify.com/apps/xflow?chat=true&#x26;utm_source=foxecom&#x26;utm_medium=help_center_xflow_how_the_unsubscribe_link_works&#x26;utm_campaign=cta_button&#x26;utm_term=chat_now" class="button primary" data-icon="comment-lines">Chat now</a> <a href="mailto:contact@help.xflow.so" class="button secondary" data-icon="envelopes">Message us</a>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.foxecom.com/xflow-app/email-templates/email-templates-faqs/how-the-unsubscribe-link-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
