Account
Get auto-recharge settings
GET /v1/account/billing/auto-recharge- Permission
read:account- Tokens
- API key, CLI user token, Session token
Read your automatic credit recharge settings. An account that never saved them reads as disabled with no card. Card details are never returned.
{
"amount": int,
"consecutive_failures": int,
"enabled": bool,
"last_attempted_at": str,
"min_threshold": int,
"threshold": int
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
result = client.account.billing.auto_recharge.get()
8
print(result)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
const result = await client.account.billing.autoRecharge.get();
8
console.log(result);
1
curl "https://api.ellipsis.dev/v1/account/billing/auto-recharge" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
amountintegerrequired
Credit bought on each recharge, before the platform fee.
cardAutoRechargeCardrequired
The saved card, or null when no card is saved.
consecutive_failuresintegerrequired
enabledbooleanrequired
Off by default. Saving a card does not enable recharge.
last_attempted_atstring, date-timerequired
min_thresholdintegerrequired
thresholdintegerrequired