cURL
Request
Get Request Inputs
Retrieve the prompt template inputs (variables) used for a specific request made through AI Gateway prompt management.
GET
cURL
Documentation Index
Fetch the complete documentation index at: https://docs.helicone.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
When you use Prompt Management through the AI Gateway, template variables (inputs) are stored automatically. This endpoint lets you retrieve those inputs by request ID — useful for building testing pipelines that replay past requests against new prompt versions.Use Cases
- Regression testing: Pull a past request’s inputs and replay them against a new prompt version to validate behavior.
- Prompt comparison: Compare outputs across prompt versions using the same inputs, without storing inputs separately on your end.
- Debugging: Inspect the exact variables that were injected into a prompt template at runtime.
Request data is retained for 90 days. Plan your testing workflows accordingly.
Response
Returnsnull for data if the request has no associated inputs (e.g., the request was not made through prompt management, or the request ID doesn’t exist).