Account
Check whether you can start sessions
GET /v1/account/billing- Permission
read:account- Tokens
- API key, CLI user token, Session token
Read whether your account can start sessions, with the same check that admits a session, including credit and contact email. `GET /v1/account/budget` reports spend limits.
{
"workflows_block_reason": str
}
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.status()
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.status();
8
console.log(result);
1
curl "https://api.ellipsis.dev/v1/account/billing" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
workflows_block_reasonenumrequired
The account gate's reason for blocking new sessions, or null. Does not include viewer-specific blocks or scoped spend limits.
one of
canceledout_of_creditblockedcontact_email_required