Top up
curl --request POST \
--url https://intentleads.si/api/v1/billing/topups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 500
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 500})
};
fetch('https://intentleads.si/api/v1/billing/topups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/billing/topups"
payload = { "amount": 500 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"amount_usd": 500,
"status": "checkout",
"checkout_url": "https://checkout.example.com/session/7f3c2a9e"
}{
"error": "invalid_amount",
"message": "A top-up is from $250 to $50,000."
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "admin_key_required",
"message": "This needs an admin API key. Owners create one under Settings → API keys."
}{
"error": "billed_by_parent",
"message": "This workspace spends its organization's balance. Top-ups are managed there."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}{
"error": "billing_failed",
"message": "The payment didn't go through. Try again, or contact us."
}Top up
Starts a card payment to add amount US dollars (250to50,000) to your balance and returns its checkout_url. The balance goes up as soon as the payment clears. The balance expires after 3 months with no top-up, grant or spending.
Admin key required. Standard keys get 403 admin_key_required.
POST
/
api
/
v1
/
billing
/
topups
Top up
curl --request POST \
--url https://intentleads.si/api/v1/billing/topups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 500
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 500})
};
fetch('https://intentleads.si/api/v1/billing/topups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/billing/topups"
payload = { "amount": 500 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"amount_usd": 500,
"status": "checkout",
"checkout_url": "https://checkout.example.com/session/7f3c2a9e"
}{
"error": "invalid_amount",
"message": "A top-up is from $250 to $50,000."
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "admin_key_required",
"message": "This needs an admin API key. Owners create one under Settings → API keys."
}{
"error": "billed_by_parent",
"message": "This workspace spends its organization's balance. Top-ups are managed there."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}{
"error": "billing_failed",
"message": "The payment didn't go through. Try again, or contact us."
}