Skip to main content
API keys authenticate the public API for one workspace. Manage them in Developers → API keys. API keys are available on every plan.

Create a key

  1. Click Create API key and give it a name.
  2. Choose its permissions:
    • Read only: read every resource.
    • Read & write: read and change every resource.
    • Custom: choose read or write per resource. Write includes read.
  3. Optionally set an expiration date.
Which permissions you can choose depends on your role. A key never has more access than the person who created it: members can create keys with the scopes their role holds, viewers only read scopes, and the Billing role can’t create keys. 4. Copy the key. It is shown only once.
Treat an API key like a password. Don’t share it publicly, commit it to Git or use it in client-side code. If it is exposed, revoke it and create a new one.

Permissions

The operations of each endpoint and the scope they need are listed in the API reference. Workspace settings, members, invitations, billing and API keys themselves can’t be managed with an API key.

Manage keys

  • Each key shows when it was last used and whether it is active, expiring soon or expired.
  • Rotate a key to get a new secret; the previous one stops working immediately.
  • Revoke a key to stop it for good.
  • Owners and admins see and manage every key of the workspace; other people see and manage only their own.
  • A key belongs to the person who created it, and it is always limited to what that person’s role allows right now. If their role is reduced, the key narrows immediately. If they are promoted again, it widens again, up to the scopes it was created with. If they move to the Billing role, their keys stop working until they get a role that can hold keys. Rotating a key keeps its original creator, so an admin rotating someone’s key doesn’t raise it.
  • GET /me shows the effective scopes of the key.
  • A key belongs to the person who created it. When they leave the workspace, are removed from it or delete their account, their keys are revoked automatically.
Rotating and revoking ask you to type a confirmation keyword. Each key pins the API version that was current when it was created. See Versioning.