# Get unsubscribed customer

### Request&#x20;

<mark style="color:green;">**GET**</mark> &#x20;

{% code overflow="wrap" %}

```
https://interface.experience-hotel.com/api/xp-unsubscribe/retrieve-opt-out?since=2024-03-13
```

{% endcode %}

| Param  | Format     | Required |
| ------ | ---------- | -------- |
| since  | YYYY-MM-DD | Required |
| cursor | token      | optional |

Return a list of 250 customers.&#x20;

**Pagination**&#x20;

If the query has more than 250 customers, you will find a `next_page_url` with a URL containing a cursor parameter.&#x20;

You can use this "cursor" parameter in your request to retrieve the next page.&#x20;

{% code overflow="wrap" %}

```url
https://interface.experience-hotel.com/api/xp-unsubscribe/retrieve-opt-out?since=2024-03-13&cursor=eyJjdXN0b21lcl9jb25maWcuaWQiOjE0NDI5NTE5LCJfcG9pbnRzVG9OZXh0SXRlbXM468qds4f
```

{% endcode %}

### Response

Status Code 200 OK

{% code title="JSON" overflow="wrap" %}

```json
{
    "recipients": [
        {
            "email": "email@test.com",
            "mail_ban": "2022-01-01 10:10:09"
        },
        {
            "email": "email2@test.com",
            "mail_ban": "2022-01-01 10:35:08",
            "marketing_decline": "2021-12-26 15:04:06",
            "sms_ban": "2021-06-03 10:15:07"
        },
        {
            "email": "email3@test.com",
            "mail_ban": "2022-01-01 10:27:38",
            "marketing_decline": "2021-06-11 19:43:31"
        },
        {
            "email": "email4@test.com",
            "mail_ban": "2022-01-01 11:00:56",
            "marketing_decline": "2021-08-31 15:28:19"
        }
    ],
    "next_page_url": "https://interface.experience-hotel.com/api/xp-unsubscribe/retrieve-opt-out?cursor=eyJjdXN0b21lcl9jb25maWcuaWQiOjE0NDI5NTE5LCJfcG9pbnRzVG9OZXh0SXRlbXM468qds4f"
}
```

{% endcode %}


---

# 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://experience-crm.gitbook.io/experience-crm-api/mailing-list/unsubscribe-opt-out/get-unsubscribed-customer.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.
