Send Test Notification
const url = 'https://example.com/settings/notifications/test/';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/settings/notifications/test/ \ --header 'Authorization: Bearer <token>'Send a canned test notification through each configured channel (admin only).
Mirrors detect_embedding_dims: admin-gated probe that reports per-channel reachable/error in a 200 body without leaking secrets or raising 5xx on a bad channel (NOTIF-06 / T-1229-08 / T-1229-09 / T-1229-10).
Per-channel approach (not EnvConfiguredNotificationSink.deliver) is used so each channel’s success/failure is captured in its own NotificationTestChannelResult for display in the admin UI.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful Response
Response for POST /settings/notifications/test/ (NOTIF-06).
Always returns HTTP 200 — a channel delivery failure is captured in the
per-channel channels list rather than as a 5xx. Never contains secret
values (T-1229-09 / NOTIF-05).
object
Per-channel delivery results. Empty when no channel is configured.
Per-channel result from POST /settings/notifications/test/.
The error field contains only the exception type name and a short
safe message — never the SMTP password, webhook URL, or webhook secret
(T-1229-09 / NOTIF-05).
Human-readable summary of the test result.
True if at least one channel successfully delivered the test notification.
Example generated
{ "channels": [ { "channel": "example", "error": "example", "ok": true } ], "message": "example", "sent": true}Bad request — invalid query parameters or payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks access to this resource
Not found
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request