Retrieve prompt version
Retrieve prompt version
Request
This endpoint expects an object.
name
commit
environment
If provided, resolves to the version mapped to this environment for the prompt; mutually exclusive with commit and version_number
version_number
If provided, resolves to the version with this sequential number (e.g. v3); mutually exclusive with commit and environment
project_name
If provided, scopes the search to the specified project
Response
OK
template
id
version unique identifier, generated if absent
prompt_id
commit
version short unique identifier, generated if absent. it must be 8 characters long
version_number
sequential version number in the format v<N>; null for masks
metadata
type
version_type
version type discriminator; defaults to prompt_version
environments
change_description
variables
template_structure
created_at
created_by
environmentDeprecated
Deprecated: use ‘environments’ instead
Errors
400
Bad Request Error
404
Not Found Error
422
Unprocessable Entity Error