Authentication
API requests require authentication. The following authentication methods are currently supported:
- Bearer Token (recommended): Include
Authorization: Bearer <YOUR_API_KEY>
in the request header. x-api-key
Request Header: Includex-api-key: <YOUR_API_KEY>
in the request header.x-goog-api-key
Request Header: Includex-goog-api-key: <YOUR_API_KEY>
in the request header.- URL Query Parameter: Include
?key=<YOUR_API_KEY>
in the URL.
Your API key can be configured via the --api-key
startup parameter:
bash
node src/api-server.js --api-key your_secret_api_key
If not specified, the default API key is 123456
.