Skip to main content
POST
/
api
/
webhookSubscriptions.test
Send a test webhook
curl --request POST \
  --url https://{notifuseDomain}/api/webhookSubscriptions.test \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "ws_1234567890",
  "id": "whsub_a1b2c3d4e5f6"
}
'
{
"success": true,
"status_code": 200,
"response_body": "{\"received\": true}",
"error": null
}

Authorizations

Authorization
string
header
required

API token for authentication

Body

application/json
workspace_id
string
required

The ID of the workspace

Example:

"ws_1234567890"

id
string
required

The ID of the subscription to test

Example:

"whsub_a1b2c3d4e5f6"

Response

Test webhook sent (check response for success/failure)

success
boolean

Whether the test webhook was delivered successfully

Example:

true

status_code
integer

HTTP status code returned by the webhook endpoint

Example:

200

response_body
string

Response body from the webhook endpoint

Example:

"{\"received\": true}"

error
string | null

Error message if the test failed

Example:

null