GET
/
api
/
prompts
/
{id}
curl --request GET \
  --url https://app.langwatch.ai/api/prompts/{id} \
  --header 'X-Auth-Token: <api-key>'
{
  "id": "<string>",
  "name": "<string>",
  "updatedAt": "<string>",
  "version": 123,
  "versionId": "<string>",
  "versionCreatedAt": "<string>",
  "model": "<string>",
  "prompt": "<string>",
  "messages": [
    {
      "role": "user",
      "content": "<string>"
    }
  ],
  "response_format": {
    "type": "json_schema",
    "json_schema": {
      "name": "<string>",
      "schema": {}
    }
  }
}

Authorizations

X-Auth-Token
string
header
required

Path Parameters

id
string
required

Response

200
application/json

Success

The response is of type object.