---
title: "Create keyword monitor"
method: POST
path: "/monitors/keywords"
tags: ["Monitors"]
---

# Create keyword monitor

`POST /monitors/keywords`

Creates a keyword monitor. Keyword monitors are unlimited. Active monitors check every 1 second and cost 21 credits per hour. Events and webhook deliveries are included. Creation requires available credits for the first hourly charge.

## Request body

- object
  - `query` string, required — X search query to monitor. Whitespace is normalized.
  - `eventTypes` EventType[], required — Array of event types to subscribe to.

## Response `201`

Keyword monitor created

- KeywordMonitor — Keyword monitor that tracks matching public X activity.
  - `id` string, required
  - `query` string, required
  - `eventTypes` EventType[], required — Array of event types to subscribe to.
  - `isActive` boolean, required
  - `createdAt` string, date-time, required
  - `nextBillingAt` string, date-time, required — Next hourly credit charge time for this keyword query monitor.

## Other responses

- `400` — Invalid input
- `401` — Unauthenticated
- `402` — Payment required. MPP reads return a problem document and `WWW-Authenticate`. Authenticated reads return balances and checkout actions. Guest keys receive only the guest top-up action. Other endpoints may use legacy errors. A failed request never creates checkout. Require user confirmation before creating one.
- `409` — Keyword monitor already exists
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.

## Changes

- **2026-08-12** `d8082b3892a2` — 60 warning
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …56 more
- **2026-08-11** `f6affe6e547e` — 4 info
  - response property `oneOf[#/components/schemas/AuthenticatedPaymentRequired]/payment_options/credits/create_checkout/provider` deprecated (media type: application/json)
  - response property `oneOf[#/components/schemas/AuthenticatedPaymentRequired]/payment_options/subscription/create_checkout/provider` deprecated (media type: application/json)
  - response property `oneOf[#/components/schemas/GuestPaymentRequired]/payment_options/credits/create_checkout/provider` deprecated (media type: application/json)
  - response property `payment_options/guest_wallet/create_checkout/provider` deprecated (media type: application/problem+json)
- …earlier changes not shown

[Full history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/monitors/keywords/post.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api/revisions/d8082b3892a2/schema)
