Authentication
Learn how to authenticate your requests to the NeuralHub API.
Overview
NeuralHub supports two primary methods of authentication:
- JWT Tokens: Used by the Frontend Dashboard for user sessions.
- API Keys: Used by external scripts, tools, and the MCP server.
API Keys
API Keys are the standard way to authenticate programmatic access to NeuralHub. You can manage your API keys in the Dashboard Settings.
Include the API key in the Authorization header of your HTTP requests:
Authorization: Bearer nh_...Dual Authentication
The NeuralHub backend implements a "Dual Authentication" strategy. This allows the same API endpoints to be used by both the interactive Dashboard (via JWT) and external automation (via API Key).
When using the Model Context Protocol (MCP) server, you should always use an API Key.