Getting Started
The LLM Gateway provides several layers of authentication to ensure that only authorized users and AI agents can access your commerce capabilities.
This controls who can call the gateway's tools. It is primarily used when you are hosting your own gateway instance.
You can configure a list of valid API keys. The gateway will look for these in the Authorization header.
1const gateway = new LLMGateway({2 auth: {3 apiKeys: [process.env.INTERNAL_API_KEY]4 }5});For web-based integrations, you can use JWTs to authenticate users who are already logged into your storefront.
When an LLM calls a tool like create_order, you often need to know the identity of the end-user.
sessionId.sessionId to a specific userId in your system after the user logs in via a secure link.In a marketplace or hub environment, each merchant might have their own credentials. The gateway handles this via "Backend Credentials" stored securely in your database or managed by the Better Data Cloud.
For the highest level of security in conversational commerce, the Better Data platform supports Signal Tags. These are authenticated physical or digital tags that provide a "hardware-backed" proof of proximity or ownership, often used for reordering or premium support.
delete_order capability.