What do I need before I can call the Agent API?
You need four things:
- A Clatter Labs account. Create one at accounts.clatterlabs.com.
- Your Account ID. Sign in to the Console; the ID (
CL-…) is on the Home page with a copy button. - An API key. In API keys › Create key, tick
runs:writeandruns:read(andaccount:readif you want to read your balance). Copy theclsk_…key straight away; it's shown once. - Credits. New accounts get $5 of free credit. Top up from $1 to $800 per purchase in Billing › Credits.
Then check everything works#
curl https://api.agent.clatterlabs.xyz/agent-config \
-H "Authorization: Bearer $CLATTER_API_KEY" \
-H "X-Clatter-Account: $CLATTER_ACCOUNT_ID"
With a valid key, the answer includes your key's permissions and rate limit, your balance and can_run.
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.