Skip to content

Edit Monitor Webhook URL - API Reference

Updates a single monitor’s settings. You can change its webhook_url, and — for search monitors — its refresh_frequency.

Updating webhook_url only affects this one monitor and does not change your global webhook URL. When a monitor-specific webhook is not set, its webhook requests are 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 optional

Webhook URL for this monitor only. Pass an empty value to remove the monitor-specific webhook and fall back to your global webhook URL

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

refresh_frequency integer optional

Search monitors only. How often the monitor executes, in seconds (value between 1 and 3600). Sending this for any other monitor type returns a validation error. Changing it changes what the monitor costs — see Pricing

Example: 300

The new frequency takes effect from the monitor’s next execution.

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

Before you integrate