How It Works
Register a webhook
Provide an HTTPS URL and select which event types to receive. Xquik generates a signing secret.
Receive events
When a monitored account triggers an event, Xquik sends an HTTPS POST to your endpoint with the event payload and an HMAC signature header.
Delivery Format
Webhook events are delivered as HTTPS POST requests.Headers
| Header | Value | Description |
|---|---|---|
Content-Type | application/json | Payload is always JSON |
X-Xquik-Signature | sha256=HMAC_HEX_DIGEST | HMAC-SHA256 signature for verification |
Payload Body
| Field | Type | Description |
|---|---|---|
eventType | string | Event type (see below) |
username | string | X username of the monitored account |
data | object | Event-specific payload (varies by type) |
Event Data Shapes
Each event type includes adata object with type-specific fields.
tweet.new
A new original tweet posted by the monitored account.tweet.quote
A quote tweet posted by the monitored account. IncludesquotedTweetId and quotedUsername referencing the original tweet.
tweet.reply
A reply posted by the monitored account. IncludesinReplyToTweetId and inReplyToUsername referencing the parent tweet.
tweet.retweet
A retweet posted by the monitored account. IncludesretweetedTweetId and retweetedUsername referencing the original tweet.
Retry Policy
Failed deliveries are retried with exponential backoff (base 1s, multiplier 2x):| Attempt | Delay |
|---|---|
| 1 | 1 second |
| 2 | 2 seconds |
| 3 | 4 seconds |
| 4 | 8 seconds |
| 5 | 16 seconds |
exhausted. Check delivery status via the deliveries endpoint.
Requirements
- Endpoint must use HTTPS
- Endpoint must respond with
2xxwithin 10 seconds - Non-2xx responses or timeouts count as failures