Create webhook
curl --request POST \
--url https://catchall.newscatcherapi.com/catchAll/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Layoffs Alert",
"url": "https://hooks.slack.com/services/T000/B000/xxx",
"type": "slack",
"delivery_mode": "full",
"project_id": "60a85db4-78ec-4b78-876a-bc7d9cdadd04"
}
'import requests
url = "https://catchall.newscatcherapi.com/catchAll/webhooks"
payload = {
"name": "Layoffs Alert",
"url": "https://hooks.slack.com/services/T000/B000/xxx",
"type": "slack",
"delivery_mode": "full",
"project_id": "60a85db4-78ec-4b78-876a-bc7d9cdadd04"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Layoffs Alert',
url: 'https://hooks.slack.com/services/T000/B000/xxx',
type: 'slack',
delivery_mode: 'full',
project_id: '60a85db4-78ec-4b78-876a-bc7d9cdadd04'
})
};
fetch('https://catchall.newscatcherapi.com/catchAll/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://catchall.newscatcherapi.com/catchAll/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Layoffs Alert',
'url' => 'https://hooks.slack.com/services/T000/B000/xxx',
'type' => 'slack',
'delivery_mode' => 'full',
'project_id' => '60a85db4-78ec-4b78-876a-bc7d9cdadd04'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://catchall.newscatcherapi.com/catchAll/webhooks"
payload := strings.NewReader("{\n \"name\": \"Layoffs Alert\",\n \"url\": \"https://hooks.slack.com/services/T000/B000/xxx\",\n \"type\": \"slack\",\n \"delivery_mode\": \"full\",\n \"project_id\": \"60a85db4-78ec-4b78-876a-bc7d9cdadd04\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://catchall.newscatcherapi.com/catchAll/webhooks")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Layoffs Alert\",\n \"url\": \"https://hooks.slack.com/services/T000/B000/xxx\",\n \"type\": \"slack\",\n \"delivery_mode\": \"full\",\n \"project_id\": \"60a85db4-78ec-4b78-876a-bc7d9cdadd04\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://catchall.newscatcherapi.com/catchAll/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Layoffs Alert\",\n \"url\": \"https://hooks.slack.com/services/T000/B000/xxx\",\n \"type\": \"slack\",\n \"delivery_mode\": \"full\",\n \"project_id\": \"60a85db4-78ec-4b78-876a-bc7d9cdadd04\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Webhook created successfully.",
"webhook": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Layoffs Alert",
"url": "https://hooks.slack.com/services/T000/B000/xxx",
"type": "slack",
"delivery_mode": "full",
"method": "POST",
"headers": {},
"params": {},
"auth": null,
"formatter_config": null,
"is_active": true,
"organization_id": "org-uuid-here",
"created_by_user_id": "user-uuid-here",
"created_at": "2026-05-18T10:00:00Z",
"updated_at": "2026-05-18T10:00:00Z"
}
}{
"detail": "X-API-Key header is required for this endpoint"
}{
"detail": "Invalid API key"
}{
"detail": "Invalid API key"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Webhooks
Create webhook
Creates a new webhook endpoint for the organization.
Optionally pass project_id to attach the webhook to a project in the same request.
POST
/
catchAll
/
webhooks
Create webhook
curl --request POST \
--url https://catchall.newscatcherapi.com/catchAll/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Layoffs Alert",
"url": "https://hooks.slack.com/services/T000/B000/xxx",
"type": "slack",
"delivery_mode": "full",
"project_id": "60a85db4-78ec-4b78-876a-bc7d9cdadd04"
}
'import requests
url = "https://catchall.newscatcherapi.com/catchAll/webhooks"
payload = {
"name": "Layoffs Alert",
"url": "https://hooks.slack.com/services/T000/B000/xxx",
"type": "slack",
"delivery_mode": "full",
"project_id": "60a85db4-78ec-4b78-876a-bc7d9cdadd04"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Layoffs Alert',
url: 'https://hooks.slack.com/services/T000/B000/xxx',
type: 'slack',
delivery_mode: 'full',
project_id: '60a85db4-78ec-4b78-876a-bc7d9cdadd04'
})
};
fetch('https://catchall.newscatcherapi.com/catchAll/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://catchall.newscatcherapi.com/catchAll/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Layoffs Alert',
'url' => 'https://hooks.slack.com/services/T000/B000/xxx',
'type' => 'slack',
'delivery_mode' => 'full',
'project_id' => '60a85db4-78ec-4b78-876a-bc7d9cdadd04'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://catchall.newscatcherapi.com/catchAll/webhooks"
payload := strings.NewReader("{\n \"name\": \"Layoffs Alert\",\n \"url\": \"https://hooks.slack.com/services/T000/B000/xxx\",\n \"type\": \"slack\",\n \"delivery_mode\": \"full\",\n \"project_id\": \"60a85db4-78ec-4b78-876a-bc7d9cdadd04\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://catchall.newscatcherapi.com/catchAll/webhooks")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Layoffs Alert\",\n \"url\": \"https://hooks.slack.com/services/T000/B000/xxx\",\n \"type\": \"slack\",\n \"delivery_mode\": \"full\",\n \"project_id\": \"60a85db4-78ec-4b78-876a-bc7d9cdadd04\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://catchall.newscatcherapi.com/catchAll/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Layoffs Alert\",\n \"url\": \"https://hooks.slack.com/services/T000/B000/xxx\",\n \"type\": \"slack\",\n \"delivery_mode\": \"full\",\n \"project_id\": \"60a85db4-78ec-4b78-876a-bc7d9cdadd04\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Webhook created successfully.",
"webhook": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Layoffs Alert",
"url": "https://hooks.slack.com/services/T000/B000/xxx",
"type": "slack",
"delivery_mode": "full",
"method": "POST",
"headers": {},
"params": {},
"auth": null,
"formatter_config": null,
"is_active": true,
"organization_id": "org-uuid-here",
"created_by_user_id": "user-uuid-here",
"created_at": "2026-05-18T10:00:00Z",
"updated_at": "2026-05-18T10:00:00Z"
}
}{
"detail": "X-API-Key header is required for this endpoint"
}{
"detail": "Invalid API key"
}{
"detail": "Invalid API key"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Destination URL that receives the payload. Must use HTTPS. IP addresses are not accepted.
Type-specific URL requirements:
slack: Must start withhttps://hooks.slack.com/.teams: Hostname must match*.webhook.office.comor*.webhook.office365.com.generic: Any valid HTTPS domain.custom: Any valid HTTPS domain.
When type is omitted, it is auto-detected from the URL.
Example:
"https://hooks.slack.com/services/T000/B000/xxx"
Webhook target type.
generic: Sends the raw result payload to any HTTPS endpoint.slack: Sends a formatted Slack Block Kit message. URL must start withhttps://hooks.slack.com/.teams: Sends a formatted Microsoft Teams Adaptive Card. URL hostname must match*webhook.office.comor*.webhook.office365.com.custom: Sends a transformed payload using the configuration informatter_config. Requiresformatter_configto be set.
When type is omitted, it is auto-detected from the URL.
Available options:
generic, slack, teams, custom Optional project to attach this webhook to at creation time. Equivalent
to creating the webhook and then calling
POST /catchAll/projects/{project_id}/resources
with resource_type: webhook.
The project must belong to your organization.
Example:
"60a85db4-78ec-4b78-876a-bc7d9cdadd04"
Was this page helpful?

