GET
/
api
/
prompts
Prompt List
curl --request GET \
  --url https://app.asserto.ai/api/prompts
{
  "data": [
    {
      "slug": "<string>",
      "messages": [
        {
          "role": "<string>",
          "content": {
            "type": "<string>",
            "text": "<string>"
          }
        }
      ],
      "model": {
        "id": 123,
        "name": "<string>",
        "kind": "system",
        "provider": "<string>",
        "url": "<string>",
        "config": {},
        "pricing": {
          "tkInput": "<string>",
          "tkOutput": "<string>",
          "tkCacheWrite": "<string>",
          "tkCacheRead": "<string>"
        }
      },
      "genParams": {
        "temperature": 0.1
      },
      "respFormat": "<string>",
      "outputSchema": {
        "name": "<string>",
        "description": "<string>",
        "schema": {
          "type": "object",
          "properties": {},
          "required": [],
          "additionalProperties": false
        },
        "strict": false
      },
      "variables": [],
      "tools": [
        {
          "name": "<string>",
          "description": "",
          "inputSchema": {
            "type": "object",
            "properties": {},
            "required": [
              "<string>"
            ]
          }
        }
      ]
    }
  ]
}

Headers

authorization
string

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

Response

200
application/json

Successful Response

The response is of type object.