Billing
Authorizations
blotato-api-keystringRequired
Responses
200
Credit balance, the account email, and credit purchase pricing
application/json
Credit balance, the account email, and credit purchase pricing
creditsRemainingintegerRequired
accountEmailstringRequired
pricePer1000CreditsUsdnumberRequired
401
Unauthorized
application/json
403
Forbidden
application/json
500
Default Response
application/json
get/v2/credits
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
}Authorizations
blotato-api-keystringRequired
Body
quantityinteger ยท min: 1000 ยท max: 10000Required
referralstring ยท nullableOptional
Responses
201
A Stripe Checkout link to buy credits.
application/json
A Stripe Checkout link to buy credits.
checkoutUrlstringRequired
Stripe Checkout URL. The account owner opens this in a browser to complete payment. No charge occurs until checkout is completed.
400
Default Response
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
429
Rate limit exceeded
application/json
500
Default Response
application/json
post/v2/credits
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