# Get Tag

Reads a tag’s type, meaning, origin, writability, notes, labels and contact count. Also reports tags automatically subscribed or unsubscribed when assigned and whether it marks test contacts.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "tagId": {
      "type": "integer",
      "description": "ID of the tag, as shown in the KlickTipp app URL",
      "minimum": 1
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "tagId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "id",
    "name",
    "type",
    "isWritable",
    "isTestContactTag",
    "multiValue",
    "description",
    "notes",
    "originName",
    "originId",
    "metaLabels",
    "contactCount",
    "subscribesToTagIds",
    "unsubscribesFromTagIds",
    "editUrl"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "isWritable": {
      "type": "boolean"
    },
    "isTestContactTag": {
      "type": "boolean"
    },
    "multiValue": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "originName": {
      "type": [
        "string",
        "null"
      ]
    },
    "originId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "metaLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "contactCount": {
      "type": "integer"
    },
    "subscribesToTagIds": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "unsubscribesFromTagIds": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "editUrl": {
      "type": "string"
    }
  }
}
```

