Skip to main content
POST
/
catchAll
/
webhooks
/
{webhook_id}
/
resources
Assign resource to webhook
curl --request POST \
  --url https://catchall.newscatcherapi.com/catchAll/webhooks/{webhook_id}/resources \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "resource_type": "monitor",
  "resource_id": "3fec5b07-8786-46d7-9486-d43ff67eccd4"
}
'
{ "success": true, "message": "Resource assigned to webhook.", "already_existed": false, "mapping": { "id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890", "webhook_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "resource_type": "monitor", "resource_id": "3fec5b07-8786-46d7-9486-d43ff67eccd4", "assigned_at": "2026-05-18T10:00:00Z" } }

Documentation Index

Fetch the complete documentation index at: https://newscatcherinc-docs.mintlify.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

API key for authentication.

Path Parameters

webhook_id
string<uuid>
required

Unique webhook identifier.

Body

application/json
resource_type
enum<string>
required

Type of resource to assign.

Available options:
job,
monitor,
monitor_group
resource_id
string<uuid>
required

ID of the resource to assign.

Example:

"3fec5b07-8786-46d7-9486-d43ff67eccd4"

Response

Resource assigned to webhook.

success
boolean
required

True if the operation succeeded; false otherwise.

Example:

true

message
string

Human-readable result message.

Example:

"Resource assigned to webhook."

already_existed
boolean
default:false

True if the assignment already existed before this request.

Example:

false

mapping
object

The created or existing resource mapping.