Prompt library
Save the prompts you write in the Workbench, with every version. Compare versions, roll back, and share one library with your team.
The prompt library keeps the prompts you write in the console's Workbench in your Coaade account, not in one browser. Every save is a new version. You can open any version in the Workbench, compare two versions side by side, and make an earlier version current again. On a Team or Enterprise plan, the whole team works in one library.
Open it at Prompt library in the Coaade Console, or use Library and Save to library in the Workbench.
What a prompt holds
| Part | What it is |
|---|---|
| Name | Up to 80 characters, on one line. Two prompts can have the same name. |
| Description | Optional, up to 500 characters. It belongs to the prompt, not to a version, so editing it makes no new version. |
| Versions | Each version holds a system prompt, a user message template, the model (coaade-mind-1 or coaade-code-2), the temperature, the max tokens and the reasoning effort, and who saved it and when. |
Write variables as {{name}}, with letters, digits and underscores in the name. The Workbench fills them in when it runs the prompt. Generate prompt and Improve prompt in the Workbench write variables the same way, so what they make saves as it is. Each version lists its variables.
A version can name either model on any plan. Your plan decides which model runs it: see Choosing a model.
The library doesn't keep the values you type for variables, the Workbench's other messages, its tools, its connected MCP servers or any output.
Save from the Workbench
Save to library saves the prompt in the Workbench's editor as a new prompt, or as a new version of a prompt in the library, which becomes current. It saves:
- the system prompt;
- the first user message, which becomes the version's user message template;
- the model the Workbench runs, and its temperature, max tokens and reasoning effort.
The dialog lists what stays in the Workbench and isn't saved: the other messages, the tools, the connected MCP servers, the variable values and the output.
If the prompt changed after you opened it, because a teammate saved a version or made another one current, the save stops and says which version is current. You can save anyway or look at the prompt first. Nothing is lost either way, because every save is a new version.
Library opens a prompt's current version in the editor, in place of the prompt there. To open an earlier version, use Open in Workbench on the prompt's page.
Versions
- Every save is a new version, numbered 1, 2, 3 and so on. A version never changes after it's saved.
- The current version is the one Library opens. A save makes the new version current.
- Make current makes an earlier version current again. Nothing is deleted or copied, and the next save gets the next number.
- Compare shows two versions side by side: a line-by-line diff of the system prompt and of the user message, and the settings that differ. Your browser works out the comparison.
- Delete on a version deletes it for good. Only a version that isn't current can be deleted, so make another version current first. A deleted version's number isn't used again.
- Delete on the prompt deletes the prompt and all its versions for good.
In a team
On a Team or Enterprise plan, the owner's library is the team's: the owner and every member work in one library. Members open it in the team's console, using the account switcher. A member's personal account has a library of its own, separate from the team's.
| Role | View, compare, open in the Workbench | Save, make current, edit details, delete |
|---|---|---|
| Owner | ✓ | ✓ |
| Admin | ✓ | ✓ |
| Developer | ✓ | ✓ |
| Billing | ✓ | |
| Viewer | ✓ |
- For Billing and Viewer, the buttons that change the library are locked and say why.
- Billing and Viewer can open a version in the Workbench to read it, but their role can't run the Workbench.
- Each change goes into the team's audit log (Settings → Security), with the member who made it.
Limits
Each plan keeps a number of prompts, a number of versions per prompt, a longest prompt and a total size for the library. The numbers aren't published and may change. When you reach one, the console says what to do: delete prompts or old versions you no longer need, save your changes as a new prompt, or move to a bigger plan. In a team's console, the team owner chooses the plan.
Privacy
- What's stored. Each prompt's name and description, and each version's system prompt, user message template, model, settings, number, and who saved it and when.
- Where. In Coaade Cloud's database. The name, the description, the system prompt and the user message are encrypted at rest with AES-256-GCM. Each one is bound to its account and to its place in the database, so a copy moved elsewhere doesn't decrypt. The model, the settings, the version numbers, the times and who saved each version aren't encrypted.
- Not end-to-end encrypted. Coaade's servers hold the keys. The API decrypts a prompt to answer a signed-in request from someone allowed to read it, so your prompts aren't hidden from Coaade's servers.
- Who can read it. In a personal account, you. In a team's library, the owner and every member, whatever their role.
- Never logged. Prompt text never goes into Coaade's logs, the console's request logs or the audit log. An audit entry records which prompt (its id) and which versions changed, and who made the change, never a name or any text. The library calls no model, so saving and opening prompts uses no model allowance.
- How long. Until you delete it. A plan change deletes nothing. If a team's plan ends, members lose the team's console, and the owner keeps the library. Deleting your Coaade account doesn't erase your prompts by itself, so delete them first if you want them gone.
- Deleting is for real. Deleting a version or a prompt removes it from the database at once. Deleted prompts can stay, still encrypted, in database backups until those backups expire.
Endpoints
The console calls these endpoints. Authenticate with your signed-in session's access token, as for the other /v1/console endpoints; an API key isn't accepted. In a team, the console names the team in an X-Coaade-Team header. Without it, a request reads and writes your own account's library.
/v1/console/library/promptsBearer tokenThe library, most recently changed first: each prompt's name, description, current version, number of versions, model and who changed it. No prompt text.
/v1/console/library/promptsBearer tokenA new prompt, with version 1. Answers 201 with the prompt and the version.
{
"name": "Ticket triage",
"description": "Sorts support tickets by team",
"system": "You sort support tickets for {{company_name}}.",
"userMessage": "<ticket>\n{{ticket}}\n</ticket>",
"model": "coaade-mind-1",
"temperature": 0.2,
"maxTokens": null,
"reasoningEffort": "low"
}description, temperature, maxTokens and reasoningEffort are optional. null for the temperature or max tokens means the model's default, and the reasoning effort defaults to low. A version needs a system prompt, a user message or both.
/v1/console/library/prompts/:idBearer tokenThe prompt, its current version in full, and every version's number, model, saver and time, newest first.
/v1/console/library/prompts/:id/versions/:versionBearer tokenOne version in full.
{
"prompt": { "id": "…", "name": "Ticket triage", "description": "Sorts support tickets by team", "currentVersion": 2, "latestVersion": 2, "versionCount": 2, "model": "coaade-mind-1", "modelName": "Coaade Mind 1.0", "createdAt": "…", "updatedAt": "…", "createdBy": { "name": "Ada", "you": true }, "updatedBy": { "name": "Ada", "you": true } },
"version": {
"version": 2,
"model": "coaade-mind-1",
"modelName": "Coaade Mind 1.0",
"savedAt": "…",
"savedBy": { "name": "Ada", "you": true },
"current": true,
"system": "You sort support tickets for {{company_name}}.",
"userMessage": "<ticket>\n{{ticket}}\n</ticket>",
"variables": ["company_name", "ticket"],
"temperature": 0.2,
"maxTokens": null,
"reasoningEffort": "low"
}
}createdBy, updatedBy and savedBy are null for a person whose account was removed.
/v1/console/library/prompts/:id/versionsBearer tokenA new version, which becomes current. The body is a version's fields, as for a new prompt, without name and description.
Send expectedCurrentVersion, the current version you read, to be told when the prompt changed since: the save then answers 409 VERSION_CONFLICT with currentVersion and saves nothing. Without it, the save always goes through.
/v1/console/library/prompts/:id/rollbackBearer token{ "version": 1 } makes that version current. Nothing is deleted. changed is false when it already was current.
/v1/console/library/prompts/:idBearer token{ "name"?, "description"? }: renames the prompt or changes its description. No new version is made.
/v1/console/library/prompts/:id/versions/:versionBearer tokenDeletes a version that isn't current.
/v1/console/library/prompts/:idBearer tokenDeletes the prompt and all its versions. Answers deleted: true and versions, the number of versions deleted.
The model API doesn't read the library. A request to POST /v1/chat/completions carries its own messages and settings.
Errors
Errors use the API's error format: an error code and a message.
| Status | Code | When |
|---|---|---|
| 403 | LIBRARY_FULL | The library has as many prompts as the plan keeps. |
| 403 | VERSION_LIMIT_REACHED | The prompt has as many versions as the plan keeps. Delete old versions, or save as a new prompt. |
| 403 | LIBRARY_STORAGE_FULL | The library has no room left for this. |
| 403 | ROLE_FORBIDDEN | In a team, your role can't change the library. |
| 404 | PROMPT_NOT_FOUND | No such prompt in this account's library. |
| 404 | VERSION_NOT_FOUND | No such version of the prompt. |
| 409 | VERSION_CONFLICT | The current version isn't expectedCurrentVersion. The body has currentVersion. |
| 409 | CURRENT_VERSION | The current version can't be deleted. |
| 413 | PROMPT_TOO_LARGE | The system prompt and user message together are longer than the plan keeps. |
| 422 | VALIDATION_ERROR | A field is missing or invalid. The message says which. |
| 500 | PROMPT_UNREADABLE | A stored prompt couldn't be decrypted. Contact Coaade support if it keeps happening. |
| 503 | PLAN_CHECK_FAILED | The plan couldn't be checked. Try again. |
Usage alerts
Get an email, or a signed webhook, when today's usage of a model reaches 50, 80 or 100 percent of its daily allowance.
MCP server
Coaade MCP, Coaade's Model Context Protocol server, covering its endpoint, Sign in with Coaade (OAuth 2.1), API keys, scopes, rate limits, tool groups, the full tool reference and resources.