Skip to Content
coaadedocs

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

PartWhat it is
NameUp to 80 characters, on one line. Two prompts can have the same name.
DescriptionOptional, up to 500 characters. It belongs to the prompt, not to a version, so editing it makes no new version.
VersionsEach 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.

RoleView, compare, open in the WorkbenchSave, 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.

GET/v1/console/library/promptsBearer token

The library, most recently changed first: each prompt's name, description, current version, number of versions, model and who changed it. No prompt text.

POST/v1/console/library/promptsBearer token

A new prompt, with version 1. Answers 201 with the prompt and the version.

Request
{
  "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.

GET/v1/console/library/prompts/:idBearer token

The prompt, its current version in full, and every version's number, model, saver and time, newest first.

GET/v1/console/library/prompts/:id/versions/:versionBearer token

One version in full.

Response 200
{
  "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.

POST/v1/console/library/prompts/:id/versionsBearer token

A 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.

POST/v1/console/library/prompts/:id/rollbackBearer token

{ "version": 1 } makes that version current. Nothing is deleted. changed is false when it already was current.

PATCH/v1/console/library/prompts/:idBearer token

{ "name"?, "description"? }: renames the prompt or changes its description. No new version is made.

DELETE/v1/console/library/prompts/:id/versions/:versionBearer token

Deletes a version that isn't current.

DELETE/v1/console/library/prompts/:idBearer token

Deletes 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.

StatusCodeWhen
403LIBRARY_FULLThe library has as many prompts as the plan keeps.
403VERSION_LIMIT_REACHEDThe prompt has as many versions as the plan keeps. Delete old versions, or save as a new prompt.
403LIBRARY_STORAGE_FULLThe library has no room left for this.
403ROLE_FORBIDDENIn a team, your role can't change the library.
404PROMPT_NOT_FOUNDNo such prompt in this account's library.
404VERSION_NOT_FOUNDNo such version of the prompt.
409VERSION_CONFLICTThe current version isn't expectedCurrentVersion. The body has currentVersion.
409CURRENT_VERSIONThe current version can't be deleted.
413PROMPT_TOO_LARGEThe system prompt and user message together are longer than the plan keeps.
422VALIDATION_ERRORA field is missing or invalid. The message says which.
500PROMPT_UNREADABLEA stored prompt couldn't be decrypted. Contact Coaade support if it keeps happening.
503PLAN_CHECK_FAILEDThe plan couldn't be checked. Try again.

On this page