Get Prompt

Retrieve the Prompt with the given ID.

By default, the deployed version of the Prompt is returned. Use the query parameters version_id or environment to target a specific version of the Prompt.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

idstringRequired
Unique identifier for Prompt.

Query parameters

version_idstringOptional
A specific Version ID of the Prompt to retrieve.
environmentstringOptional
Name of the Environment to retrieve a deployed Version from.

Response

Successful Response

Errors

422
Get Prompts ID Get Request Unprocessable Entity Error