twitter-webhooks
Installation
SKILL.md
Twitter / X Webhooks
Twitter/X delivers account activity through the Account Activity API. Your public HTTPS endpoint must do two things:
- Answer the CRC (Challenge-Response Check) — X sends a
GETrequest with acrc_tokenquery parameter at registration, roughly hourly, and on demand. You must reply within the timeout with aresponse_token, or the webhook is marked invalid and delivery stops. - Verify POST deliveries — every event
POSTcarries anx-twitter-webhooks-signatureheader you validate before processing.
Both use the same primitive: HMAC-SHA256 keyed with your app's consumer
secret (API secret key), base64-encoded, prefixed with sha256=. Use the
consumer secret — not the bearer token or user access token.