Skip to content

Send a test to a webhook

POST
/api/settings/webhooks/{id}/test
curl --request POST \
--url https://forge.example.com/api/settings/webhooks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/test \
--header 'Authorization: Bearer <token>'

Sends the event ping now, active or paused, and answers whether it was taken, the status code and how long it took. It is one attempt and is not tried again. For administrators.

id
required
string format: uuid

OK

Media typeapplication/json
object
delivered
required
boolean
statusCode
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
milliseconds
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
error
required
null | string
deliveryId
required
string format: uuid

Example generated

{
"delivered": true,
"statusCode": 1,
"milliseconds": 1,
"error": "example",
"deliveryId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}