Claude Platform Docs

Tester une destination de télémétrie

$client->beta->organization->telemetryDestinations->test(string destinationID, ?list<AnthropicBeta> betas): TelemetryDestinationTestResponse
POST/v1/organizations/telemetry_destinations/{destination_id}/test
Requires anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers

Envoyer un span de test, nommé anthropic.test, à la destination avec ses en-têtes enregistrés, une seule fois et sans nouvelle tentative, et indiquer la réponse de la destination. La réponse est 200, que la destination ait répondu ou non avec un statut 2xx : son result est de type success, ou de type failure avec la raison dans error. La configuration, le state et le delivery_health de la destination ne changent pas. Une destination désactivée peut également être testée. Attendez 10 secondes entre deux tests d'une même destination ; une requête arrivant plus tôt peut recevoir le statut 429.

Parameters
destinationID: string⁠Path parameter

ID of the destination to test (starts with tdst_).

betas?: optional list<AnthropicBeta>⁠Header parameter

This endpoint is in beta: requests must send telemetry-destinations-2026-08-11 in this header.

Returns
class TelemetryDestinationTestResponse { $type = 'telemetry_destination_test'; $result; }
"telemetry_destination_test" type

How the test went: success when the destination answered with a 2xx status, else failure with the reason.

Tester une destination de télémétrie
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;

$client = new Client(apiKey: 'my-anthropic-api-key');

$betaTelemetryDestinationTestResponse = $client
  ->beta
  ->organization
  ->telemetryDestinations
  ->test('destination_id', betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24]);

var_dump($betaTelemetryDestinationTestResponse);
Returns Examples
Response 200
{
  "result": {
    "type": "success"
  },
  "type": "telemetry_destination_test"
}