Get Campaign

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

Returns a variety of information about one Campaign identifier

Path parameters

domain
requiredinteger

Unique identifier of the Domain

Examples:83673
campaign
requiredinteger

Unique identifier of the Campaign

Examples:30832

Query parameters

withstring
Possible values:statisticsadvanced_statisticsrecipientsthumbnailcontentdesignerpreviewlimits
Examples:preview

Response Body

application/json
resultrequiredstring
Possible values:successerrorasynchronous

Result of the HTTP request

Examples:success
dataCampaign

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/{campaign}', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
            

Example response

application/json
                
                    
{
"result":"success",
"data":{
"id":47248,
"status":"example",
"lang":"example",
"subject":"example",
"preheader":"example",
"email_from_name":"example",
"email_from_addr":"example",
"tracking_link":true,
"tracking_opening":true,
"tracking_utm":[
],
"next_step":"example",
"started_at":1731927948,
"created_at":1731768595
}
}