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

Get Blocks

< Alle Themen
 
Returns a page of block status changes. This can either be the contact has been blocked or unblocked. You can filter by the old and new status or you can get the number of block status changes only.

GET https://api.maileon.com/1.0/reports/blocks
GET https://api.maileon.com/1.0/reports/blocks/count

Attributes

ParameterDefaultDescription
from_dateIf provided, only the blocks after or equal (including) the given date will be returned. The value of from_date must be a numeric value representing a point in time milliseconds after January 1, 1970 00:00:00
to_dateIf provided, only the blocks before (excluding) the given date will be returned. The value of to_date must be a numeric value representing a point in time milliseconds afterJanuary 1, 1970 00:00:00
idsMultivalued parameter to filter the results by contacts. Each value must correspond to a contact id.
emailsMultivalued parameter to filter the results by email addresses.
eidsMultivalued parameter to filter the results by external ids. Each value must correspond to a contacts external id
reasonsMultivalued parameter to filter the blocks by reasons. Possible values are: blacklist and bounce_policy .
old_statusFilter by old status, valid: allowed, blocked
new_statusFilter by new status, valid: allowed, blocked
exclude_anonymous_blockstrueSupported values: true / false. If set to true, the blocks that cannot be mapped to contacts because of permission types or because unsubscriptions are omitted in the results
standard_fieldMultivalued parameter to query the value of a standard contact field.
custom_fieldMultivalued parameter to query the value of a custom contact field.
page_index1The index of the result page. The index must be greater or equal to 1.
page_size100The maximum count of items in the result page. If provided, the value of page_size must be in the range 1 to 1000.
 

Example

GET https://api.maileon.com/1.0/reports/blocks?page_index=1&page_size=10&emails=local210%40baunzt.de&standard_field=TITLE&exclude_anonymous_blocks=false
Authorization: Basic XXXXXXXXXXXXXXX

Status: 200 OK
Content-Type: application/vnd.maileon.api+xml
Link: …
X-Pages: …
X-Items: …

<blocks>
    <block>
        <contact>
            <id>24095866</id>
            <email>local210@baunzt.de</email>
            <permissionStatus>available</permissionStatus>
            <permissionType>doi+</permissionType>
            <created>2014-03-07 10:59:22.0</created>
            <updated>2014-08-01 17:35:56.0</updated>
            <external_id nil="true"/>
            <standard_fields>
                <field><name>TITLE</name><value nil="true"/></field>
            </standard_fields>
            <custom_fields/>
        </contact>
        <timestamp>2014-07-10 17:46:46</timestamp>
        <old_status>allowed</old_status>
        <new_status>blocked</new_status>
        <reason>blacklist</reason>
    </block>
</blocks>

 

Inhaltsverzeichnis

Bleiben Sie Up-to-Date und profitieren Sie von spannenden News und Aktionen.

Maileon ist ein Produkt der XQueue GmbH

Newsletter Pop-Up