Prompts
Read more about prompts from Prompts documentation.
Get a list of most recent prompts
Response
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Create a new prompt
Body
vault_ idinteger1llm_ modelstringgpt-4ollm_ system_ messagestringYou are a helpful assistant.llm_ settingsLlmSettingstitlestringMy PromptpromptstringThis is a prompt.parametersPromptParameterscategoriesArray<integer>keywordsstring | nullblog, coffee, writingResponse
Prompt object
Unauthorized
Forbidden
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Search for prompts (alternative GET method)
Parameters
searchstringqueryvault_ idintegerquerycategory_ idintegerqueryResponse
A paginated list of prompts
Unauthorized
Forbidden
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Search for prompts
Body
searchstringsearch termsvault_ idinteger1category_ idinteger1Response
A paginated list of prompts
Unauthorized
Forbidden
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Detach a prompt
Parameters
promptstring<uuid>requiredpathResponse
No Content
Unauthorized
Forbidden
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Attach a prompt
Body
vault_ idinteger1Parameters
promptstring<uuid>requiredpathResponse
No Content
Unauthorized
Forbidden
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get a single prompt
Parameters
promptstring<uuid>requiredpathfor_ editbooleanfalsequeryIf true, disables transparency template injection and skips generating an executed receipt.
X-PE-Team-IDintegerheaderOptional team ID override for CFO board execution telemetry.
X-PE-Expected-LLM-ModelstringheaderOptional expected LLM model override for CFO board execution telemetry.
Response
Prompt object with X-PE-Execution-ID header for CFO board execution telemetry.
Unauthorized
Forbidden
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Delete a prompt
Parameters
promptstring<uuid>requiredpathResponse
No Content
Unauthorized
Forbidden
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get a specific version of a prompt (current or history)
Parameters
promptstring<uuid>requiredpathversionintegerrequiredpathThe version number of the prompt
X-PE-Team-IDintegerheaderOptional team ID override for CFO board execution telemetry.
X-PE-Expected-LLM-ModelstringheaderOptional expected LLM model override for CFO board execution telemetry.
Response
Prompt object with X-PE-Execution-ID header for CFO board execution telemetry.
Unauthorized
Forbidden
Prompt or version not found
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get prompt suggestions
Parameters
promptstring<uuid>requiredpathResponse
A list of prompt suggestions
Unauthorized
Forbidden
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get prompt history
Parameters
promptstring<uuid>requiredpathResponse
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Create a new prompt suggestion
Body
prompt_ idstring<uuid>uuidllm_ modelstringgpt-4ollm_ system_ messagestringYou are a helpful assistant.llm_ settingsLlmSettingstitlestringMy PromptpromptstringThis is a prompt.parametersPromptParameterskeywordsstring | nullblog, coffee, writingResponse
Prompt suggestion object
Unauthorized
Forbidden
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get a single prompt suggestion
Parameters
suggestionstring<uuid>requiredpathResponse
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Reject a prompt suggestion
Parameters
suggestionstring<uuid>requiredpathResponse
No Content
Unauthorized
Forbidden
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Approve a prompt suggestion
Parameters
suggestionstring<uuid>requiredpathResponse
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get a single prompt history
Parameters
historystring<uuid>requiredpathResponse
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Restore a prompt history
Parameters
historystring<uuid>requiredpathResponse
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get a list of detached prompts
Response
A paginated list of detached prompts
Forbidden
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get a single detached prompt
Parameters
promptstring<uuid>requiredpathResponse
Prompt object
Forbidden
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Consult AI for prompt improvement
Body
categoriesArray<string>titlestringMy PromptpromptstringWrite a blog post about coffeeResponse
AI consult response
Unauthorized
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Check for prompts that need migration
Response
Number of prompts that need migration
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Migrate prompts to default vault
Response
No Content
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Export prompts to CSV
Body
vault_ idinteger1category_ idinteger1Response
CSV file download
Forbidden
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get a list of categories
Response
A list of categories
Unauthorized
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Create a new category
Body
namestringMy Categoryslugstringmy-categorydescriptionstringA category for my promptsResponse
Category object
Unauthorized
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Get a single category
Parameters
categoryintegerrequiredpathResponse
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Update a category
Body
namestringMy Categoryslugstringmy-categorydescriptionstringA category for my promptsParameters
categoryintegerrequiredpathResponse
Category object
Unauthorized
Forbidden
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Delete a category
Parameters
categoryintegerrequiredpathResponse
No Content
Unauthorized
Forbidden
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)Generate a slug from a string
Body
textstringSome TextResponse
Slug object
Unprocessable Entity
Authorization
ApiKeyAuthapiKey in headerBearerAuthhttp (bearer)