API Keys
For server-to-server communication or when using a self-hosted gateway with a predefined key list. Header:LLMGateway Configuration.
Session IDs
To maintain state in a conversational context, include aX-Session-Id header. This allows the gateway to link the request to a specific user’s cart and history.
Header:
Better Data Cloud Keys
If you are using the Hosted Gateway, you must use your Cloud API keys generated in the dashboard. These keys are scoped to your specific account and entitlements.Secure Link Authentication
When transferring a session from an AI (like Claude) to a web storefront, the gateway generates a short-lived, single-use Secure Link Token. This token is passed as a query parameter and automatically upgraded to a full session cookie by the storefront. Example Link:Best Practices
- Never Expose Secret Keys: Use Public Keys for frontend tool discovery and Secret Keys only for backend tool execution.
- Environment Variables: Always store your keys in secure environment variables, never hardcode them in your source.
- HTTPS Only: All API requests must be made over TLS 1.2 or higher.