Scoped API Key for the Opensolr Chat Bot

One box, exactly the endpoints the chat calls

A key that only does what the chat does

The Opensolr Chat Bot you install on your own site answers your visitors from an Opensolr index. Your site keeps the API key and calls Opensolr for each answer. It works with your master API key, but it does not need everything that key can do. Give it a scoped key made for it instead: one box ticks exactly the endpoints the chat calls.

Create the key

  1. Open Account › API Keys.
  2. Name this key, for example Chat bot on www.example.com.
  3. Under What may this key do?, tick Chat bot: Opensolr Chat Bot.
  4. Under Which indexes may it touch?, tick only the index the chat answers from.
  5. Click Create key and copy it.

Put it in the chat admin

  1. Sign in to the chat admin on your site and open the Account tab.
  2. The Email stays the email of your Opensolr account.
  3. Paste the scoped key as the API key and click Test connection.
  4. Choose the index and click Save settings.

The key must be sent with the email of the account that created it, also when a colleague sets up the chat.

What the box ticks: 15 endpoints

Opensolr Chat Bot

EndpointWhat it is used for
get_index_listLists your indexes when you click Test connection in the chat admin.
assistant_chatAnswers your visitors from your index, as the answer is written.
vdb_searchRuns the /search command on your index.
vdb_infoReads how long a translation by the chat model may be.
chat_completionsRuns the /translate command and recognizes the language of the text to translate.
assistant_accountRuns the account commands (/account, /index, /ingestion, /errors, /support) for signed-in visitors.
enrich_textRuns the /language command.
local_timeRuns the /time command.
currency_ratesRuns the /rate command.
vat_ratesRuns the /vat command.
vat_checkRuns the /vatcheck command.
geo_distanceRuns the /distance command.
address_geoRuns the /place command.
postal_codesRuns the /postal command.
ip_geoRuns the /ip command and gives the Stats the country of each visitor.

Good to know

  • A new version of the chat may start calling a new endpoint. If it answers 403 ERROR_SCOPED_KEY_ENDPOINT_NOT_ALLOWED, edit the key and tick the box again.
  • To cut the chat off from your account at once, revoke its key. You can change, revoke or regenerate it at any time on Account › API Keys. See Authentication and keys.

More about the chat bot

API Reference pages