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

# Create keyword monitor

`POST /api/v1/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. Fixed-price direct MPP requests return a Machine Payments Protocol problem document and a WWW-Authenticate challenge. Authenticated X data requests return balances and explicit Stripe checkout-creation actions. Guest paid-read keys receive only the accountless guest top-up action. Direct MPP challenges also advertise the Stripe wallet action. Other authenticated endpoints return a legacy error shape. A failed request never creates checkout. Create checkout only after the user confirms a payment option.
- `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.
- `default` — Unexpected error.

---

[API](https://skmtc.net/xquik-dev/apis/xquik-api-2.md) · [All operations](https://skmtc.net/xquik-dev/apis/xquik-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api-2/versions/c367e6e8f845/schema)
