POST
/
api
/
prompts
curl --request POST \
  --url https://app.langwatch.ai/api/prompts \
  --header 'Content-Type: application/json' \
  --header 'X-Auth-Token: <api-key>' \
  --data '{
  "name": "<string>"
}'
{
  "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

Body

application/json

Response

200
application/json

Success

The response is of type object.