# Search Email Social Icons

Lists social icon images already used by an email, with network, alt text and tooltip, most used first. Reuse these URLs for social blocks; invented editor-icon URLs render as missing images. Account-library images from list-email-editor-images also work. An empty result means this email has no existing icon to reuse.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "editorUrl": {
      "type": "string",
      "description": "Editor URL of the email, as a read returned it",
      "minLength": 12,
      "maxLength": 500
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "editorUrl"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "emailId",
    "editorUrl",
    "count",
    "icons"
  ],
  "properties": {
    "emailId": {
      "type": "integer"
    },
    "editorUrl": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "icons": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "src",
          "name",
          "alt",
          "title",
          "usedBy"
        ],
        "properties": {
          "src": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "alt": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "usedBy": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```

