Skip to content

Set Global Webhook URL - API Reference

Used to set webhook URL that will be used for all monitors that don’t have a monitor-specific webhook_url set

POST https://api.socialdata.tools/user/webhook

Headers

Authorization string required

Authorization Bearer header containing your SocialData API key

Example: Bearer YOUR_API_KEY

Body

url string required

New webhook URL that will be used for all monitors that don't have an individual webhook_url set

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

Code Examples

Terminal window
curl -X POST "https://api.socialdata.tools/user/webhook"
-H 'Authorization: Bearer YOUR_API_KEY'
-H 'Content-Type: application/json'
-H 'Accept: application/json'
-d '{"url": "https://my-website.com/webhook"}'

Example Responses

{
"status": "success",
"message": "Webhook URL updated"
}

Response Codes

  • 200 OK - request succeeded
  • 404 Not Found - requested tweet does not exist
  • 422 Unprocessable Content - validation failed (e.g. one of the required parameters was not provided)
  • 500 Internal Error - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later