GET
/
api
/
prompts
curl --request GET \
  --url https://app.langwatch.ai/api/prompts \
  --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

Response

200
application/json

Success

The response is of type object[].