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. Includes response fields.
- 200
- 400
- 401
- 429
POST
Buy X API Credits for Tweets, Followers & Writes
Choose 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 the checkout reference before redirecting the user.Free - 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
- 200
- 400
- 401
- 429
Buy X API Credits for Tweets, Followers & Writes