Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview

Send a test notification webhook

Send a synthetic signed notification through the SSRF-protected outbound client. The optional secret is never stored or returned. Needs notifications:manage, which no key receives by default. A console session or an OAuth connection also needs the admin role.

POST/api/v2/notifications/preferences/test-webhook
Authorization
AuthorizationBearer token (Anlyon API key) · headerrequired

Workspace API key sent as Authorization: Bearer <key>.

or
better-auth.session_tokenAPI key · cookierequired

Browser session used by dashboard-only operations.

Header parameters
X-Request-Idstring

Optional caller correlation ID. Unsafe or oversized values are replaced.

max length 128
Request body
requiredapplication/json
webhookUrlstring<uri>required
webhookSecretstring
Responses
200

Mutation completed and a human-readable outcome was returned.

successbooleanrequired
Allowed:true
dataobjectrequired
Show properties
messagestringrequired
400

Bad Request - Invalid input data

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
403

Authenticated credential lacks the required scope or workspace access.

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
429

Too Many Requests - Rate limit exceeded

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.anlyon.com/api/v2/notifications/preferences/test-webhook' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "webhookUrl": "http://example.com",
  "webhookSecret": "string"
}'
Response
{
  "success": true,
  "data": {
    "message": "string"
  }
}