Authorization header. Your API key controls what the caller can access - from read-only token lookups to full trade execution.
Getting your API key
Create an Agent Key from the Shuriken Terminal. Each key comes with configurable permissions and spending limits enforced server-side.Open Agent Keys
Click your profile icon in the top-right corner of the Terminal, then select Agent Keys.
Create a new key
Click + New Agent and choose a template or create a custom key with the exact permissions you need.
Using your key
Include the key as a Bearer token in theAuthorization header on every request:
Python
JavaScript
Authentication errors
If your key is missing, invalid, or expired, the API returns a401:
403.
Security best practices
- Store keys in environment variables, never in source code
- Rotate keys periodically from the Agent Keys dashboard
- Use the minimum permissions needed for your use case
- Monitor key activity and usage via
GET /api/v2/account/usage