GET /account,
monitor tweets every 1 second, and register a Twitter webhook. This REST API
integration uses POST /monitors and POST /webhooks.
For accountless reads, use a guest wallet across 33
routes. You can also use direct MPP across 7 operations.
How the Integration Works
Your first API request checks credentials, credits, and monitor billing. Send thex-api-key request header for API key authentication. Each
write sends Content-Type: application/json with a JSON request body.
The monitor watches one X account for selected tweet events. The Twitter API
webhook step stores your HTTPS API endpoint and chosen webhook events. Signed
webhooks then deliver new tweets and replies to that endpoint. Verify every
delivery with the saved secret before processing its payload.
This flow creates one complete REST integration. The API call confirms access.
The monitor detects tweets. The webhook forwards each matching event. Keep the
returned monitor and webhook IDs for later updates, tests, or deletion.
Before You Start
- Create an Xquik account with enough credits for the monitor.
- Prepare a secret manager for the API key and webhook secret.
- Expose an HTTPS endpoint that can receive webhook events.
- Choose the X username and exact tweet event types to monitor.
- Use an HTTP client that can send JSON requests and headers.
First API Call
Call
GET /account to confirm authentication, plan status, available credits, and monitor billing.First Monitor
Create an account monitor that checks every 1 second. Active monitors cost 21 credits per hour while enabled.
First Webhook
Register an HTTPS endpoint and save the one-time secret for HMAC signature verification.
Accountless Reads
Prepay 33 eligible GET routes with a 250 USD Stripe-hosted Payment Link. No account required.
1
Create an account
Sign up at xquik.com with your email. You’ll receive a magic link, no password required.
2
Fund your account
Subscribe for monthly credits or use your remaining account balance. Starter is USD 20/month and includes 140,000 monthly credits. Manage funding from the dashboard billing page. Guest wallets cover 33 prepaid GET routes without an account. Direct MPP covers 7 fixed-price operations.
3
Generate an API key
Open API Keys in the dashboard and create a new key. Copy the full key immediately - it’s only shown once.
4
Make your first request
Verify your setup by fetching your account info:Response:
5
Create a monitor
Start tracking an X account:Response:
6
Set up a webhook (optional)
Receive signed monitor events at your endpoint:Response:Save the
secret from the response in a secret manager. Xquik returns it once. Use it to verify webhook signatures. Do not print it in shared logs.Verify Each Result
Confirm every step before continuing. The account API endpoint should return a successful status code. Its response shows the plan, credit balance, and monitor billing values. A401 means the API key is missing, invalid, or
revoked.
Next, inspect the monitor response. Confirm its id, username, eventTypes,
and isActive values. The username must match the account you intend to watch.
The event types must match the tweets or replies you need.
Finally, inspect the webhook response. Confirm its id, url, and
eventTypes. Store the returned secret immediately. Xquik returns that
secret only during creation. Use the test endpoint before relying on live
webhook events.
Verify the HMAC signature before parsing a delivery. Return 2xx after
accepting the event. Inspect failed HTTP requests using their status and
response body. Never log secret-bearing HTTP headers.
Use the troubleshooting steps below for authentication, payment, webhook, or
rate-limit failures.
Next steps
API Reference
Browse tweet, profile, follower, timeline, monitor, and webhook endpoints.
Export Tweets & Followers
Export tweets, replies, followers, following, likes, lists, and media.
Run a Draw
Execute a giveaway draw on a tweet.
Webhook Verification
Verify HMAC signatures on incoming webhooks.
MCP Server
Connect API MCP v2.6.0 through Streamable HTTP. Use
explore, then xquik.Error Handling
Handle errors, rate limits, and retries.
Billing & Usage
Track credits, monitor costs, subscriptions, and rate-limit quotas.
Troubleshooting
Magic link email not received
Magic link email not received
Keep using your Xquik account email. Wait 60 seconds, request a new link, then open the newest email within 15 minutes. Check your spam or junk folder. If no email arrives, contact support@xquik.com with the exact request time.
API key not working (401)
API key not working (401)
Verify the header name is
x-api-key (lowercase). Check that the key starts with xq_ and hasn’t been revoked. Regenerate from the API Keys dashboard.Getting 401 or 402
Getting 401 or 402
Neither status creates checkout. Anonymous non-MPP paid reads return
401 with a Bearer challenge and guest wallet action. The 7 direct MPP reads return 402 with a Payment challenge and the same action. A 402 response lists choices for account or guest credit failures. Ask the user to choose and confirm before creating checkout. See Billing.Webhook not receiving events
Webhook not receiving events
Verify the URL uses HTTPS. Check that the webhook is active via List Webhooks. Test delivery with the Test Webhook endpoint.
Rate limited (429)
Rate limited (429)
The fixed windows allow 300 reads/1s, 120 writes/60s, and 60 deletes/60s. Respect
Retry-After. See Rate Limits.