curl --request GET \
    --url https://app.langtrace.ai/api/promptset?promptsetid=clw123ay10001v55p02lo1lmp&variables.name=langtrace&variables.org=chatbot \
    --header 'x-api-key: 5b4077b5068e79e9b2742fc65afa03327210c4c6f54d213b09f25b516d07ee9f'
{
  "id": "clw123ay10001v55p02lo1lmp",
  "name": "Slack Chatbot ",
  "description": "slack chatbot",
  "projectId": "clw12223e0001eapng5a66f2u",
  "createdAt": "2024-05-10T19:14:20.324Z",
  "updatedAt": "2024-05-10T19:14:20.324Z",
  "prompts": [
    {
      "id": "clw129y460001o8cgv2uksm3p",
      "value": "You are a slack chatbot for company langtrace and org chatbot",
      "variables": [
        "name",
        "org"
      ],
      "model": "gpt-3.5-turbo",
      "modelSettings": {},
      "version": 2,
      "live": true,
      "tags": [],
      "spanId": null,
      "note": "Slack chatbot prompt testing",
      "promptsetId": "clw123ay10001v55p02lo1lmp",
      "createdAt": "2024-05-10T19:19:30.293Z",
      "updatedAt": "2024-05-10T19:19:30.293Z"
    }
  ]
}
You can find the promptset_id when you click on Prompts -> <Your_Prompt_Registry> -> Prompt Registry ID
If no version is provided the live prompt in the registry is fetched. If there are no live prompts an error is thrown

A complete list of supported parameters for the GET promptset endpoint is provided below.

promptset_id
string
required

Id of the prompt registry. This can be found on the langtrace ui.

version
number

Prompt version to fetch from the prompt registry.

variables
object

Variables to replace in the prompt string. Usage is as follows: variables.<variable_name>=<variable_value>&variables.<variable_name>=<variable_value>

  curl --request GET \
    --url https://app.langtrace.ai/api/promptset?promptsetid=clw123ay10001v55p02lo1lmp&variables.name=langtrace&variables.org=chatbot \
    --header 'x-api-key: 5b4077b5068e79e9b2742fc65afa03327210c4c6f54d213b09f25b516d07ee9f'
{
  "id": "clw123ay10001v55p02lo1lmp",
  "name": "Slack Chatbot ",
  "description": "slack chatbot",
  "projectId": "clw12223e0001eapng5a66f2u",
  "createdAt": "2024-05-10T19:14:20.324Z",
  "updatedAt": "2024-05-10T19:14:20.324Z",
  "prompts": [
    {
      "id": "clw129y460001o8cgv2uksm3p",
      "value": "You are a slack chatbot for company langtrace and org chatbot",
      "variables": [
        "name",
        "org"
      ],
      "model": "gpt-3.5-turbo",
      "modelSettings": {},
      "version": 2,
      "live": true,
      "tags": [],
      "spanId": null,
      "note": "Slack chatbot prompt testing",
      "promptsetId": "clw123ay10001v55p02lo1lmp",
      "createdAt": "2024-05-10T19:19:30.293Z",
      "updatedAt": "2024-05-10T19:19:30.293Z"
    }
  ]
}