Messaging API
3 operations. Back to the API overview. Examples use synthetic data.
Messaging test
POST /admin/v1/messaging/test
Needs the permission: config:write.
Request body
{}Response 200
{}Other responses
400Bad Request401Authentication required403Not permitted503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/messaging/test"Stores a webhook URL pasted in the console (alerts only) as a Secret Manager version and returns the version name and the last four characters
POST /admin/v1/messaging/webhook-url
Stores a webhook URL pasted in the console (alerts only) as a Secret Manager version and returns the version name and the last four characters; the URL itself is never stored in the configuration, logged, audited or returned. POST /admin/v1/messaging/webhook-url administrator (config:write) {"platform": "microsoft_teams"|"slack"|"google_chat", "url": "https://..."} -> {"webhook_url_secret": "projects/.../versions/N", "webhook_url_last4": "abcd"}
Needs the permission: config:write.
Request body
{}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
webhook_url_last4 | any | optional | - |
webhook_url_secret | any | optional | - |
{
"webhook_url_last4": {},
"webhook_url_secret": {}
}Other responses
400Bad Request401Authentication required403Not permitted503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/messaging/webhook-url"Destroys a pasted URL's version that no alert rule or notice route uses (a Replace or Remove the administrator did not save, or a cancelled dialog)
DELETE /admin/v1/messaging/webhook-url
Destroys a pasted URL's version that no alert rule or notice route uses (a Replace or Remove the administrator did not save, or a cancelled dialog). DELETE /admin/v1/messaging/webhook-url administrator (config:write) {"webhook_url_secret": "projects/.../versions/N"}
Needs the permission: config:write.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
removed | any | optional | - |
{
"removed": {}
}Other responses
400Bad Request401Authentication required403Not permitted409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request DELETE \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/messaging/webhook-url"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.