API keys

Keys that let the WordPress plugin, or your own code, send content to the assistant.

Settings, Advanced, API keys lists the keys that can use Bit's API for this site, with what each one may do and when it was last used.

What you can do with a key today:

  • Send pages to the assistant's knowledge from your own code: for example, your site's build sends every page when you deploy, or your CMS sends an article the moment it's published. You can send a single page, everything at once, or a list of addresses to forget. The assistant answers from it straight away.
  • Read your site's details: its id, the assistant's name and its domains, so a script can check it's talking to the right site.

The WordPress plugin makes its own key when you press Connect, so you don't need to make one for WordPress. More will come to keys later: reading leads and conversations, and connecting AI coding assistants so they can set up your assistant for you.

Making a key: owners and admins press Make a key, give it a name (what uses it) and pick what it may do. Give it only what it needs. The key is shown once: copy it into your code's settings (environment variables), never into a web page, because anyone with the key can use it. Making and revoking keys needs a sign-in from the last 10 minutes.

Using a key: send it with each request as Authorization: Bearer followed by the key. The API keys page shows an example, and the API reference at /developers/api has every field, the errors, and examples in curl, Node and Python.

We keep only a fingerprint of each key, so nobody can read one back, us included. If a key is lost or might have leaked, Revoke it and make a new one. Anything using it stops working immediately. Each key works for one site only.

Open your dashboard →