Skip to main content
GET
/
v4
/
templates
/
{templateId}
Get template by ID
curl --request GET \
  --url https://api.kadoa.com/v4/templates/{templateId} \
  --header 'x-api-key: <api-key>'
{
  "error": false,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "latestVersion": 123,
    "archivedAt": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "versions": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "version": 123,
        "prompt": "<string>",
        "schemaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdAt": "<string>",
        "schemaFields": [
          {
            "name": "<string>",
            "description": "<string>",
            "fieldType": "<string>",
            "example": "<string>",
            "dataType": "<string>",
            "isKey": true
          }
        ],
        "dataValidation": {
          "rules": [
            {
              "name": "<string>",
              "ruleType": "regex",
              "parameters": {},
              "description": "<string>",
              "targetColumns": [
                "<string>"
              ],
              "status": "enabled",
              "metadata": {}
            }
          ]
        },
        "notificationSettings": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "eventType": "<string>",
            "eventConfiguration": {},
            "enabled": true,
            "channels": [
              {
                "channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                "channelName": "<string>",
                "channelType": "<string>"
              }
            ]
          }
        ],
        "validationRules": [
          {
            "name": "<string>",
            "ruleType": "regex",
            "parameters": {},
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "description": "<string>",
            "targetColumns": [
              "<string>"
            ],
            "status": "enabled",
            "metadata": {}
          }
        ],
        "schemaName": "<string>",
        "schemaEntity": "<string>"
      }
    ],
    "workflowCount": 123,
    "hasPrompt": true,
    "hasSchema": true,
    "hasValidation": true,
    "hasNotifications": true
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

templateId
string<uuid>
required

Template ID

Response

200

Response wrapper for template detail

error
enum<boolean>
required

Error flag (always false on success)

Available options:
false
data
object
required

Template with versions