Delete subscribers
v1
delete
/1/newsletters/{domain}/subscribers
Delete multiple subscribers.
Path parameters
domain
requiredinteger
Unique identifier of the Domain
Examples:19322
Body Parameters
application/jsonfilterobject
segmentstring
Filter subscribers with a segment
Examples:example
selectrequiredobject
Response Body
application/json
resultrequiredstring
Possible values:successerrorasynchronous
Result of the HTTP request
Examples:success
datastring
Example request
<?php
use GuzzleHttp\Client;
$client = new Client();
$headers = [
'Authorization' => 'Bearer YOUR-TOKEN-HERE',
'Content-Type' => 'application/json'
];
$body = '{
"select": {
"all": true,
"exclude": [],
"include": []
}
}';
$request = new Request('DELETE', 'https://api.infomaniak.com/1/newsletters/{domain}/subscribers', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":"example"}