Key templates
A template saves the settings most developers need (provider credential, models, caps, rate limit and tags) so you can make keys from it without filling in the form. Admins and owners manage them; custom roles can only create keys for themselves and don't see them.
Manage templates
- Templates on API keys lists them, with what every key made from each one gets and how many keys were made from it. New template is at the top; Edit, Delete and Issue keys are on each template.
- Save as template in a key's ⋯ menu starts one from that key's settings.
- Editing a template updates the provider credential, models, caps, rate limit and tags of every active key made from it, straight away, and replaces changes made by hand to those keys. The editor says how many keys that is and asks once more before saving.
- Deleting a template leaves its keys working with their current settings; they just stop following it.
- A team can name a template. Issue keys then warns when the team you pick uses a different template, with a button to switch to it.
- Create key has a Template dropdown that fills in its form from a template. You can change anything before creating, and those keys aren't linked to the template, so editing it never changes them. People and Team there make one key each for several people, named for each person then the key name ("Ada · ci") and handed over the same way as below; leave them empty for a key for yourself.
Create keys for many people
Admins and owners can create one key for each of many people from a template. The new keys don't work, and nobody is told about them, until you choose how to hand them over.
API keys → Templates → Issue keys
Pick the template. Every key gets shows its settings.
Pick the people
Team adds everyone on one team who can hold a key; you can still add or remove people. Create team makes one if none exists yet. People is a list to tick: it shows how many keys each person already has from this template, and viewers greyed out, since they can't hold a key. Select everyone without a key ticks everyone who has none from this template yet.
Purpose (optional)
Each key is named for its person, then the template: "Ada · dev-standard". A purpose takes the template's place to tell keys apart: "Ada · ci". Someone who already has a key with that name gets a numbered one.
Create N keys
Anyone the server can't give a key to, such as a custom role without key access, is skipped and listed with the reason.
Download or share
Download keys gives you a CSV with every key's secret. The keys work straight away and nobody is notified, so pass them on yourself. You download them once; the dialog stays open and says how many were downloaded.
Share and notify sends each person an email and a notification with a link to API keys, where they reveal their own key, once. You never see the secrets, and the email doesn't contain one. It works once, also after a download: the downloaded secrets then stop working.
Someone can hold several keys from one template. On their API keys page, Reveal all shows every one of their keys waiting to be revealed at once, each secret next to its key's name.
You can close the dialog without choosing. API keys then shows the keys waiting to be handed over, with the same two choices.
Over the API:
| Method and path | What it does |
|---|---|
GET /v1/key-templates | Every template, with key_count (active keys made from it). |
POST /v1/key-templates | Save a template: name, tags, provider_key_id, allowed_models, daily_limit_usd, monthly_limit_usd, daily_token_limit, monthly_token_limit, rpm_limit. |
PATCH /v1/key-templates/{id} | Replace a template's settings, and every active key made from it. Returns keys_updated. |
DELETE /v1/key-templates/{id} | Delete a template. Its keys keep their settings. |
POST /v1/key-templates/{id}/issue | identity_ids (up to 500) and an optional purpose. Returns the keys made (issued) and the people skipped, with why. |
POST /v1/keys/issue | The key settings (name, tags, provider_key_id, allowed_models, dollar and token caps, rpm_limit) and identity_ids (up to 500). One key each, named for its person then name ("Ada · ci"), not linked to any template. Same response as above. |
POST /v1/keys/handover | action is download or share, with the key_ids. Each works once per key: download only touches keys still waiting, share also a downloaded key nobody has used yet. Download is only allowed from a console sign-in, because the response holds the secrets. |

