List all campaigns

v1
get
/1/newsletters/{domain}/campaigns

Returns a variety of information about one or more Campaigns

Path parameters

domain
requiredinteger

Unique identifier of the Domain

Examples:20013

Response Body

application/json
resultrequiredstring
Possible values:successerrorasynchronous

Result of the HTTP request

Examples:success
dataarrayofCampaign
totalinteger

Total number of items Added when using query parameter page

Examples:221
pageinteger

Number of the current page Added when using query parameter page

Examples:2
pagesinteger

Total number of pages Added when using query parameter page

Examples:15
items_per_pageinteger

Number of items per page Added when using query parameter page

Examples:15

Example request

                <?php
use GuzzleHttp\Client;

$client = new Client();
$headers = [
	'Authorization' => 'Bearer YOUR-TOKEN-HERE',
	'Content-Type' => 'application/json'
];

$request = new Request('GET', 'https://api.infomaniak.com/1/newsletters/{domain}/campaigns', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
            

Example response

application/json
                
                    
{
"result":"success",
"data":[
{
"id":83552,
"status":"example",
"lang":"example",
"subject":"example",
"preheader":"example",
"email_from_name":"example",
"email_from_addr":"example",
"tracking_link":true,
"tracking_opening":false,
"tracking_utm":[
],
"next_step":"example",
"started_at":1732116876,
"created_at":1731954978
}
],
"total":221,
"page":2,
"pages":15,
"items_per_page":15
}