Monitors

Updates an account monitor's event types or active state. A monitor turned on again starts from that moment, with no event for a post made while it was off. Read those posts with the timeline & search routes.

patch/api/v1/monitors/{id}

Request

  • Base URL: https://xquik.com
  • URL: https://xquik.com/api/v1/monitors/{id}
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

idstring required

Resource ID returned by the matching create or list endpoint.

Request body

eventTypesEventType[]

Array of event types to subscribe to.

isActiveboolean
namestring nullable

New label for the account monitor. Send null to remove the label.

Example request

{
  "eventTypes": [
    "tweet.new",
    "tweet.reply"
  ],
  "isActive": true,
  "name": "Launch watch"
}

Response

Monitor updated

idstring required
usernamestring required
xUserIdstring required
namestring

Customer-set label of the account monitor, when set.

eventTypesEventType[] required

Array of event types to subscribe to.

isActiveboolean required
createdAtstring date-time required
nextBillingAtstring date-time required

Next hourly credit charge time for this account monitor.

pausedReason'insufficient_credits' | 'x_account_protected' | 'x_user_not_found'

Why Xquik paused this account monitor. insufficient_credits means the balance could not pay an hour, so add credits & resume. The other 2 mean X stopped showing the account. Absent when the monitor is active or you paused it yourself.

pausedAtstring date-time

When Xquik paused this account monitor.

Example response

{
  "id": "42",
  "username": "elonmusk",
  "xUserId": "9876543210",
  "name": "Launch watch",
  "eventTypes": [
    "tweet.new",
    "tweet.reply"
  ],
  "isActive": true,
  "createdAt": "2025-01-15T12:00:00Z",
  "nextBillingAt": "2025-01-15T12:00:00Z",
  "pausedReason": "x_user_not_found",
  "pausedAt": "2025-01-15T12:00:00Z"
}

Changes

    • warning

      added the new topup_in_progress enum value to the ///// response property for the response status

    • warning

      added the new topup_in_progress enum value to the ////// response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status