cURL
curl --request GET \ --url https://app.asserto.ai/api/prompts/{slug}
{ "slug": "<string>", "messages": [ { "role": "<string>", "content": { "type": "<string>", "text": "<string>" } } ], "model": { "name": "<string>", "kind": "system", "provider": "<string>", "id": 123, "url": "<string>", "config": {}, "pricing": { "tkInput": "<string>", "tkOutput": "<string>", "tkCacheWrite": "<string>", "tkCacheRead": "<string>" } }, "genParams": { "temperature": 0.1 }, "respFormat": "<string>", "tools": [ { "name": "<string>", "inputSchema": { "properties": {}, "required": [ "<string>" ], "type": "object" }, "description": "" } ], "outputSchema": { "name": "<string>", "schema": { "properties": {}, "type": "object", "required": [], "additionalProperties": false }, "description": "<string>", "strict": false }, "variables": [] }
Get single prompt by slug.
Get only major versions
API Key in the format: Authorization: ApiKey <key>
Authorization: ApiKey <key>
Successful Response
Prompt info with nested tool definitions
Show child attributes
Schema for response when using response format json_schema