Overview
Webhook delivery
Events delivered to your server
Real-time
Instant event notifications
Comprehensive
Posts, DMs, follows, likes, and more
Subscription-based
Subscribe to user accounts
How it works
- Register webhook — Register your webhook URL
- Subscribe users — Add user subscriptions
- Receive events — Get activity events via POST requests
- Process events — Handle events in your application
Event types
| Category | Events |
|---|---|
| Posts | Create, delete, favorite, unfavorite |
| Direct Messages | Received, sent, typing indicator |
| Follows | Follow, unfollow |
| Blocks | Block, unblock |
| Mutes | Mute, unmute |
Webhook security
All webhook requests include:- CRC validation — Verify webhook authenticity
- Signature header —
x-twitter-webhooks-signature - HTTPS required — All webhook URLs must use HTTPS
Example: Register a webhook
Getting started
Prerequisites
- An approved developer account
- A Project and App in the Developer Console
- A publicly accessible HTTPS webhook endpoint