Make a new signing secret
POST
/api/settings/webhooks/{id}/secret
const url = 'https://forge.example.com/api/settings/webhooks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/secret';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
version
required
null | integer | string format: int32
Example generated
{ "version": 1}Responses
Section titled “Responses”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
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"}default
Section titled “default”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"}