# Get Marketing Campaign Template

Reads an automation template's proposed import from a shared link or catalogue URI: included automations and objects, default account mappings, smart-import availability, blockers and untransferable references. Imports nothing.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "templateLink": {
      "type": "string",
      "description": "Template link as shared, e.g. https://app.klicktipp.com/template/1c5fz1uftzfzbe4b, or the uri of a catalogue template from search-automation-templates, e.g. klicktipp://automation-templates/teve",
      "minLength": 1,
      "maxLength": 2000
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "templateLink"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "templateName",
    "ownerName",
    "includedAutomations",
    "objects",
    "smartImportAvailable",
    "importable",
    "refusal",
    "notTransferable"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "templateName": {
      "type": "string"
    },
    "ownerName": {
      "type": "string"
    },
    "includedAutomations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "objects": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "type",
          "incomingId",
          "name",
          "suggestedExistingId",
          "suggestedExistingName"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "tag",
              "custom-field",
              "email",
              "outbound"
            ]
          },
          "incomingId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "suggestedExistingId": {
            "type": "string"
          },
          "suggestedExistingName": {
            "type": "string"
          }
        }
      }
    },
    "smartImportAvailable": {
      "type": "boolean"
    },
    "importable": {
      "type": "boolean"
    },
    "refusal": {
      "type": "string"
    },
    "notTransferable": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
```

