Add a webhook
POST
/api/settings/webhooks
const url = 'https://forge.example.com/api/settings/webhooks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","kind":"example","address":"example","token":"example","events":["example"],"includeRestricted":true,"active":true,"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 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "kind": "example", "address": "example", "token": "example", "events": [ "example" ], "includeRestricted": true, "active": true, "version": 1 }'address is https on port 443, with no user name or password; it must lead to a public address, and a Slack, Teams or Jira Automation address must be on that vendor’s own hosts. token is a Jira Automation rule’s, sent in X-Automation-Webhook-Token. events are the events it takes; includeRestricted sends it events of restricted models too, which then leave the application’s need-to-know. A signed webhook’s signing secret is answered once, as secret, and never again. At most 10 an organization. For administrators.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
kind
required
null | string
address
required
null | string
token
required
null | string
events
required
Array<string>
includeRestricted
required
boolean
active
required
boolean
version
required
null | integer | string format: int32
Example generated
{ "name": "example", "kind": "example", "address": "example", "token": "example", "events": [ "example" ], "includeRestricted": true, "active": true, "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"}