Actions28
- Ingestion Actions
- Public API Actions
Public API → Get Prompt
AI-generatedSummary
Retrieve a specific prompt from Langfuse's Public API using the prompt name, with optional filtering by prompt label and version.
Inputs
- Prompt Name (required) — The exact name of the prompt to fetch from Langfuse.
- Prompt Label — Optional prompt label used as a query parameter to filter the prompt.
- Prompt Version — Optional prompt version used as a query parameter to fetch a specific version of the prompt.
- Show Advanced Fields — Toggle to reveal optional parameters like Prompt Label and Prompt Version.
Output shape
a single prompt record object with its details retrieved from Langfuse, or an error object if the prompt is not found or the request fails.
If 'Show Advanced Fields' is enabled, additional query parameters (Prompt Label and Prompt Version) will be included to refine the request. The 'Prompt Name' field is mandatory. The operation calls Langfuse's Public API and returns the prompt data matching the criteria. Error details from the API are surfaced to the user.
Examples
Example 1: Fetch prompt by name only
Set 'Prompt Name' to the desired prompt; leave advanced fields off.
Example 2: Fetch prompt by name and label
Enable 'Show Advanced Fields'; set 'Prompt Name' and 'Prompt Label'; optionally set 'Prompt Version'.