Claude Platform Docs

Testa una destinazione di telemetria

$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

Invia uno span di test, denominato anthropic.test, alla destinazione con i suoi header registrati, una sola volta e senza nuovi tentativi, e riporta la risposta della destinazione. La risposta è 200 indipendentemente dal fatto che la destinazione abbia risposto con uno stato 2xx: il suo result ha il tipo success, oppure il tipo failure con il motivo in error. La configurazione, lo state e il delivery_health della destinazione non cambiano. È possibile testare anche una destinazione disabilitata. Attendi 10 secondi tra un test e l'altro della stessa destinazione; una richiesta che arriva prima può ricevere lo stato 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.

Testa una destinazione di telemetria
<?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"
}