Monitors
Twitter Keyword Monitor Updates & Alert Controls
Update a keyword monitor’s matching tweet event types, polling state, and active status without recreating its X search query. Includes request fields.
- 200
- 400
- 401
- 404
- 429
PATCH
Twitter Keyword Monitor Updates & Alert Controls
Choose Keyword Monitor Updates
Use this route to change one keyword monitor’s event types or active state. Use get for a read-only checkpoint. Use list for account-wide keyword monitor inventory.Free - does not consume credits
keyword_monitor_id, query, event_types,
is_active, next_billing_at, verify_endpoint, delete_endpoint,
events_endpoint, event_detail_endpoint_pattern, webhooks_endpoint, and
deliveries_endpoint_pattern before resuming alerts or webhook checks.
Path parameters
string
required
The unique keyword monitor ID.
Headers
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
string
required
Must be
application/json.Body
At least 1 field is required.string[]
Updated array of event types. Must contain at least 1 valid keyword monitor
type:
tweet.new, tweet.quote, tweet.reply, tweet.retweet,
tweet.media, tweet.link, tweet.poll, tweet.mention,
tweet.hashtag, tweet.longform.boolean
Set to
false to pause monitoring, or true to resume. Paused keyword monitors do not consume hourly monitor credits.The monitored
query is immutable. Delete this monitor and create another one to track a different query.Update handoff
Use this endpoint when a keyword alert changes scope, needs a temporary pause, or must resume without creating a new monitor ID.Returned State
Store returned
id, query, eventTypes, isActive, createdAt, and
nextBillingAt as the current keyword monitor configuration.Event Filter
eventTypes replaces the current filter. Keep
List Webhooks subscriptions aligned with the
monitor event types you expect to deliver.Pause Monitoring
isActive: false pauses keyword polling, stored events, future webhook
deliveries, and hourly monitor billing for this monitor.Resume Monitoring
isActive: true resumes polling for matching future tweets. Check
nextBillingAt, then run Test Webhook
before relying on production alerts.Query Change
PATCH cannot change
query. Delete this monitor and create a new keyword
monitor when the X search query changes.Downstream Join
Keep using
keywordMonitorId and query from
List Events to reconcile stored events and
signed webhook payloads after the update. Use
Get Event for one event’s full payload.Delivery Audit
Use List Deliveries when webhook
delivery evidence must be retained. Join delivery
streamEventId to event
IDs. Do not use x_event_id as the delivery join key.Delete Path
Use Delete Keyword Monitor only
when the query should stop permanently. Export event and delivery evidence
first when support or audit workflows need history.
Response
200 OK
string
Unique keyword monitor ID.
string
Normalized X search query.
string[]
Updated event types.
boolean
Current active status after update.
string
ISO 8601 creation timestamp.
string
Next hourly credit charge time for active monitor billing.
400 Invalid Input
eventTypes values, or invalid isActive type.
401 Unauthenticated
404 Not Found
429 Rate Limited
Retry-After header before retrying.
Related: Get Keyword Monitor to verify state, Delete Keyword Monitor to remove it, List Events, Get Event, List Webhooks, or List Deliveries.
- 200
- 400
- 401
- 404
- 429
Twitter Keyword Monitor Updates & Alert Controls