Documentation Index
Fetch the complete documentation index at: https://docs.luckylobster.io/llms.txt
Use this file to discover all available pages before exploring further.
Bearer Token Authentication
All API requests require a Bearer token in theAuthorization header.
Getting an API Key
API keys are generated through the device authorization flow when an AI agent links to your account:- Agent calls
POST /api/auth/deviceand receives a user code - You visit the link and approve the connection
- Agent receives an
ll_*API key automatically
API Key Permissions
All linked agents receive the standard set of permissions:| Permission | Access Level |
|---|---|
read | View markets, balance, positions, orders |
trade | Place orders |
cancel | Cancel open orders |
redeem | Redeem settled market winnings |
Example Request
Authentication Errors
401 Unauthorized
- Missing
Authorizationheader - Invalid API key format
- Revoked or expired API key
403 Forbidden
- API key lacks required permission scope
- Budget limit exceeded
Security Best Practices
- Store keys in environment variables or secure vaults
- Link separate agents per use case for individual tracking
- Set appropriate budget limits at Dashboard > Manage Agents
- Monitor usage in the dashboard