Authentication with the Mesh API is simple and secure. It uses standard HTTP Authorization headers with a unique Router Service Key (RSK).
Mesh supports two types of keys, each found in different parts of your developer dashboard.
Account-level keys are your primary method of interacting with the API. They are prefixed with rsk_.
If you provide your own API keys for upstream providers (OpenAI, Anthropic, etc.), Mesh handles the secure storage and rotation of these keys via GCP Secret Manager. You generally don’t use these keys directly in your code; Mesh uses them to fulfill requests on your behalf.
Your RSK keys are treated as secrets. Treat them with the same care as your database credentials.
rsk_ keys in client-side code (browsers or mobile apps). Always use a backend proxy.