GET
/
prompts
/
types
curl --request GET \
  --url https://api-v2.autoblocks.ai/prompts/types \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "prompt-1",
    "appId": "cm83i1gtw00000cle3nf0gmtw",
    "slug": "my-app",
    "majorVersions": [
      {
        "majorVersion": "1",
        "minorVersions": [
          "1",
          "2"
        ],
        "templates": [
          {
            "id": "template-1",
            "template": "Hello {{name}}"
          }
        ],
        "toolsParams": [
          {
            "name": "tool-1",
            "params": [
              "param-1",
              "param-2"
            ]
          }
        ],
        "params": {
          "params": {
            "name": "param-1",
            "value": "value-1"
          }
        }
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

API Key created in the Autoblocks Webapp

Response

200 - application/json

The prompt types were returned successfully

Type information for the prompts available for the app used to auto generate types in the SDKs