API
API authentication
Create API keys and authenticate requests to the Agento API.
The Agento API uses bearer tokens. Create keys in Settings → API keys; each key belongs to a workspace and can be scoped to specific agents.
Make a request
curl https://api.example.com/v1/agents \
-H "Authorization: Bearer $AGENTO_KEY"const res = await fetch('https://api.example.com/v1/agents', {
headers: { Authorization: `Bearer ${process.env.AGENTO_KEY}` },
});import requests
requests.get('https://api.example.com/v1/agents',
headers={'Authorization': f'Bearer {key}'})Rotate keys
Keys never expire, but you can rotate them at any time. Old keys stop working immediately.
Edit this pageNeed help? Contact support