+49 69 83008980 service@xqueue.com
Benötigen Sie Hilfe?

Im Maileon Help-Center finden Sie umfassende Dokumentationen zu unserem System.

Beliebte Suchanfragen: Importe | Rest-API | Integrationen | SMS

Unsubscribe Contacts By Email

Sie sind hier:
This method unsubscribes the contact(s) with the given email address.
Please note: as XQueue takes correct handling of contact data very serious, we anonymize all data of unsubscribed contacts, which implies anonymizing clicks, opens, contact events, etc.. To avoid ubsubscription pages having long loading times, this is an asynchronous call, which means if you ask for the contact immediatelly after unsubscribing, there is a chance, that it is still there. If you ask a couple of seconds later, it will be gone./ So if this call does not return an error code, you should display that the contact has been unsubscribed, as once the call is registered, it is immediatelly persisted and will be processed in parallel.

DELETE https://api.maileon.com/1.0/contacts/email/:email/unsubscribe

Attributes

Parameter Default Description
nlaccountid Optional multivalued parameter to define in which accounts the email should be unsubscribed. Note: The accounts must belong to the owner of the API key in use, otherwise they will be ignored.
mailingId Optional parameter. If filled, the unsubscription event will be counted for the mailing with the given ID and will be visible in the reports. Note, that you will get an error ‚400 – Bad Request‘, if you specify a mailing that has not been sent yet (i.e. has not the state ’sealed‘ and is still a draft).
reason Optional multivalued array. If filled, the unsubscription reason will be submitted to maileon and saved in an anonymized table for reporting purposes. Unsubscription reasons have two layers of information (separated by a |, see examples): types and messages

1. Reason-Type. Valid values are:

– too_many_messages
– no_demand
– change_of_channel
– change_of_interest
– technical_reasons
– other

2. Reason-Message. Here you can provide a custom message, especially used for tyoe ‘other’ as e.g. type too_many_messages is automatically translated to a sounding representation in the report.

Hint: for easing you evaluating your results we suggest to limit the amount of possible values e.g. by providing a dropdown box with predefined values only.

Example 1

DELETE https://api.maileon.com/1.0/contacts/email/max-mustermann@xqueue.com/unsubscribe?reason=too_many_messages&reason=other|Changed+my+email+address
Content-type: application/vnd.maileon.api+xml
Accept: application/vnd.maileon.api+xml
Authorization: [XXX]
Status: 204 No Content
Content-Type: application/vnd.maileon.api+xml

Example 2

DELETE https://api.maileon.com/1.0/contacts/email/max-mustermann@xqueue.com/unsubscribe?nlaccountid=12&nlaccountid=19
Content-type: application/vnd.maileon.api+xml
Accept: application/vnd.maileon.api+xml
Authorization: [XXX]
Status: 204 No Content
Content-Type: application/vnd.maileon.api+xml
Inhaltsverzeichnis