The Watt API uses API keys to authenticate requests. You can create and manage keys in the dashboard.
Your API keys carry many privileges — keep them secure. Do not share keys in client-side code, public repositories, or anywhere accessible to others.
Endpoints
Keys work against both environments. Your current endpoint: https://api.wattdata.ai/v2/mcp
API Key Authentication
Keys start with watt_ and are shown only once at creation. If you lose a key, revoke it and create a new one.
Bearer Token (Recommended)
Include your API key in the Authorization header as a bearer token:
Basic Auth
Alternatively, use HTTP Basic authentication with your key name and key value:
Do not commit API keys to version control. Use environment variables or a secrets manager.
OAuth
For applications that act on behalf of end users, authenticate with an OAuth bearer token instead of an API key.
Authorization: Bearer <oauth_token>Dashboard
Manage API keys and organization settings in the web dashboard. See the Dashboard guide for details.