API keys

These identifiers are not interchangeable.

What Where it goes
Public project UUID Widget projectId in your script tag. Safe to ship to the browser.
Builder API key AISUPPORT_API_KEY in .aisupport/.env or a CI secret. Created on the project and shown once. Never put it in the script tag.
Identity API key (optional) A server environment variable, for example SHOP_ACTA_IDENTITY_KEY. Created on the project and shown once. Your backend uses it to mint a widget session for a user it has already authenticated. The widget install does not require it. Never put it in the script tag.

The identity key only mints a short-lived widget session (POST /api/v1/widget/identity/ with external_user_id and email). It cannot upload knowledge. Skip it when history on one browser is enough.

The builder key is required to fetch prompts and to upload knowledge sources. Platform-mode ingest needs prepaid credits; BYOK (Bring Your Own Key) does not. See configure and run and pricing.