Skip to main content
POST
Create Guest Wallet for Pay-per-request X API
Create a prepaid read wallet without an account, email address, or dashboard. This endpoint creates a one-use hosted checkout after the user confirms a USD amount. It does not charge the user.
Ask the user to confirm the amount before calling this endpoint. Give the returned checkout_url to the user. Never open, submit, or complete the payment for them.
Store both api_key and the original Idempotency-Key as secrets. An exact replay can return the same response, including the key. No email recovery is available. Give only checkout_url to the user. After payment, poll status_url every poll_after_seconds with the guest key. Stop when latest_purchase.status is no longer pending. Do not call paid reads until usable is true.

Headers

string
required
Must be application/json.
string
required
A cryptographically random UUID v4. Reuse it only for an exact retry of the same amount. Store it as a secret because it can recover the initial key.

Body

integer
required
Confirmed USD amount in cents. Minimum 1000 and maximum 25000.
string
required
Must be usd.

Response

boolean
Always false.
object
Confirmed amount in minor units and usd currency.
string
One-use hosted checkout URL for the user to open.
string
Guest key returned on initial creation and exact idempotent replay. Store it as a secret.
object
Required Bearer header and scheme.
string
One-time credential storage guidance.
string
API URL to poll with the guest key.
integer
Minimum polling delay. Always 2 for a pending purchase.
boolean
Always true.
string
Required user interaction and polling guidance.
string
Guest purchase ID.
string
Initial purchase status. Normally pending.
string
Pending checkout expiry. New checkouts expire after 60 minutes.
string
Credits to grant after verified payment.
string
Guest wallet ID.
The response sends Cache-Control: no-store, private. An exact replay also sends Idempotent-Replayed: true.