GET
/
api
/
prompts
/
{slug}
Prompt by Slug
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": "<string>",
    "provider": "<string>",
    "url": "<string>"
  },
  "genParams": {
    "temperature": 0.1
  },
  "respFormat": "<string>",
  "variables": [],
  "tools": [
    {
      "name": "<string>",
      "description": "<string>",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": [
          "<string>"
        ]
      }
    }
  ]
}

Headers

authorization
string

API Key in the format: Authorization: ApiKey <key>

Path Parameters

slug
string
required

Response

200
application/json

Successful Response

Prompt info with nested tool definitions