Send a test event to this tenant's webhook destinations
const url = 'http://localhost:3000/operator/webhooks/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 http://localhost:3000/operator/webhooks/test \ --header 'Authorization: Bearer <token>'Fires one webhook.test event through the same pipeline as a real domain event,
so the operator can verify their endpoint receives what they expect. The event
type is deliberately distinct from anything the tenant’s handler ingests as a
domain event — a test shaped like activity.added would be processed by their
handler and create a phantom post in their production app.
owner only: this button calls the tenant’s real endpoint. Rate-limited at one
call per tenant per 10 seconds, the same margin as the spec’s other write-side
controls; an attacker with an owner cookie cannot use it as a stress test.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Test event enqueued.
object
Examplegenerated
{ "emitted": true}Invalid, expired, revoked, or absent token.
object
object
Present only for VALIDATION_FAILED.
object
Example
{ "error": { "code": "VALIDATION_FAILED" }}Caller lacks the test ability (member), or is platform staff with no tenant.
object
object
Present only for VALIDATION_FAILED.
object
Example
{ "error": { "code": "VALIDATION_FAILED" }}Rate limited — one test event per tenant per 10 seconds.
object
object
Present only for VALIDATION_FAILED.
object
Example
{ "error": { "code": "VALIDATION_FAILED" }}