Skip to content

Edit Monitor Webhook URL - API Reference

Used to update or remove a monitor-specific webhook_url. This only updates the webhook URL value associated with a single monitor and does not change your global webhook URL. When monitor-specific webhook is not set, all webhook requests will be routed to your global webhook URL

PATCH https://api.socialdata.tools/monitors/{monitor_id}

Headers

Authorization string required

Authorization Bearer header containing your SocialData API key

Example: Bearer YOUR_API_KEY

Path Parameters

monitor_id string required

Target monitor ID

Example: 01jeg76qa91b095gttamsbwa6q

Body

webhook_url string required

New webhook URL that will be used for all monitors that don't have an individual webhook_url set. Pass an empty value to remove monitor-specific webhook

Example: https://my-website.com/webhook or NULL

Code Examples

Terminal window
curl -X PATCH "https://api.socialdata.tools/monitors/01jeg76qa91b095gttamsbwa6q"
-H 'Authorization: Bearer YOUR_API_KEY'
-H 'Content-Type: application/json'
-H 'Accept: application/json'
-d '{"webhook_url": "https://my-website.com/webhook"}'

Example Responses

{
"status": "success",
"data": {
"id": "01jksy1wv06r3jgk8d0bzahhwg",
"created_at": "2025-02-11T07:19:53.000000Z",
"monitor_type": "user_profile",
"webhook_url": "https://my-website.com/webhook", // contains new webhook_url or null
"parameters": {
"user_screen_name": "MarioNawfal",
"user_name": "Mario Nawfal",
"user_id_str": "1319287761048723458"
}
}
}

Response Codes

  • 200 OK - request succeeded
  • 404 Not Found - requested monitor does not exist