PromptCache icon

PromptCache

Read prompts, versions, variables, and render templates from PromptCache

Actions7

Version → Get Version

AI-generated

Summary

Fetches a published PromptCache version snapshot for a prompt. Choose a version by document ID or published version number; if neither is supplied, the operation resolves the latest published version.

Inputs

  • Prompt ID (required) — PromptCache prompt ID.
  • Version ID — Version document ID, such as one returned by List Versions. When provided, it takes precedence over Version Number.
  • Version Number — Published version number. Used when Version ID is empty; leave at 0 to fetch the latest published version.
  • PromptCache API credentials (required) — Requires a PromptCache API key with prompts:read scope and an API base URL.

Output shape

A single version snapshot object per input item.

The snapshot is returned directly as JSON. If no version number is given, the node resolves the prompt’s current published version, falling back to the first listed published version when needed; it errors if no published version exists.

Links

Discussion