v52

OpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-03308532588.7 KB
Prompts

Get prompt by id

Get prompt by id; when mask_id or environment is provided, requestedVersion is populated with the resolved version. mask_id and environment are mutually exclusive.

get/v1/private/prompts/{id}

Path parameters

idstring uuid required

Query parameters

mask_idstring uuid

Optional mask version id; when set, requestedVersion is the mask row for that id

environmentstring

Optional environment name; when set, requestedVersion is the version mapped to that environment for the prompt

Response

Prompt resource

idstring uuid
namestring required
project_idstring uuid

Project ID. Takes precedence over project_name when both are provided.

descriptionstring
template_structure'text' | 'chat'

Template structure type: 'text' or 'chat'. Immutable after creation.

tagsstring[]
created_atstring date-time
created_bystring
last_updated_atstring date-time
last_updated_bystring
version_countinteger