Files
Sentri-docs/API/v1/sources/inserve/GET Sync server subscriptions.md
Marco Mooij | DigiState 6cb842fa6d added meta tags to documents
2026-05-15 10:57:05 +02:00

1.4 KiB

title, publish
title publish
GET Sync server subscriptions true

This API call first executes the GET Sync cloud distributor action and then synchronizes all servers in an active or trial state to Inserve subscriptions. It creates or updates server subscriptions in Inserve if they do not exist or if the subscription name differ from those in Sentri. For this action the correct inserve product_codes should be defined at Portal Management > Sources > Inserve > Custom source data.

Location

/api/v1/sources/inserve/sync-server-subscriptions

Permissions required

servers RW

Body parameters

None.

Example Body (json)

None.

Example Request


$curl = curl_init();  
curl_setopt_array($curl, array(  
    CURLOPT_URL => 'https://sentri.nl/api/v1/sources/inserve/sync-server-subscriptions/',  
    CURLOPT_CUSTOMREQUEST => 'GET',  
    CURLOPT_RETURNTRANSFER => true,  
    CURLOPT_HTTPHEADER => [  
        "Authorization: Bearer <API your Bearer Token>",  
        "Accept: application/json",  
        "Content-Type: application/json"  
    ]  
));  
  
$response = curl_exec($curl);  
  
curl_close($curl);  
echo $response;

Example Response

"Sync is done successfully"

Known errors or issues.

None are known at the time If you do encounter issues and get an http code in return, check the response codes on this page.