List prompt versions
/v1/prompts/{slug}/versionsList prompt versions.
Returns every version of the prompt, newest first, without their messages. Requires membership of the prompt's workspace (organization admins have it). 404 when the prompt does not exist.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Path parameters
slugstringrequiredthe prompt's slug
Query parameters
organizationstringrequiredslug of the organization that owns it
Responses
prompt_slugstringSlug of the prompt.
dataobject[]The versions, without their content.
Child attributes
idstringThe version's unique id (UUID).
prompt_idstringId (UUID) of the prompt the version belongs to.
version_numberinteger<int32>The version's number within the prompt, from 1.
statusenum<string>Lifecycle state:
DRAFT(saved, never published),PUBLISHED(the prompt's published version; at most one at a time) orARCHIVED(was the published version until another version was published).One of
"DRAFT","PUBLISHED","ARCHIVED"labelsstring[]Labels currently pointing at this version, for example
production. Empty when none.modelstringThe model completions use, for example
gpt-4o. Null when none was set: a completion or test run must then sendmodel_override.created_atstring<date-time>When the version was saved (ISO 8601).
created_bystringIdentifier of the caller (user or API key) that saved the version, or
unknownwhen the caller could not be identified.