Manage API keys
An API key lets the widget, your server or an AI agent reach a project. This page shows how to create a key with the right scope, replace one that leaked, and delete one you no longer use.
Every new project starts with two keys, both reaching all collections:
- Public search key, Read only: the widget and the dashboard preview run on it.
- Write key, Write & Read: for your server, to push your catalog.

Pick the scope
Section titled “Pick the scope”| Scope | What it can do | Where it belongs |
|---|---|---|
| Read only | Search and suggestions. Reads collections, synonyms, stop words, custom results, boosting rules and the assistant’s knowledge. | The widget, a browser, a mobile app. Anyone can read it from your page, so browsers get answers only on your allowed domains. |
| Write & Read | All of the above. It also pushes and deletes documents, syncs a source, and creates, renames and deletes collections. It edits synonyms, stop words, custom results, boosting rules and knowledge, reads search analytics, and calls the AI assistant from a server. | Your server or your build. Never in a page. |
No key can change project settings, allowed domains, security rules or the ranking switches. Those need you signed in to the dashboard, or the WordPress plugin connected to your account.
Create a key
Section titled “Create a key”-
Open API keys in the sidebar, under Project & account.
-
Name the key after what uses it, such as Production website or Catalog importer.
-
Pick Read only or Write & Read.
-
Pick All collections, or the one collection the key may reach. A key limited to one collection is refused on every other one.
-
Click Create. The key appears in the list, masked.
-
Copy it with the copy icon on its row, and paste it into the integration that uses it.
Give each integration its own key, so replacing one never takes the others down. Keys start with
sq_; to send one with a request, see API basics.
Replace a leaked key
Section titled “Replace a leaked key”-
Click the regenerate icon on the key’s row, then Regenerate. The old value stops working at once.
-
Copy the new value from the row.
-
Paste it into the integration. For the widget, copy the snippet again from Install → Installation and replace it on your site.
The integration fails until step 3 is done. To switch keys without a gap, create a second key with the same scope, move the integration to it, then delete the old one.
Delete a key
Section titled “Delete a key”Click the trash icon on the key’s row and confirm. The key stops working at once.
Check it worked
Section titled “Check it worked”Send the first request on the Search API page with the
new key. Results mean the key works. 401 Invalid API key means the key was mistyped, deleted, or
limited to another collection.
Next: Set your allowed domains so a copied widget key works nowhere else.