26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Delete all keys (v2)

Delete all keys (v2)

DELETE  /api/v2/billing/intercoms/{intercom}/keys/all

With the release of request version v2, version v1 is being moved to legacy.
For new integrations, use the current v2.
Version v1 remains available to support existing integrations.

Deletes all intercom keys. Deletion is delivered to the panel through a queue.

Method parameters

int intercom  required , Intercom ID (in the URL)

204  No Content

Successful response

404  Not Found

Intercom not found

cURL
Bash
curl -k --request DELETE \
	--url 'https://your-domain/api/v2/billing/intercoms/{intercom}/keys/all' \
	--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' => 'DELETE',
		'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}/keys/all', false, $context);