Claude Platform Docs

Uji Tujuan Telemetri

$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

Kirim satu span uji, bernama anthropic.test, ke tujuan dengan header terdaftarnya, sekali dan tanpa percobaan ulang, lalu laporkan jawaban tujuan. Responsnya 200 baik tujuan menjawab dengan status 2xx maupun tidak: result-nya memiliki tipe success, atau tipe failure beserta alasannya di error. Konfigurasi, state, dan delivery_health tujuan tidak berubah. Tujuan yang dinonaktifkan juga dapat diuji. Tunggu 10 detik di antara pengujian satu tujuan; permintaan yang datang lebih cepat dapat dijawab dengan status 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.

Uji Tujuan Telemetri
<?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"
}