Skip to content
POST /observability-destination/{id}/test

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

idstring
required·

Logging destination id (ldst_…).

Request Body

configobject

Non-secret provider settings.

log_typesstring[]

Which slices of the audit trail to forward: tool_call = MCP/tool executions, auth = membership, role, invite and credential events, admin = everything else.

Possible values:
tool_callauthadmin
sitestring

Datadog site.

Possible values:
us1us3us5euap1
tagsstring[]
secretsobject

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_keystring

Datadog API key — required for datadog.

shared_keystring

Sentinel shared key.

tokenstring

Splunk HEC token.

Response Body

errorstring,null

Failure detail; null when ok is true.

okboolean
statusinteger,null

HTTP status returned by the provider, when there was one.

curl -X POST 'https://api.elaichi.ai/observability-destination/<id>/test' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"config":{},"secrets":{}}'
const body = {
  "config": {},
  "secrets": {}
};

const response = await fetch('https://api.elaichi.ai/observability-destination/<id>/test', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

const data = await response.json();
console.log(data);
import os
import requests

url = "https://api.elaichi.ai/observability-destination/<id>/test"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}
payload = {
    "config": {},
    "secrets": {}
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())