Create a logging destination
/observability-destination
Requires `logging:manage` and the `logging_destinations` feature. For `datadog`, `config.site` and `secrets.api_key` are both required. Verify delivery with `POST /observability-destination/{id}/test` before relying on it.
Request Body
Non-secret provider settings.
Which slices of the audit trail to forward: tool_call = MCP/tool executions, auth = membership, role, invite and credential events, admin = everything else.
tool_callauthadmin
Datadog site.
us1us3us5euap1
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.
Datadog API key — required for datadog.
Sentinel shared key.
Splunk HEC token.
Immutable after creation.
datadogsplunk_hecsentinel
Response Body
Non-secret provider settings.
Which slices of the audit trail to forward: tool_call = MCP/tool executions, auth = membership, role, invite and credential events, admin = everything else.
tool_callauthadmin
Datadog site.
us1us3us5euap1
Logging destination id (ldst_…).
Paused destinations keep their config but forward nothing.
okfailednull
Immutable after creation — to switch providers, create a new destination.
datadogsplunk_hecsentinel
curl -X POST 'https://api.elaichi.ai/observability-destination' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"type":"datadog","name":"your_name","is_active":true,"config":{},"secrets":{}}'const body = {
"type": "datadog",
"name": "your_name",
"is_active": true,
"config": {},
"secrets": {}
};
const response = await fetch('https://api.elaichi.ai/observability-destination', {
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"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
payload = {
"type": "datadog",
"name": "your_name",
"is_active": True,
"config": {},
"secrets": {}
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())