API key format
Octogen Platform API keys follow this structure:Set up your API key
1
Create a key in Octogen Platform
Log in to Octogen Platform and navigate to API Keys. Generate a new key and copy it immediately — the secret portion is only shown once.
2
Set the environment variable
Add your key to your environment so the SDKs can pick it up automatically:For long-lived deployments, set this in your server’s secrets manager or environment configuration rather than in shell profiles.
3
Verify the setup
Confirm the key works with a small product search:A successful response returns an
items array. Catalog enumeration is not required to search across the policy-wide crawled catalog set.Attach the key to requests
Send the key as a Bearer token in theAuthorization header on every request:
SDKs handle this automatically
If you use the Python or TypeScript SDK, authentication is handled for you. The client readsOCTO_API_KEY from the environment by default, or you can pass the key explicitly:
Rotate and revoke keys
Rotate keys from the API Keys section of Octogen Platform. When you deactivate a key, it is revoked immediately — the next request using that key returns a401 error. Issue a replacement key before deactivating the old one to avoid downtime.
Error reference
API keys are organization-scoped. Search/browse access for Developers covers active crawled catalogs only. BigQuery listing access remains separately granted.