Send one test log record (and span) to a draft or the saved configuration
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/telemetry/test \
--header 'Content-Type: application/json' \
--data '
{
"settings": {},
"secrets": {}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({settings: {}, secrets: {}})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/telemetry/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/telemetry/test"
payload = {
"settings": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"vendor": "datadog",
"results": [
{
"signal": "logs",
"url": "<string>",
"ok": true,
"status": 123,
"ms": 123,
"error": "<string>"
}
]
}Broadcast Logs
Send one test log record (and span) to a draft or the saved configuration
With vendor (plus settings / secrets) in the body, tests that draft without saving it; a draft of the saved vendor may leave secrets blank to use the stored ones. With an empty body, tests the saved integration and records last_test_at / last_test_ok. Redirects are never followed.
POST
/
admin
/
api
/
projects
/
{pid}
/
telemetry
/
test
Send one test log record (and span) to a draft or the saved configuration
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/telemetry/test \
--header 'Content-Type: application/json' \
--data '
{
"settings": {},
"secrets": {}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({settings: {}, secrets: {}})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/telemetry/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/telemetry/test"
payload = {
"settings": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"vendor": "datadog",
"results": [
{
"signal": "logs",
"url": "<string>",
"ok": true,
"status": 123,
"ms": 123,
"error": "<string>"
}
]
}Path Parameters
Body
application/json
Non-secret fields of the chosen vendor (see vendors[].fields).
Show child attributes
Show child attributes
Secret fields. On PATCH and on a test of the same vendor, a blank or missing secret keeps the stored value.
Show child attributes
Show child attributes
Available options:
datadog, grafana_cloud, otel_collector, posthog, sentry