List events
v2
get
/2/events
This endpoint allows you to retrieve all the opened events.
Response Body
application/json
resultstring
Possible values:successerrorasynchronous
Result of the HTTP request
Examples:success
dataarrayofEvent
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/2/events', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":[{"id":414,"url":"ed4px6RxMG","type":"enhancement","status":"terminated","description":{"title":"Network maintenance","translations":[{"title":"Network maintenance","body":"This maintenance is intended to increase the capacity of our network infrastructure in order to accompany the growth of our activities.","language":"en"}]},"comments":"example","services":[{"id":1,"name":"hosting"}],"started_at":1743184765,"ended_at":1742969969}]}