Skip to main content

Authentication

How to authenticate and securely interact with Chatbase APIs.

FAQ and troubleshooting

My API key works in one environment but not another.

Keys are often scoped to an account or workspace. Verify you selected the correct account in the app when you copied the key, and that the server sending requests uses the exact key string (no extra spaces or quotes).

Should I use a user password or an API key in integrations?

Prefer API keys (or OAuth where documented) for server and long-lived integrations. Do not embed user passwords in code; rotate keys if they are exposed.

How do I revoke a compromised key?

Open Accounts → API keys, revoke or delete the affected key, and create a new one. Update all services that used the old key before deleting it if you need zero downtime.