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": {}
}
}
}
Get a specific prompt
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": {}
}
}
}
Success
The response is of type object
.
Was this page helpful?