Create a key
- Click Create API key and give it a name.
- 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.
- Optionally set an expiration date.
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 /meshows 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.