Account
List credit grants
GET /v1/account/billing/credit-grants- Permission
read:account- Tokens
- API key, CLI user token, Session token
List the credit added to your account and any reversals. The total is before usage. `GET /v1/account/budget` reports the available balance.
{
"total_granted": 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.grants()
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.grants();
8
console.log(result);
1
curl "https://api.ellipsis.dev/v1/account/billing/credit-grants" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
grantsarray<CreditGrant>required
total_grantedintegerrequired
Sum of grants before usage. Read the current balance from /v1/account/budget.