---
title: "Send a sample trace"
method: POST
path: "/observability/destinations/{id}/sample"
tags: ["Gateway"]
---

# Send a sample trace

`POST /observability/destinations/{id}/sample`

## Request

- Base URL: `https://api.phaseo.app/v1`
- URL: `https://api.phaseo.app/v1/observability/destinations/{id}/sample`
- Auth: HTTP bearer

Sends a sample trace to a saved destination, with its messages unless the destination leaves prompts and outputs out. Owners and admins; settings:write required.

## Path parameters

- `id` string, uuid, required

## Response `200`

Send result

- ObservabilityDestinationTestResponse
  - `data` object, required
    - `ok` boolean
    - `status` string
    - `http_status` integer, nullable
    - `error` string, nullable

## Other responses

- `401`: Unauthorized
- `404`: Destination not found

## Changes

- **2026-10-28** `72ba9c856a2c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/phaseo/apis/phaseo-gateway-api/changes/observability/destinations/:id/sample/post.md)

---

[API](https://skmtc.dev/phaseo/apis/phaseo-gateway-api.md) - [All operations](https://skmtc.dev/phaseo/apis/phaseo-gateway-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phaseo/apis/phaseo-gateway-api/revisions/5ca9bb220d25?raw)
