Claude Platform Docs

Testa una destinazione di telemetria

$ ant beta:organization:telemetry-destinations test
POST/v1/organizations/telemetry_destinations/{destination_id}/test

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
--destination-id: string⁠Path parameter

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

--beta: optional array of AnthropicBeta⁠Header parameter

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

Returns
beta_telemetry_destination_test_response: object{ type: "telemetry_destination_test", result }

The result of one test span sent to a destination.

type: "telemetry_destination_test"

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

One of the following:
beta_telemetry_destination_test_success: object{ type: "success" }

The destination answered the test span with a 2xx status.

type: "success"
beta_telemetry_destination_test_failure: object{ type: "failure", error }

The test span was not delivered.

type: "failure"
error: string

A message that describes why the test span was not delivered, including the HTTP status code when the destination returned one. Examples: HTTP error (status 403), timeout, TLS failure. It has the same form as the destination's delivery_health.last_error and never contains the destination's response body, any header value, a network address, or TLS details.

Testa una destinazione di telemetria
ant beta:organization:telemetry-destinations test \
  --api-key my-anthropic-api-key \
  --destination-id destination_id
Returns Examples
Response 200
{
  "result": {
    "type": "success"
  },
  "type": "telemetry_destination_test"
}