GET
/
prompts
/
{promptId}
/
versions
/
{versionId}
curl --request GET \
  --url https://api.portkey.ai/v1/prompts/{promptId}/versions/{versionId} \
  --header 'x-portkey-api-key: <api-key>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "slug": "<string>",
  "name": "<string>",
  "collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "string": "<string>",
  "parameters": {},
  "prompt_version": 123,
  "prompt_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "prompt_version_status": "active",
  "prompt_version_description": "<string>",
  "prompt_version_label_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "virtual_key": "<string>",
  "model": "<string>",
  "functions": [
    {}
  ],
  "tools": [
    {}
  ],
  "tool_choice": {},
  "template_metadata": {},
  "is_raw_template": true,
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "last_updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

promptId
string
required
versionId
string
required

Response

200
application/json
Prompt version details

The response is of type object.