Send a test event to a webhook
POST
/webhooks/test
const url = 'https://your-server.example/api/webhooks/test';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"url":"https://example.com","kind":"example","secret":"example"}'};
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://your-server.example/api/webhooks/test \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "url": "https://example.com", "kind": "example", "secret": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
url
required
string format: uri
kind
Generic, slack, or discord
string
secret
string
Example generated
{ "url": "https://example.com", "kind": "example", "secret": "example"}Responses
Section titled “Responses”Result.
Media typeapplication/json
object
ok
boolean
status
integer
error
string
Example generated
{ "ok": true, "status": 1, "error": "example"}