Skip to content

Create a webhook destination

POST
/webhooks
curl --request POST \
--url https://your-server.example/api/webhooks \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "id": 1, "name": "example", "url": "https://example.com", "kind": "example", "secret": "example", "enabled": true }'
Media typeapplication/json
object
id
integer format: int64
name
string
url
string format: uri
kind

Generic, slack, or discord

string
secret
string
enabled
boolean

Example generated

{
"id": 1,
"name": "example",
"url": "https://example.com",
"kind": "example",
"secret": "example",
"enabled": true
}

Created.

Media typeapplication/json
object
id
integer format: int64
name
string
url
string format: uri
kind

Generic, slack, or discord

string
secret
string
enabled
boolean

Example generated

{
"id": 1,
"name": "example",
"url": "https://example.com",
"kind": "example",
"secret": "example",
"enabled": true
}