Billing
Endpoints related to credits, credit balance, and credit purchases.
Fetches the authenticated account's remaining credits, the account email the credentials belong to, and current credit purchase pricing. Confirm the account email before purchasing credits, since credits are non-transferable between accounts.
Credit balance, the account email, and credit purchase pricing
Credit balance, the account email, and credit purchase pricing
Unauthorized
Forbidden
Default Response
GET /v2/credits HTTP/1.1
Host: backend.blotato.com
blotato-api-key: YOUR_API_KEY
Accept: */*
{
"creditsRemaining": 54688,
"accountEmail": "user@example.com",
"purchaseQuantityRange": {
"min": 1000,
"max": 10000
},
"pricePer1000CreditsUsd": 6
}Creates a Stripe Checkout link the account owner opens in a browser to buy credits (quantity between 1000 and 10000). Creating a link never charges anything; payment happens only when a human completes checkout in the browser, and the purchased credits always land on this account.
A Stripe Checkout link to buy credits.
A Stripe Checkout link to buy credits.
Stripe Checkout URL. The account owner opens this in a browser to complete payment. No charge occurs until checkout is completed.
Default Response
Unauthorized
Forbidden
Rate limit exceeded
Default Response
POST /v2/credits HTTP/1.1
Host: backend.blotato.com
blotato-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"quantity": 1,
"referral": "text"
}{
"checkoutUrl": "https://checkout.stripe.com/c/pay/cs_test_123"
}Last updated