Skip to main content
Webhooks enable real-time data delivery to your server. Instead of polling for updates, receive data as events occur.

Overview

Real-time delivery

Receive events instantly

Push-based

Data sent to your server

Efficient

No polling required

Reliable

Retry and recovery support

Webhook types


How webhooks work

  1. Event occurs — A user posts, sends a DM, etc.
  2. X sends request — POST request to your webhook URL
  3. You process — Your server handles the event
  4. Respond 200 — Return 200 OK to acknowledge

Webhook requirements


Security

Challenge-Response Check (CRC)

X validates your webhook by sending a CRC request. Respond with an HMAC-SHA256 hash:

Signature verification

Verify webhook authenticity using the x-twitter-webhooks-signature header.

Getting started

Prerequisites

Filtered Stream Webhooks

Receive filtered Posts via webhook

Account Activity API

Receive account events via webhook