Skip to the page
API pages

Guides

Endpoints

Requests15
Deleted requests2
Comments5
Comment search1
Voters3
Followers3
Boards4
Tags5
Issues5
Statuses1
Roadmap2
Insights10
Search1
People5
Teammates4
Conversations11
Operators1
Saved replies4
Changelog entries12
Changelog tags4
Changelog subscribers2
Help articles12
Help collections3
System status4
Knowledge sources5
Knowledge pages3
Otto2
Moderation2
Audit log1
Webhooks6
Webhook deliveries2
Token1

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

  • idstringRequired

    The webhook's id.

    At most 64 characters.

Body

  • eventstringRequired

    The 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

  • okboolean

    Whether the webhook answered with a 2xx status.

  • statusinteger or null

    The status code the webhook answered with. Null when nothing answered.

  • problemstring

    Why the test failed, such as status (an unexpected status code), timeout or unreachable. Absent when it was taken.

  • latencyMsinteger

    How long the answer took, in milliseconds.

Errors

  • 400BAD_REQUESTInput validation failed.
  • 401UNAUTHORIZEDSend a valid API token as a Bearer token.
  • 403FORBIDDENThe teammate who holds this API token's secret can't test webhooks. Only an owner or admin can.
  • 403HOLDER_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.
  • 403INSUFFICIENT_SCOPEThis API token can't manage webhooks. Create one that may in the workspace's settings.
  • 403NETWORK_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.
  • 403NO_SEATThis workspace's plan has no seat for you.
  • 403NOT_ON_PLANThe workspace's plan doesn't include webhooks. An owner can upgrade it.
  • 403TOKEN_HELD_TO_BOARDSA webhook hears every board, so this token, held to some, can't test one. Use a token that reaches every board.
  • 403WORKSPACE_SUSPENDEDThis workspace is suspended.
  • 404NOT_FOUNDNot Found.
  • 409CHANGED_MEANWHILESomething changed meanwhile. Try again.
  • 429TOO_MANY_REQUESTSToo Many Requests. Its data holds retryAfter.

A refusal names its code beside a message. Rate limits says when to try again.