Credits
Buy X API credits for tweets, followers & writes
Create a hosted checkout for at least USD 10 of tweet, profile, follower, monitor, webhook, export, and X write API credits. Returns one redirect URL.
- 200
- 400
- 401
- 429
POST
Buy X API credits for tweets, followers & writes
When to use hosted checkout
Use this route when the buyer needs a hosted checkout. Use quick top-up for a saved payment method. Use top-up status only to poll an existing checkout session. Store thesession_id from the returned URL before redirecting the user. The status route needs it.
Free. This endpoint does not consume credits.
Headers
string
required
Your API key. Session cookie authentication is also supported.
string
required
Must be
application/json.Body
number
required
Amount in US dollars to top up. Minimum $10.
string
Optional checkout locale. Defaults to
en.Response
200 OK
string
Stable Xquik redirect URL for the active hosted checkout session.
string
Same stable redirect URL in snake_case.
400 Invalid input
401 Unauthenticated
429 Rate limited
Retry-After header before retrying.
Related. Get Credits · Get Top-Up Status · Quick Top-Up · Billing Guide