26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Synchronize keys from the panel (v2)

Synchronize keys from the panel (v2)

POST  /api/v2/billing/intercoms/{intercom}/sync-keys

Starts reading the key list from the panel in the background and saves the keys to the platform. The response is returned immediately; keys appear in "List keys (v2)" as they are processed.

Method parameters

int intercom  required , Intercom ID (in the URL)

204  No Content

Synchronization started

404  Not Found

Intercom not found

cURL
Bash
curl -k --request POST \
	--url 'https://your-domain/api/v2/billing/intercoms/{intercom}/sync-keys' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "intercom": 0
}'
PHP
PHP
$data = array (
  'intercom' => 0,
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v2/billing/intercoms/{intercom}/sync-keys', false, $context);