Skip to main content
PATCH
Update Twitter webhook endpoint & event filters
Free. This endpoint does not consume credits.
These snippets build a reconfiguration row. Store the current webhook configuration with its test and delivery-log endpoints. Do not print the full update response.

Path parameters

string
required
The webhook ID to update.

Headers

string
required
Your API key. This endpoint also accepts session cookie authentication.
string
required
Must be application/json.

Body

At least 1 field is required.
string
New HTTPS endpoint URL. Xquik rejects HTTP URLs.
string[]
Updated event types to subscribe to. Replaces the existing list. At least 1 required when provided. Use any valid account monitor event type listed below. Keyword monitor webhooks should stay on tweet.* event types. Account monitor webhooks can use both tweet.* and profile.* event types.

Valid event types

Valid types: tweet.new, tweet.quote, tweet.reply, tweet.retweet, tweet.media, tweet.link, tweet.poll, tweet.mention, tweet.hashtag, tweet.longform, profile.avatar.changed, profile.banner.changed, profile.name.changed, profile.username.changed, profile.bio.changed, profile.location.changed, profile.url.changed, profile.verified.changed, profile.protected.changed, profile.pinned_tweet.changed, profile.unavailable.changed.

tweet.new

Original tweet from an account monitor or matching keyword monitor. Use for new posts that are not replies, quotes, or retweets.

tweet.quote

Quote tweet from an account monitor or matching keyword monitor. Keep this only when your systems handle quote payloads.

tweet.reply

Reply from an account monitor or matching keyword monitor. Keep this when reply alerts or support routing should continue.

tweet.retweet

Retweet from an account monitor or matching keyword monitor. Keep this when repost activity should keep triggering deliveries.
Only the Test Webhook endpoint generates webhook.test. You cannot add it to a webhook subscription.
boolean
Set to false to pause deliveries. Set to true to turn it on and start sending waiting deliveries at once. Either value resets consecutiveFailures to 0. To require a signed test first, use Resume Webhook.

Response

200 OK

string
Unique webhook identifier.
string
The current delivery endpoint URL.
string[]
Event types this webhook subscribes to.
boolean
Whether the webhook is active.
number
Consecutive delivery failures recorded for this webhook.
string
active, paused, or needs_attention.
number
Failure count that sets needs_attention. Delivery continues past it.
string
ISO 8601 creation timestamp.

401 Unauthenticated

Missing or invalid API key or session cookie.

400 Invalid input

Invalid URL (must be HTTPS), empty eventTypes, or no fields provided.
The provided webhook ID is not a valid format.

404 Not found

No webhook exists with this ID, or it belongs to a different account.

429 Rate limited

Too many requests. Wait for the Retry-After header before retrying.

Reconfiguration handoff

Use this endpoint when a receiver URL or event filter changes. It also pauses or resumes webhook delivery without creating a new endpoint.

Updated inventory

Store returned id, url, eventTypes, isActive, deliveryStatus, consecutiveFailures, failureHardCap, and createdAt as the current webhook configuration.

URL change

After changing url, run Test Webhook before expecting production monitor events at the new receiver.

Event filter

eventTypes replaces the previous list. Keep it aligned with account or keyword monitor event types.

Pause delivery

isActive: false stops future deliveries. Existing stored events and delivery records remain available. Xquik keeps queued events until all deliveries finish. Events expire 30 days after Xquik creates them.

Resume delivery

isActive: true resumes delivery for matching future monitor events. It also starts sending waiting deliveries at once. Events that happen during a pause may never arrive. To catch up, page through List Events. Use Resume Webhook when the receiver must pass a signed test first.

Signing secret

This endpoint does not rotate or return secret. Keep using the secret from Create Webhook for signature verification.

Delivery check

After the signed test passes, use List Deliveries if production monitor events still miss the receiver. Check status, attempts, lastStatusCode, lastError, createdAt, and deliveredAt.

Event join

Use delivery streamEventId as the {id} for Get Event. Store monitorId, monitorType, type, occurredAt, and data with the reconfiguration incident.
This endpoint accepts 2 auth methods. Send an API key in the x-api-key header or a session cookie from the dashboard.Related. List Webhooks · Test Webhook · Resume Webhook · List Deliveries · Get Event · Delete Webhook