POST
/v1/private/prompts/versions/retrieve-by-idsRetrieve prompt versions by idsRetrieve a batch of prompt versions by their ids. Typically used by the UI to resolve mask overlays.
Request body
application/json
objectPromptVersionIdsRequest_Detail
idsarray of string · uuidrequiredShow child attributes
{
"ids": [
"00000000-0000-0000-0000-000000000000"
]
}Responses
array of object
Show array items
change_descriptionstringcommitstringversion short unique identifier, generated if absent. it must be 8 characters long
created_atstring · date-timecreated_bystringenvironmentstringDeprecated: use 'environments' instead
environmentsarray of stringShow child attributes
idstring · uuidversion unique identifier, generated if absent
metadataobjectprompt_idstring · uuidtagsarray of stringShow child attributes
templatestringrequiredtemplate_structurestringtypestringvariablesarray of stringShow child attributes
version_numberstringsequential version number in the format v<N>; null for masks
version_typestringversion type discriminator; defaults to prompt_version
[
{
"change_description": "string",
"commit": "string",
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"environment": "string",
"environments": [
"string"
],
"id": "00000000-0000-0000-0000-000000000000",
"metadata": {},
"prompt_id": "00000000-0000-0000-0000-000000000000",
"tags": [
"string"
],
"template": "string",
"template_structure": "chat",
"type": "jinja2",
"variables": [
"string"
],
"version_number": "string",
"version_type": "mask"
}
]objectErrorMessage_Detail
errorsarray of stringShow child attributes
{
"errors": [
"string"
]
}