Contact blocklist

Use this method to add invalid contacts to the blocklist or remove them from it.

How it works

You change the blocklist with a POST request. The request URL and the fields it accepts are configured in Maestra.

POST https://api.maestra.io/v3/operations/bulk?endpointId={unique ID of your website or other endpoint}&operation=ImportFakeContacts&csvCodePage=65001&transactionId={idempotency key as a GUID}
Content-Type: text/csv;charset=utf-8
Accept: application/json
Authorization: SecretKey {your secret key}

Query parameters

  • endpointId — the endpoint whose integration settings are used for the request. You set this value in Maestra.
  • transactionId — an idempotency key that stops the same request from running twice. It must be a GUID (version 4 recommended). If you send a request with a key that's already been used, the response returns the TransactionAlreadyProcessed status.

CSV columns

ColumnDescription
ContactTypeThe type of contact. One of:
  • Email — an email address
  • MobilePhone — a mobile phone number
  • ExternalIdentity — a unique identifier; set its system name in CustomFieldSystemName
  • Device — a device ID
  • DiscountCardNumber — a discount card number
ContactThe contact itself
CustomFieldSystemNameThe identifier's system name. Required when ContactType is ExternalIdentity

Example: add contacts to the blocklist

POST https://api.maestra.io/v3/operations/bulk?endpointId={unique ID of your website or other endpoint}&operation=ImportFakeContacts&csvCodePage=65001
Content-Type: text/csv;charset=utf-8
Accept: application/json
Authorization: SecretKey {your secret key}

Contact;ContactType;CustomFieldSystemName
[email protected];Email;
[email protected];Email;
17777777777;MobilePhone;
18888888888;MobilePhone;
111111;ExternalIdentity;WebsiteID
844fcf8b-783c-4297-a0ad-ec5ee966a962;Device;

Example: remove contacts from the blocklist

POST https://api.maestra.io/v3/operations/bulk?endpointId={unique ID of your website or other endpoint}&operation=DeleteFakeContacts&csvCodePage=65001
Content-Type: text/csv;charset=utf-8
Accept: application/json
Authorization: SecretKey {your secret key}

Contact;ContactType;CustomFieldSystemName
[email protected];Email;
[email protected];Email;
18005553535;MobilePhone;
18004453535;MobilePhone;
111111;ExternalIdentity;WebsiteID
844fcf8b-783c-4297-a0ad-ec5ee966a962;Device;