Skip to main content
POST
/
credits
/
topup
Top up credits
curl --request POST \
  --url https://api.example.com/credits/topup \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "dollars": 123
}'
Free — does not consume credits
curl -X POST https://xquik.com/api/v1/credits/topup \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"dollars": 10}' | jq

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported.
Content-Type
string
required
Must be application/json.

Body

dollars
number
required
Amount in US dollars to top up. Minimum $10.

Response

url
string
Stripe checkout URL. Redirect the user to complete payment.
{
  "url": "https://checkout.stripe.com/c/pay/cs_live_..."
}