The Moonbase API uses API keys to authenticate all requests. An API key is required for all requests.Documentation Index
Fetch the complete documentation index at: https://docs.moonbase.ai/llms.txt
Use this file to discover all available pages before exploring further.
How authentication works
API requests require valid API keys. The API returns specific errors based on authentication issues:- Invalid request error: Missing or invalid API key
- Authentication error: Deleted or expired API key
Manage API keys
Manage API keys in organization settings.Using API key
SDK authentication
SDKs check for an API key in theMOONBASE_API_KEY environment variable. Override this default when creating a client.
Direct API calls
When calling the API directly, use HTTP Bearer authentication:Best practices
- Never hardcode API keys
- Use different API keys for different environments (development, staging, production)
- Regenerate suspected compromised API keys
- Never log API keys in errors or debug output

