Account
X API subscription checkout & billing page
Create a confirmed Xquik API subscription checkout, or get the dashboard billing page. Route new, active & payment-issue accounts without charging the account.
- 200
- 400
- 401
- 403
- 429
POST
X API subscription checkout & billing page
Free. This endpoint does not consume credits.
Returns a checkout URL for new subscribers. An existing subscriber gets the
dashboard billing page, where the user signs in to manage billing. An API key
never opens a billing portal session.
Create an X API subscription checkout
CallPOST /subscribe after an authenticated user confirms a billing action.
The request creates a hosted URL. It never completes payment automatically.
Use this route for 3 account states.
Always route by
status. Do not infer the destination from the URL hostname.
Use only the URL returned by the current response.
This endpoint does not quote current Twitter API pricing or X API pricing.
Review the live Xquik pricing page before checkout.
The pricing page lists the current tiers, credits, and terms.
Choose a subscription tier
Sendtier only when the user selected a specific Xquik plan.
The field pre-selects a tier. It does not activate that tier by itself.
Send only the documented enum values.
Pay in the user’s currency
Sendcurrency to charge in the user’s currency. The default is USD.
Xquik accepts USD, EUR, GBP, TRY, JPY, CNY, KRW, CAD, AUD, and MXN.
Lowercase codes work too. An unknown code returns 400.
Xquik converts the USD plan price at the latest daily ECB rate.
Each renewal charges the same amount before tax.
An account that already pays in USD gets a USD checkout.
With rates over 3 ECB working days old, the checkout charges USD.
Read chargedCurrency to see the currency the checkout charges.
Complete a safe billing handoff
- Show the current plan and credit terms before confirmation.
- Call this endpoint once for the confirmed action.
- Check the HTTP status before reading
url. - Send the user to the returned hosted URL.
- Keep the billing URL out of logs and analytics.
- Recheck
GET /accountafter the user returns.
plan to confirm subscription state. Read creditInfo.balance before
tweet search, follower exports, writes, or monitor work.
Subscriptions are not the only funding path. A funded pay-as-you-go account can
continue eligible work while plan is inactive.
Handle checkout retries
The service can reuse a matching open checkout. Use the latest returned URL. A different tier or currency can replace an older open checkout. Do not call this endpoint from a timer or an automatic retry loop. For429, wait for Retry-After. For 401, replace the credential first.
Headers
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Body
string
Pre-select
starter, pro, or business. Omit the body when the user should
choose on the hosted checkout.string
default:"USD"
Currency to pay in, such as
EUR. Lowercase codes work too.Response
200 OK
string
Checkout URL for new subscribers, or the dashboard billing page for existing subscribers. Send the
user to this URL.
string
Human-readable message describing the action taken.
string
The status is
already_subscribed, checkout_created, or payment_issue.string
Currency the checkout charges. Only a
checkout_created answer has it.400 Invalid input
currency to pay in USD.
401 Unauthenticated
429 Rate limited
Retry-After header before retrying.
Related. Get Account to check current subscription status and usage.