Send the API key in x-api-key
Recommended environment variables
What to avoid
- Do not expose Bulkgrid API keys in browser code.
- Do not treat the key as a bearer token.
- Do not assume proxies preserve custom headers unless you control that path.
Common failures
401 Unauthorized
This usually means the x-api-key header is missing, malformed, or invalid.
Example error shape:
Requests work locally but fail in production
Check these first:- the deployed service is using the right environment variables
- the request is being sent to the correct Bulkgrid base URL
- no gateway, CDN, or proxy is stripping
x-api-key