The two kinds of key
When you create a key you choose its type. Both kinds are scoped to the workspace you create them in.- Full access key. Every ability in the API, within its workspace. Use these for your own backend services. They start with
wk_. - Restricted key. Limited to the scopes you pick when you create it, for example “Chat completions” or “Read models”. A restricted key can only do what you allowed, so it is the safer choice for a narrow job or a third party. They start with
rk_.
Creating a key
A payment method is required before you can create a key: add one under Billing first. Then click Create key, give it a name you will recognise later (for example “Production server” or “CI”), choose the type, and for a restricted key tick the scopes it should have. The key is created in the workspace you are currently in. The moment the key is created, the full value is shown to you once. Copy it then and store it somewhere safe, like your secret manager. After you close that dialog the full key is gone for good. We only ever keep a masked version (wk_•••• plus the last few characters), so we cannot show it to you again or recover it. If you lose a key, revoke it and create a new one.