Skip to content

Make a new signing secret

POST
/api/settings/webhooks/{id}/secret
curl --request POST \
--url https://forge.example.com/api/settings/webhooks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/secret \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "version": 1 }'

For a signed webhook, with the version you read. The new secret is answered once, as secret; the old one stops at once. For administrators.

id
required
string format: uuid
Media typeapplication/json
object
version
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

Example generated

{
"version": 1
}

OK

Media typeapplication/json
object
webhook
required
object
id
required
string format: uuid
name
required
string
kind
required
string
host
required
string
addressEnd
required
string
events
required
Array<string>
includeRestricted
required
boolean
active
required
boolean
paused
required
null | string
pausedAt
required
null | string format: date-time
failingSince
required
null | string format: date-time
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
updatedAt
required
string format: date-time
secret
required
null | string

Example generated

{
"webhook": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"kind": "example",
"host": "example",
"addressEnd": "example",
"events": [
"example"
],
"includeRestricted": true,
"active": true,
"paused": "example",
"pausedAt": "2026-04-15T12:00:00Z",
"failingSince": "2026-04-15T12:00:00Z",
"version": 1,
"updatedAt": "2026-04-15T12:00:00Z"
},
"secret": "example"
}

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"
}