Projects API keys: let an AI agent or integration work in your projects
Describes Projects 0.34.0.
An API key lets an outside program, typically an AI agent, read and change your projects through the Projects JSON API. Each key has a list of projects it may reach and, for each one, what it may do there.
Where to find it
In the admin sidebar, open Projects > API keys (/admin/projects/api-keys). It has two tabs: Keys and Usage (/admin/projects/api-keys/usage). On a project, ⋮ > Your API key shows your keys that reach that project.
What you can do depends on permissions under Projects:
- Seeing the keys that act for you needs only the Projects permission.
- Create API keys, Change their API keys’ access, Rotate their API keys and Revoke their API keys each allow one action on your own keys.
- Manage everyone’s API keys shows every key and lets you make keys for anyone, or shared keys for nobody in particular, and change, rotate or revoke any key.
A project’s owner also sees, and may change or remove, the row of any key that reaches their project.
API keys: the New key form, and a key with access to one project.
Making a key
The New key form asks for:
- Name, for example “Coding assistant”.
- Project: the project the key starts with. For a personal key it must be one the person is on.
- Access: a preset for that project: Full, Read only or No access, or one area read or read and write.
- Acts for (with Manage everyone’s API keys only): Me, Someone else (then pick the Person) or Nobody (shared) (then the Shared key’s role).
Press Create key. “You can give the key more projects once it is made.”
A key made for a person “acts as them: never more than their own role in each project.”
The token, once
After creating or rotating, a dialog shows the token: “This is the only time the token is shown; only its hash is stored. Lose it and you rotate the key.” Use Copy token, or Copy setup prompt to copy a first message for your AI that holds the token, the base address, the Agent guide and the OpenAPI spec. “It carries the token, so treat the paste like the token itself.” Close with Done — I saved it.
A key’s card
Each key shows who it acts for (or Shared), Last used or Never used, its last 30 days of use with a link to Usage, and Rotate and Revoke:
- Rotate: “The old token stops working at once.”
- Revoke: “Everything using it stops working, in every project.”
Its table has a row per project, with the project’s Access. On each row:
- The access select, with Custom… to set each area by hand under Details. The areas are Project, Tasks, Task status, Agent notes, Comments, Time, AI usage, Events and People, each No access, Read or Read and write.
- Also covers its sub-projects: on unless you want the project alone. A row without it says This project only.
- Set as default: the Default project is “where this key’s calls go when they don’t name a project.”
- Remove, which takes the project away from the key.
Add a project gives the key another project.
The filters above the cards narrow by status (Active, Expired, Revoked), by Personal or Shared, by person and by project, with Search keys….
Your API key on a project
⋮ > Your API key lists your keys that reach the project, with Access here, the role each acts as, Home project, Last used and Expires. New key for this project makes one, and Manage your API keys goes to the full page. The page can’t show a token again: “Lost it? Rotate the key on the API keys page and paste the new setup prompt to your AI.”
Usage
The Usage tab charts API use per day over a Period, for All keys or one Key, by project or by key: requests, AI tokens, AI cost and AI time, and Failed requests per day split into Refused (403) and Other failures. “A refused call means the key’s access in that project does not cover it.” A table lists the Tasks the reported work went to.
Usage of the keys over the last 30 days, still empty here.
What it doesn’t do
- A personal key never does more than its person could do in each project.
- Tokens, AI time and cost are what agents report; requests are counted for every call.
- The token can’t be shown again after the dialog closes; rotating is the only way to get a new one.
For developers
The API lives under /api/projects/v1 with bearer-token authentication. Its agent guide is at /api/projects/v1/llms.txt and its OpenAPI description at /api/projects/v1/openapi.json.