Skip to content
Panel(opens in a new tab)

Authentication

Every request from Widgets, the Platform API and the MCP server authenticates with one of your site’s two credentials. Use this page to pick the right credential, find it in Panel, send it and rotate it.

Together, the two are your site’s API credentials. Each belongs to one site, and the site is determined from the credential alone, so no request carries a site ID.

Credential What It Is What It Allows Where to Use It
Read-only token A bearer token (JWT) Search and recommendation requests. It grants no access to sensitive data and can’t change anything. Anywhere, including the browser and public front-end code
Site credentials A username and password for HTTP Basic authentication Everything the read-only token allows, plus reading potentially sensitive data and changing the site, such as setting or deleting products Server side only. Keep them secret.

Both stay valid until you generate new ones. Panel itself doesn’t use them: you sign in to Panel with your own user account.

On Site → API Credentials, you find three rows: Username, Password and Token (Read Only). Select a row to copy its value. The values stay hidden on screen.

The section appears only if your Panel role allows you to view credentials. If you don’t see it, ask an owner of your company.

Surface Accepts
All widgets, and the Search Bar, Product List and Cropper components Read-only token, in the token attribute
Filters and Product Card components No credential. They work with the components on the same page that send the requests.

Never put site credentials in a widget.

Operation Group Operations Accepts
Services Text-Search Products, Auto-Suggest, Visual-Search Products, Similar Products, Cross-Selling Read-only token or site credentials
Services Predict Product Data Site credentials only
Product Management Set Product, Delete Product Site credentials only
Model Context Protocol (MCP) MCP Endpoint Read-only token or site credentials, then per tool as below
Deprecated All deprecated operations Read-only token or site credentials
Tool Group Tools Accepts
Search and discovery text_search, visual_search, similar_products, cross_selling Read-only token or site credentials
Catalog schema tools list_relevant_columns, describe_column Read-only token or site credentials
Item retrieval get_item, get_items, get_item_group Read-only token or site credentials
Conversation memory append_memory, recall_memory, replay_memory, list_conversations Site credentials only

The Platform API and the MCP server read the standard Authorization header:

Credential Header
Read-only token Authorization: Bearer YOUR_READ_ONLY_TOKEN
Site credentials Authorization: Basic followed by the Base64 encoding of USERNAME:PASSWORD

A text search with the read-only token:

Terminal window
curl https://api.vviinn.com/text-search \
-H "Authorization: Bearer YOUR_READ_ONLY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "flowers"}'

The same request with site credentials, where curl -u builds the Basic header:

Terminal window
curl https://api.vviinn.com/text-search \
-u "USERNAME:PASSWORD" \
-H "Content-Type: application/json" \
-d '{"query": "flowers"}'

MCP clients send the same header with every request to https://api.vviinn.com/mcp. Connect an Agent shows the client configuration. Widgets send the token themselves:

<vviinn-text-search token="YOUR_READ_ONLY_TOKEN"></vviinn-text-search>
Response Meaning
401 with Authentication Error The credential is missing, malformed or no longer valid, for example after you generated a new one. From the MCP server, the WWW-Authenticate header lists the accepted schemes, Bearer and Basic.
403 with Authorization Error The credential is valid but doesn’t allow this operation.
MCP tool error unprocessable_parameters A conversation memory tool was called with the read-only token. Use site credentials.

On Site → API Credentials → Reset API Credentials, select one of these:

  • Generate New Credentials for a new username and password
  • Generate New Read Only Token for a new token

The old values stop working at once, so every request that still sends them fails with 401 until you replace them. Update your widgets, servers and agent configurations right after you generate new values. Rotate immediately if a credential may have leaked, above all the site credentials.

Only users whose Panel role allows changing credentials see these buttons.