- API reference
- Webhooks
Send a webhook a test event
POSThttps://app.notert.io/api/v1/webhooks/{id}/test
Posts the sample body of one event to a webhook, signed as a delivery is, and answers how it took it and how long that took. Nothing is recorded of it, so a webhook turned off may be tested before it is turned on. It takes a plan that includes webhooks.
A token with webhooks:manage. How to send one
Request
curl -X POST https://app.notert.io/api/v1/webhooks/2c9e4b7a-6d1f-4a3c-8e5b-7f0a1d2c3b4e/test \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"event": "request.created"
}'Response 200
{
"ok": true,
"status": 200,
"problem": "timeout",
"latencyMs": 142
}Path parameters
idstringRequiredThe webhook's id.
At most 64 characters.
Body
eventstringRequiredThe event whose sample body to send.
One ofrequest.createdrequest.updatedrequest.status_changedrequest.board_changedrequest.mergedrequest.unmergedrequest.deletedrequest.restoredrequest.unpublishedrequest.republishedvote.createdvote.deletedcomment.createdcomment.updatedcomment.repliedcomment.deletedcomment.unpublishedcomment.republishedconversation.createdconversation.waitingconversation.resolvedconversation.assignedmessage.createdmessage.updatedmessage.removedchangelog.publishedchangelog.unpublishedhelp_article.publishedhelp_article.updatedhelp_article.unpublishedcontact.createdcontact.updated
Response 200
okbooleanWhether the webhook answered with a 2xx status.
statusinteger or nullThe status code the webhook answered with. Null when nothing answered.
problemstringWhy the test failed, such as status (an unexpected status code), timeout or unreachable. Absent when it was taken.
latencyMsintegerHow long the answer took, in milliseconds.
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
FORBIDDENThe teammate who holds this API token's secret can't test webhooks. Only an owner or admin can. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't manage webhooks. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
NOT_ON_PLANThe workspace's plan doesn't include webhooks. An owner can upgrade it. - 403
TOKEN_HELD_TO_BOARDSA webhook hears every board, so this token, held to some, can't test one. Use a token that reaches every board. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 404
NOT_FOUNDNot Found. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.