Ship reliable, testable agents – not guesses. Better Agents adds simulations, evaluations, and standards on top of any framework. Explore Better Agents
Python
import requests url = "https://app.langwatch.ai/api/prompts/{id}" headers = {"X-Auth-Token": "<api-key>"} response = requests.get(url, headers=headers) print(response.text)
{ "id": "<string>", "handle": "<string>", "scope": "ORGANIZATION", "name": "<string>", "updatedAt": "<string>", "projectId": "<string>", "organizationId": "<string>", "versionId": "<string>", "version": 123, "createdAt": "<string>", "prompt": "<string>", "messages": [], "inputs": [ { "identifier": "<string>", "type": "str" } ], "outputs": [ { "identifier": "<string>", "type": "str", "json_schema": { "type": "<string>" } } ], "model": "<string>", "authorId": "<string>", "commitMessage": "<string>", "temperature": 123, "maxTokens": 123, "demonstrations": { "id": "<string>", "name": "<string>", "inline": { "records": {}, "columnTypes": [ { "name": "<string>", "type": "<string>", "id": "<string>" } ] } }, "promptingTechnique": { "type": "few_shot", "demonstrations": { "id": "<string>", "name": "<string>", "inline": { "records": {}, "columnTypes": [ { "name": "<string>", "type": "<string>", "id": "<string>" } ] } } }, "responseFormat": { "type": "json_schema", "json_schema": { "name": "<string>", "schema": {} } } }
Get a specific prompt
Specific version number to retrieve
x >= 0
Success
ORGANIZATION
PROJECT
Show child attributes
1
Was this page helpful?