Skip to Content
AuthenticationSecurity practices

Security practices

Keys

  • Keep keys on the server. Never put a key in browser code, a mobile app or anything shipped to users. Anyone with the key can use it until it is revoked.
  • Keep keys out of source code. Load them from an environment variable or a secret manager, and keep them out of logs and error reports.
  • One key per use. A key per service or job lets you revoke one without touching the others, and its Last used date tells you which are idle.
  • Give the fewest scopes. A dashboard that only reads earlier answers needs conversations:read, not data:query.
  • Set an expiry date on keys for temporary work, and rotate long-lived keys regularly.
  • Revoke a key at once if it may have leaked, and create a new one.

Connected assistants

  • Approve a connection only if you started it, and check the application’s name and where it returns to on the approval page.
  • Review Dashboard → Connected apps from time to time, and disconnect what you no longer use.
  • A shared assistant configured with one API key in its request headers acts as the key’s owner for everyone who uses it. Give such a key read-only scopes where you can.

Data

Questions and answers are stored as conversations of the person the key or connection belongs to, and can be deleted through the API. Answers are AI-generated: see the data disclaimer.

Reporting a problem

Report a suspected security issue to [email protected].

Last updated on