Skip to main content
Rendering a prompt for a call is covered in Rendering prompts. This page covers the lifecycle around it — creating and versioning prompts, moving labels, and managing environments.

Prompt lifecycle

The client.prompts namespace covers prompt lifecycle and labeling. Each method takes a single options object.
  • Prompts: create, list, get, update, archive.
  • Versions: createVersion, listVersions, getVersion.
  • Labels on a prompt: moveLabel, listLabels.
  • Project labels: listProjectLabels, createProjectLabel, getProjectLabel, updateProjectLabel, deleteProjectLabel, listProjectLabelUsages, listLabelEvents.

Project environments

client.projectEnvironments manages the environments a project serves into — the same environments a prompt release targets and that render resolves against. It exposes list, get, create, update, archive, and restore. Each method takes a single options object.