How do I check my key, limits and balance in one call?
GET /agent-config describes the API. It works without a key, and with one it also describes your key and account.
curl https://api.agent.clatterlabs.xyz/agent-config \
-H "Authorization: Bearer $CLATTER_API_KEY" \
-H "X-Clatter-Account: $CLATTER_ACCOUNT_ID"
What you get back#
version: the API version date.agent: the agent's name, model, tiers (auto,flash,max,heavy; defaultauto) and limits:max_steps_per_run150,max_input_chars20000,max_metadata_bytes2048,max_runs_in_progress5.endpoints: every endpoint and the permission it needs.key(with a key): id, name, scopes andrate_limit_rpm.account(with a key):cloud_id,balance_usd,unlimitedandcan_run.
Good uses#
- A start-up health check for your integration.
- Confirming a new key has the permissions you expect before using it.
Without a key, the response is cacheable for 5 minutes.
Learn more#
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.