List prompts
/v1/promptsList prompts.
Returns a page of the organization's prompts. With workspace_id the list holds that workspace's prompts and needs membership of the workspace; without it the list covers the whole organization and needs an organization admin.
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.
Query parameters
organizationstringrequiredslug of the organization
workspace_idstring<uuid>id (UUID) of a workspace, to list only its prompts
searchstringkeeps the prompts on the returned page whose name or description contains this text (any case). It filters the page, not the whole list:
totalstill counts every promptpageinteger<int32>page number, from 1. Default 1
page_sizeinteger<int32>prompts per page. Default 20, at most 100
Responses
totalinteger<int64>Number of prompts in the organization, or in the workspace when
workspace_idwas given. It does not applysearch.pageinteger<int32>The page number, from 1.
page_sizeinteger<int32>Prompts per page.
dataobject[]The prompts on this page, after
searchis applied to the page.Child attributes
idstringThe prompt's unique id (UUID).
slugstringThe prompt's identifier in URLs and in the
x-prompt-slugheader. Generated at creation from the name (lower case, every run of other characters as one dash, at most 40 characters) plus a dash and 8 random hex characters, for examplesupport-reply-3f9a1c2b. It never changes.namestringDisplay name, unique within the organization.
descriptionstringFree-text description. Null when none is set.
organizationstringSlug of the organization that owns the prompt.
workspace_idstring<uuid>Id (UUID) of the workspace the prompt belongs to.
created_atstring<date-time>When the prompt was created (ISO 8601).
updated_atstring<date-time>When the prompt was created or its name or description last changed (ISO 8601). Saving versions does not change it.