# Read Display Condition Capabilities

Lists available email display-condition types. With conditionTypes, also returns their comparisons, account entities, actions and timeframes for update-email-editor-display-condition. Entities are capped at 200 per type; entityCount reports the full count. Reads only.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "conditionTypes": {
      "type": "array",
      "description": "Kinds to read the field values of, as conditionType of the catalogue; omit for the catalogue alone",
      "default": null,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 250
      },
      "maxItems": 5
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "conditionTypes",
    "details"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "conditionTypes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "conditionType",
          "label",
          "group"
        ],
        "properties": {
          "conditionType": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "group": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "details": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "conditionType",
          "conditions",
          "entities",
          "entityCount",
          "actions",
          "timeframes"
        ],
        "properties": {
          "conditionType": {
            "type": "string"
          },
          "conditions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "condition",
                "label",
                "op",
                "needsEntity"
              ],
              "properties": {
                "condition": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "op": {
                  "type": "string"
                },
                "needsEntity": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          "entities": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "entity",
                "label",
                "actionFields"
              ],
              "properties": {
                "entity": {
                  "type": "integer"
                },
                "label": {
                  "type": "string"
                },
                "actionFields": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "additionalProperties": false
            }
          },
          "entityCount": {
            "type": "integer"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "action",
                "label"
              ],
              "properties": {
                "action": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "timeframes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "timeframe",
                "label",
                "value"
              ],
              "properties": {
                "timeframe": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "integer"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      }
    }
  }
}
```

