# Create Email Signature

Creates or copies an email signature. Name and tag IDs replace the source values; other supplied fields override copied ones, and omitted copied fields stay. HTML requires %%Link:Unsubscribe%% as the href of a link and %%User:FirstName%%, %%User:LastName%%, %%User:Street%%, %%User:Zip%%, %%User:City%% and %%User:Country%% (permitted address omissions excepted); plain text needs these too, though unsubscribe may be text. Transactional HTML requires address fields but no unsubscribe link; %%Link:SubscriberInfo%% is recommended. Plain text is stored only when plain-content editing is allowed, otherwise regenerated from HTML. Tags and sender address must exist; the sender needs a verified domain, and an omitted sender domain is derived and stored. Returns content flags only; use get-signature with includeContent true. No newsletter changes.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Unique name of the new signature",
      "minLength": 1,
      "maxLength": 250
    },
    "tagIds": {
      "type": "array",
      "description": "At least one existing tag ID for the new signature; every tag must be unassigned to another signature",
      "items": {
        "type": "integer",
        "minimum": 1
      },
      "maxItems": 50
    },
    "sourceSignatureId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "Existing signature of the same account to copy; omit when supplying content for a new signature",
      "default": null,
      "minimum": 1
    },
    "content": {
      "type": "object",
      "description": "Complete HTML, plain and transactional content block; required without a source and replaces copied content when supplied",
      "default": null,
      "properties": {
        "html": {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        "plain": {
          "type": "string",
          "maxLength": 65536
        },
        "useInTransactionalEmails": {
          "type": "boolean"
        },
        "transactionalHtml": {
          "type": "string",
          "maxLength": 65536
        }
      },
      "required": [
        "html"
      ],
      "additionalProperties": false
    },
    "senderProfile": {
      "type": "object",
      "description": "Optional sender, reply, CC, BCC, recipient and sender-domain fields; omitted copied fields are preserved, and the sender domain is derived from the resulting sender address when omitted",
      "default": null,
      "properties": {
        "senderName": {
          "type": "string",
          "maxLength": 250
        },
        "senderEmail": {
          "type": "string",
          "maxLength": 250
        },
        "replyToEmail": {
          "type": "string",
          "maxLength": 250
        },
        "ccEmail": {
          "type": "string",
          "maxLength": 250
        },
        "bccEmail": {
          "type": "string",
          "maxLength": 250
        },
        "toEmail": {
          "type": "string",
          "maxLength": 250
        },
        "senderDomain": {
          "type": "string",
          "maxLength": 250
        }
      },
      "additionalProperties": false
    },
    "vCard": {
      "type": "object",
      "description": "Optional plain-text digital-business-card fields; supplied fields override copied values, omitted copied fields stay, and empty strings clear fields",
      "default": null,
      "properties": {
        "firstName": {
          "type": "string",
          "maxLength": 128
        },
        "lastName": {
          "type": "string",
          "maxLength": 128
        },
        "companyName": {
          "type": "string",
          "maxLength": 128
        },
        "emailAddress": {
          "type": "string",
          "maxLength": 128
        },
        "phone": {
          "type": "string",
          "maxLength": 128
        },
        "cellPhone": {
          "type": "string",
          "maxLength": 128
        },
        "street": {
          "type": "string",
          "maxLength": 128
        },
        "zip": {
          "type": "string",
          "maxLength": 128
        },
        "city": {
          "type": "string",
          "maxLength": 128
        },
        "state": {
          "type": "string",
          "maxLength": 128
        },
        "country": {
          "type": "string",
          "maxLength": 128
        },
        "website": {
          "type": "string",
          "maxLength": 250
        }
      },
      "additionalProperties": false
    },
    "notes": {
      "type": [
        "null",
        "string"
      ],
      "description": "Internal note; on a copy, omit to preserve the source note",
      "default": null,
      "maxLength": 1000
    },
    "metaLabels": {
      "type": [
        "array",
        "null"
      ],
      "description": "Labels; on a copy, omit to preserve the source labels",
      "default": null,
      "items": {
        "type": "string",
        "maxLength": 250
      },
      "maxItems": 50
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account in which to create the signature; omit for the token account, or pass an accessible subaccount ID",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "name",
    "tagIds"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "signatureId",
    "name",
    "isDefault",
    "notes",
    "metaLabels",
    "tagIds",
    "isUsable",
    "blockers",
    "senderProfile",
    "vCard",
    "content",
    "editUrl"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "signatureId": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "isDefault": {
      "type": "boolean"
    },
    "notes": {
      "type": "string"
    },
    "metaLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tagIds": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "isUsable": {
      "type": "boolean"
    },
    "blockers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "senderProfile": {
      "type": "object",
      "required": [
        "senderName",
        "senderEmail",
        "replyToEmail",
        "ccEmail",
        "bccEmail",
        "toEmail",
        "senderDomain",
        "senderAddressStatus",
        "senderAddressIsUsable",
        "senderAddressExplanation",
        "senderIdentity"
      ],
      "properties": {
        "senderName": {
          "type": "string"
        },
        "senderEmail": {
          "type": "string"
        },
        "replyToEmail": {
          "type": "string"
        },
        "ccEmail": {
          "type": "string"
        },
        "bccEmail": {
          "type": "string"
        },
        "toEmail": {
          "type": "string"
        },
        "senderDomain": {
          "type": "string"
        },
        "senderAddressStatus": {
          "type": "string",
          "enum": [
            "",
            "dkim-valid",
            "not-confirmed",
            "no-domain",
            "dkim-invalid",
            "not-configured"
          ]
        },
        "senderAddressIsUsable": {
          "type": "boolean"
        },
        "senderAddressExplanation": {
          "type": "string"
        },
        "senderIdentity": {
          "type": "object",
          "required": [
            "effectiveSenderEmail",
            "customerDomain",
            "normalizedSenderDomain",
            "status",
            "isUsable",
            "senderEmailOptions",
            "senderDomainOptions"
          ],
          "properties": {
            "effectiveSenderEmail": {
              "type": [
                "string",
                "null"
              ]
            },
            "customerDomain": {
              "type": [
                "string",
                "null"
              ]
            },
            "normalizedSenderDomain": {
              "type": [
                "string",
                "null"
              ]
            },
            "status": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "ready",
                "address-not-configured",
                "address-not-confirmed",
                "address-not-usable",
                "address-blocked",
                "domain-not-configured",
                "domain-not-verified",
                "domain-not-yet-usable",
                "domain-mismatch",
                null
              ]
            },
            "isUsable": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "senderEmailOptions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "senderDomainOptions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "vCard": {
      "type": "object",
      "required": [
        "hasData",
        "firstName",
        "lastName",
        "companyName",
        "emailAddress",
        "phone",
        "cellPhone",
        "street",
        "zip",
        "city",
        "state",
        "country",
        "website"
      ],
      "properties": {
        "hasData": {
          "type": "boolean"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "companyName": {
          "type": "string"
        },
        "emailAddress": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "cellPhone": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "website": {
          "type": "string"
        }
      }
    },
    "content": {
      "type": "object",
      "required": [
        "hasHtml",
        "hasPlain",
        "hasTransactionalHtml",
        "useInTransactionalEmails",
        "html",
        "plain",
        "transactionalHtml"
      ],
      "properties": {
        "hasHtml": {
          "type": "boolean"
        },
        "hasPlain": {
          "type": "boolean"
        },
        "hasTransactionalHtml": {
          "type": "boolean"
        },
        "useInTransactionalEmails": {
          "type": "boolean"
        },
        "html": {
          "type": [
            "string",
            "null"
          ]
        },
        "plain": {
          "type": [
            "string",
            "null"
          ]
        },
        "transactionalHtml": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "editUrl": {
      "type": "string"
    }
  }
}
```

