Skip to main content

Overview

Use this endpoint to retrieve the contents of a prompt template from a specific project, either by version number or by tag. This is useful if you want to render the prompt locally, inspect its structure, or execute it manually with your own runtime.

Endpoint


Query Parameters

⚠️ You must provide either version or tag, but not both.

Example Request


Example Response


Validation Logic

If both version and tag are provided, the API will return:

Use Cases

  • Fetch prompt content for rendering inside your app or chatbot
  • Validate prompt structure before executing it
  • Preview and compare different versions for auditing

Error Codes


Coming Soon

  • Ability to fetch schema alongside prompt
  • Support for fetching multiple prompt variants in batch