Claude Platform Docs

Telemetrieziel testen

$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

Sendet einen Test-Span namens anthropic.test mit den registrierten Headern an das Ziel, einmalig und ohne Wiederholungen, und meldet die Antwort des Ziels. Die Antwort ist 200, unabhängig davon, ob das Ziel mit einem 2xx-Status geantwortet hat: Ihr result hat den Typ success oder den Typ failure mit dem Grund in error. Die Konfiguration, state und delivery_health des Ziels ändern sich nicht. Auch ein deaktiviertes Ziel kann getestet werden. Warte 10 Sekunden zwischen Tests desselben Ziels; eine früher eintreffende Anfrage kann mit Status 429 beantwortet werden.

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.

Telemetrieziel testen
<?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"
}