---
title: "Send a test event to a logging destination"
method: POST
path: "/observability-destination/{id}/test"
tags: ["Logging destinations"]
---

# Send a test event to a logging destination

`POST /observability-destination/{id}/test`

## Request

- Base URL: `https://api.elaichi.ai`
- URL: `https://api.elaichi.ai/observability-destination/{id}/test`
- Auth: HTTP bearer

Sends a test event to a logging destination. Really delivers one synthetic admin event through the live forwarder and reports the outcome, updating `last_test_at`/`last_test_status`. Works on paused destinations. Optional `config`/`secrets` in the body are merged over the stored ones for this call only — nothing is saved — so edits can be verified before being written. Requires `logging:manage`.

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string

## Request body

- object
  - `config` object: Non-secret provider settings.
    - `site` 'us1' | 'us3' | 'us5' | 'eu' | 'ap1': Datadog site.
    - `tags` string[]
    - `log_types` string[]: Which slices of the audit trail to forward: `tool_call` = MCP/tool executions, `auth` = membership, role, invite and credential events, `admin` = everything else.
  - `secrets` object: Write-only credentials, stored encrypted and never returned. Sending `secrets` REPLACES the whole stored bag, so include every key the provider needs, not just the one you are changing.
    - `api_key` string: Datadog API key — required for `datadog`.
    - `token` string: Splunk HEC token.
    - `shared_key` string: Sentinel shared key.

## Response `200`

OK

- object
  - `ok` boolean
  - `status` integer, nullable: HTTP status returned by the provider, when there was one.
  - `error` string, nullable: Failure detail; null when `ok` is true.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `429`: Rate limited

---

[API](https://skmtc.dev/elaichi/apis/elaichi-api.md) · [All operations](https://skmtc.dev/elaichi/apis/elaichi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/elaichi/apis/elaichi-api/revisions/b22cfb7b6d15?raw)
