Claude Platform Docs

テレメトリ送信先をテスト

$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

anthropic.test という名前のテストスパンを1つ、登録済みのヘッダーとともに送信先へ再試行なしで1回送信し、送信先の応答を報告します。送信先が 2xx ステータスで応答したかどうかにかかわらず、レスポンスは 200 です。その result のタイプは success、または failure で、後者の場合は理由が error に含まれます。送信先の設定、state、delivery_health は変更されません。無効な送信先もテストできます。1つの送信先のテストの間隔は10秒空けてください。それより早いリクエストにはステータス 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.

テレメトリ送信先をテスト
<?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"
}