> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# marketo-emails

> Marketo Emails

**Server path:** `/marketo-emails` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                                                  | Description                          |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------ |
| [`marketo-emails_approve_email_draft`](#marketo-emails_approve_email_draft)                           | Approve Email Draft                  |
| [`marketo-emails_approve_email_template_draft`](#marketo-emails_approve_email_template_draft)         | Approve Email Template Draft         |
| [`marketo-emails_browse_emails`](#marketo-emails_browse_emails)                                       | Get Emails                           |
| [`marketo-emails_clone_email`](#marketo-emails_clone_email)                                           | Clone Email                          |
| [`marketo-emails_clone_email_template`](#marketo-emails_clone_email_template)                         | Clone Email Template                 |
| [`marketo-emails_create_email`](#marketo-emails_create_email)                                         | Create Email                         |
| [`marketo-emails_create_email_full_content`](#marketo-emails_create_email_full_content)               | Update Email Full Content            |
| [`marketo-emails_create_email_template`](#marketo-emails_create_email_template)                       | Create Email Template                |
| [`marketo-emails_delete_email`](#marketo-emails_delete_email)                                         | Delete Email                         |
| [`marketo-emails_delete_email_template`](#marketo-emails_delete_email_template)                       | Delete Email Template                |
| [`marketo-emails_discard_email_draft`](#marketo-emails_discard_email_draft)                           | Discard Email Draft                  |
| [`marketo-emails_discard_email_template_draft`](#marketo-emails_discard_email_template_draft)         | Discard Email Template Draft         |
| [`marketo-emails_get_email_by_id`](#marketo-emails_get_email_by_id)                                   | Get Email By Id                      |
| [`marketo-emails_get_email_by_name`](#marketo-emails_get_email_by_name)                               | Get Email by Name                    |
| [`marketo-emails_get_email_ccfields`](#marketo-emails_get_email_ccfields)                             | Get Email CC Fields                  |
| [`marketo-emails_get_email_content_by_id`](#marketo-emails_get_email_content_by_id)                   | Get Email Content                    |
| [`marketo-emails_get_email_dynamic_content`](#marketo-emails_get_email_dynamic_content)               | Get Email Dynamic Content            |
| [`marketo-emails_get_email_full_content`](#marketo-emails_get_email_full_content)                     | Get Email Full Content               |
| [`marketo-emails_get_email_template_by_id`](#marketo-emails_get_email_template_by_id)                 | Get Email Template by Id             |
| [`marketo-emails_get_email_template_by_name`](#marketo-emails_get_email_template_by_name)             | Get Email Template by Name           |
| [`marketo-emails_get_email_template_content_by_id`](#marketo-emails_get_email_template_content_by_id) | Get Email Template Content by Id     |
| [`marketo-emails_get_email_template_used_by`](#marketo-emails_get_email_template_used_by)             | Get Email Template Used By           |
| [`marketo-emails_get_email_templates`](#marketo-emails_get_email_templates)                           | Get Email Templates                  |
| [`marketo-emails_get_email_variables`](#marketo-emails_get_email_variables)                           | Get Email Variables                  |
| [`marketo-emails_send_sample_email`](#marketo-emails_send_sample_email)                               | Send Sample Email                    |
| [`marketo-emails_unapprove_email`](#marketo-emails_unapprove_email)                                   | Unapprove Email                      |
| [`marketo-emails_unapprove_email_template`](#marketo-emails_unapprove_email_template)                 | Unapprove Email Template Draft       |
| [`marketo-emails_update_email`](#marketo-emails_update_email)                                         | Update Email Metadata                |
| [`marketo-emails_update_email_content`](#marketo-emails_update_email_content)                         | Update Email Content                 |
| [`marketo-emails_update_email_dynamic_content`](#marketo-emails_update_email_dynamic_content)         | Update Email Dynamic Content Section |
| [`marketo-emails_update_email_template`](#marketo-emails_update_email_template)                       | Update Email Template Metadata       |
| [`marketo-emails_update_email_template_content`](#marketo-emails_update_email_template_content)       | Update Email Template Content        |
| [`marketo-emails_update_email_variable`](#marketo-emails_update_email_variable)                       | Update Email Variable                |

***

## marketo-emails\_approve\_email\_draft

Approve Email Draft

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_approve\_email\_template\_draft

Approve Email Template Draft

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_browse\_emails

Get Emails

**Parameters:**

| Parameter           | Type    | Required | Default | Description                                                                                                                                                                                       |
| ------------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `status`            | string  | No       | —       | Status filter for draft or approved versions                                                                                                                                                      |
| `folder`            | string  | No       | —       | JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'                                                                                            |
| `offset`            | integer | No       | —       | Integer offset for paging                                                                                                                                                                         |
| `maxReturn`         | integer | No       | —       | Maximum number of emails to return. Max 200, default 20                                                                                                                                           |
| `earliestUpdatedAt` | string  | No       | —       | Exclude emails prior to this date. Must be valid ISO-8601 string. See \<a href="`http://developers.marketo.com/rest-api/lead-database/fields/field-types/`">Datetime\</a> field type description. |
| `latestUpdatedAt`   | string  | No       | —       | Exclude emails after this date. Must be valid ISO-8601 string. See \<a href="`http://developers.marketo.com/rest-api/lead-database/fields/field-types/`">Datetime\</a> field type description.    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions",
        "enum": [
          "approved",
          "draft"
        ]
      },
      "folder": {
        "type": "string",
        "description": "JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'"
      },
      "offset": {
        "type": "integer",
        "description": "Integer offset for paging"
      },
      "maxReturn": {
        "type": "integer",
        "description": "Maximum number of emails to return. Max 200, default 20"
      },
      "earliestUpdatedAt": {
        "type": "string",
        "description": "Exclude emails prior to this date. Must be valid ISO-8601 string. See <a href=\"http://developers.marketo.com/rest-api/lead-database/fields/field-types/\">Datetime</a> field type description."
      },
      "latestUpdatedAt": {
        "type": "string",
        "description": "Exclude emails after this date. Must be valid ISO-8601 string. See <a href=\"http://developers.marketo.com/rest-api/lead-database/fields/field-types/\">Datetime</a> field type description."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_clone\_email

Clone Email

**Parameters:**

| Parameter     | Type    | Required | Default | Description                                                                                       |
| ------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------- |
| `id`          | integer | Yes      | —       | The id value                                                                                      |
| `description` | string  | No       | —       | Description of the asset                                                                          |
| `folder`      | object  | Yes      | —       | JSON representation of a folder                                                                   |
| `name`        | string  | Yes      | —       | Name of the new email asset                                                                       |
| `operational` | boolean | No       | —       | Whether the email is operational. Operational emails bypass unsubscribe status. Defaults to false |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "description": {
        "type": "string",
        "description": "Description of the asset"
      },
      "folder": {
        "type": "object",
        "description": "JSON representation of a folder",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Id of the folder"
          },
          "type": {
            "type": "string",
            "description": "Type of folder",
            "enum": [
              "Folder",
              "Program"
            ]
          }
        },
        "required": [
          "id",
          "type"
        ]
      },
      "name": {
        "type": "string",
        "description": "Name of the new email asset"
      },
      "operational": {
        "type": "boolean",
        "description": "Whether the email is operational. Operational emails bypass unsubscribe status. Defaults to false"
      }
    },
    "required": [
      "PCID",
      "id",
      "folder",
      "name"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_clone\_email\_template

Clone Email Template

**Parameters:**

| Parameter     | Type    | Required | Default | Description                     |
| ------------- | ------- | -------- | ------- | ------------------------------- |
| `id`          | integer | Yes      | —       | The id value                    |
| `description` | string  | No       | —       | Description of the asset        |
| `folder`      | object  | Yes      | —       | JSON representation of a folder |
| `name`        | string  | Yes      | —       | Name of the Email Template      |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "description": {
        "type": "string",
        "description": "Description of the asset"
      },
      "folder": {
        "type": "object",
        "description": "JSON representation of a folder",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Id of the folder"
          },
          "type": {
            "type": "string",
            "description": "Type of folder",
            "enum": [
              "Folder",
              "Program"
            ]
          }
        },
        "required": [
          "id",
          "type"
        ]
      },
      "name": {
        "type": "string",
        "description": "Name of the Email Template"
      }
    },
    "required": [
      "PCID",
      "id",
      "folder",
      "name"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_create\_email

Create Email

**Parameters:**

| Parameter        | Type    | Required | Default | Description                                                                                       |
| ---------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------- |
| `autoCopyToText` | boolean | No       | —       | Setting to automatically copy HTML version to Text version                                        |
| `description`    | string  | No       | —       | Description of the asset                                                                          |
| `folder`         | object  | Yes      | —       | JSON representation of a folder                                                                   |
| `fromEmail`      | string  | Yes      | —       | From-address of the Email                                                                         |
| `fromName`       | string  | Yes      | —       | From-name of the Email                                                                            |
| `name`           | string  | Yes      | —       | Name of the email                                                                                 |
| `operational`    | boolean | No       | —       | Whether the email is operational. Operational emails bypass unsubscribe status. Defaults to false |
| `replyEmail`     | string  | Yes      | —       | Reply-To address of the Email                                                                     |
| `subject`        | string  | Yes      | —       | Subject Line of the Email                                                                         |
| `template`       | integer | Yes      | —       | Id of the parent template                                                                         |
| `textOnly`       | boolean | No       | —       | Setting to include text-only version of email when sent                                           |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "autoCopyToText": {
        "type": "boolean",
        "description": "Setting to automatically copy HTML version to Text version"
      },
      "description": {
        "type": "string",
        "description": "Description of the asset"
      },
      "folder": {
        "type": "object",
        "description": "JSON representation of a folder",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Id of the folder"
          },
          "type": {
            "type": "string",
            "description": "Type of folder",
            "enum": [
              "Folder",
              "Program"
            ]
          }
        },
        "required": [
          "id",
          "type"
        ]
      },
      "fromEmail": {
        "type": "string",
        "description": "From-address of the Email"
      },
      "fromName": {
        "type": "string",
        "description": "From-name of the Email"
      },
      "name": {
        "type": "string",
        "description": "Name of the email"
      },
      "operational": {
        "type": "boolean",
        "description": "Whether the email is operational. Operational emails bypass unsubscribe status. Defaults to false"
      },
      "replyEmail": {
        "type": "string",
        "description": "Reply-To address of the Email"
      },
      "subject": {
        "type": "string",
        "description": "Subject Line of the Email"
      },
      "template": {
        "type": "integer",
        "description": "Id of the parent template"
      },
      "textOnly": {
        "type": "boolean",
        "description": "Setting to include text-only version of email when sent"
      }
    },
    "required": [
      "PCID",
      "folder",
      "fromEmail",
      "fromName",
      "name",
      "replyEmail",
      "subject",
      "template"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_create\_email\_full\_content

Update Email Full Content

**Parameters:**

| Parameter | Type    | Required | Default | Description                                                                                                  |
| --------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------ |
| `id`      | integer | Yes      | —       | Id of the email                                                                                              |
| `content` | string  | Yes      | —       | Multipart file. File containing HTML document to update with. File cannot include JavaScript or script tags. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "Id of the email"
      },
      "content": {
        "type": "string",
        "description": "Multipart file. File containing HTML document to update with. File cannot include JavaScript or script tags."
      }
    },
    "required": [
      "PCID",
      "id",
      "content"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_create\_email\_template

Create Email Template

**Parameters:**

| Parameter     | Type   | Required | Default | Description                                                         |
| ------------- | ------ | -------- | ------- | ------------------------------------------------------------------- |
| `content`     | string | Yes      | —       | HTML content for template. Multipart file.                          |
| `description` | string | No       | —       | Description of the email template                                   |
| `folder`      | object | Yes      | —       | JSON representation of a folder                                     |
| `name`        | string | Yes      | —       | Name of the Email Template. Must be unique under the parent folder. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "content": {
        "type": "string",
        "description": "HTML content for template. Multipart file."
      },
      "description": {
        "type": "string",
        "description": "Description of the email template"
      },
      "folder": {
        "type": "object",
        "description": "JSON representation of a folder",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Id of the folder"
          },
          "type": {
            "type": "string",
            "description": "Type of folder",
            "enum": [
              "Folder",
              "Program"
            ]
          }
        },
        "required": [
          "id",
          "type"
        ]
      },
      "name": {
        "type": "string",
        "description": "Name of the Email Template. Must be unique under the parent folder."
      }
    },
    "required": [
      "PCID",
      "content",
      "folder",
      "name"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_delete\_email

Delete Email

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_delete\_email\_template

Delete Email Template

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_discard\_email\_draft

Discard Email Draft

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_discard\_email\_template\_draft

Discard Email Template Draft

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_by\_id

Get Email By Id

**Parameters:**

| Parameter | Type    | Required | Default | Description                                  |
| --------- | ------- | -------- | ------- | -------------------------------------------- |
| `id`      | integer | Yes      | —       | The id value                                 |
| `status`  | string  | No       | —       | Status filter for draft or approved versions |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions",
        "enum": [
          "approved",
          "draft"
        ]
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_by\_name

Get Email by Name

**Parameters:**

| Parameter | Type   | Required | Default | Description                                                                                            |
| --------- | ------ | -------- | ------- | ------------------------------------------------------------------------------------------------------ |
| `name`    | string | Yes      | —       | Name of the email                                                                                      |
| `status`  | string | No       | —       | Status filter for draft or approved versions                                                           |
| `folder`  | string | No       | —       | JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program' |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "name": {
        "type": "string",
        "description": "Name of the email"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions",
        "enum": [
          "approved",
          "draft"
        ]
      },
      "folder": {
        "type": "string",
        "description": "JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'"
      }
    },
    "required": [
      "PCID",
      "name"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_ccfields

Get Email CC Fields

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_content\_by\_id

Get Email Content

**Parameters:**

| Parameter | Type    | Required | Default | Description                                  |
| --------- | ------- | -------- | ------- | -------------------------------------------- |
| `id`      | integer | Yes      | —       | The id value                                 |
| `status`  | string  | No       | —       | Status filter for draft or approved versions |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions",
        "enum": [
          "approved",
          "draft"
        ]
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_dynamic\_content

Get Email Dynamic Content

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                  |
| ----------- | ------- | -------- | ------- | -------------------------------------------- |
| `id`        | integer | Yes      | —       | Id of email                                  |
| `contentId` | string  | Yes      | —       | Id of email dynamic content section          |
| `status`    | string  | No       | —       | Status filter for draft or approved versions |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "Id of email"
      },
      "contentId": {
        "type": "string",
        "description": "Id of email dynamic content section"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions",
        "enum": [
          "approved",
          "draft"
        ]
      }
    },
    "required": [
      "PCID",
      "id",
      "contentId"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_full\_content

Get Email Full Content

**Parameters:**

| Parameter | Type    | Required | Default | Description                                                                                            |
| --------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------ |
| `id`      | integer | Yes      | —       | Id of the email                                                                                        |
| `status`  | string  | No       | —       | Status filter for draft or approved versions. Defaults to approved if asset is approved, draft if not. |
| `leadId`  | integer | No       | —       | The lead id to impersonate. Email is rendered as though it was received by this lead.                  |
| `type`    | string  | No       | —       | Email content type to return. Default is HTML.                                                         |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "Id of the email"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions. Defaults to approved if asset is approved, draft if not.",
        "enum": [
          "approved",
          "draft"
        ]
      },
      "leadId": {
        "type": "integer",
        "description": "The lead id to impersonate. Email is rendered as though it was received by this lead."
      },
      "type": {
        "type": "string",
        "description": "Email content type to return. Default is HTML.",
        "enum": [
          "Text",
          "HTML"
        ]
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_template\_by\_id

Get Email Template by Id

**Parameters:**

| Parameter | Type    | Required | Default | Description                                  |
| --------- | ------- | -------- | ------- | -------------------------------------------- |
| `id`      | integer | Yes      | —       | The id value                                 |
| `status`  | string  | No       | —       | Status filter for draft or approved versions |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions",
        "enum": [
          "approved",
          "draft"
        ]
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_template\_by\_name

Get Email Template by Name

**Parameters:**

| Parameter | Type   | Required | Default | Description                                  |
| --------- | ------ | -------- | ------- | -------------------------------------------- |
| `name`    | string | Yes      | —       | The name value                               |
| `status`  | string | No       | —       | Status filter for draft or approved versions |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions",
        "enum": [
          "approved",
          "draft"
        ]
      }
    },
    "required": [
      "PCID",
      "name"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_template\_content\_by\_id

Get Email Template Content by Id

**Parameters:**

| Parameter | Type    | Required | Default | Description                                  |
| --------- | ------- | -------- | ------- | -------------------------------------------- |
| `id`      | integer | Yes      | —       | The id value                                 |
| `status`  | string  | No       | —       | Status filter for draft or approved versions |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions",
        "enum": [
          "approved",
          "draft"
        ]
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_template\_used\_by

Get Email Template Used By

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                              |
| ----------- | ------- | -------- | ------- | -------------------------------------------------------- |
| `id`        | integer | Yes      | —       | Id of the email template                                 |
| `offset`    | integer | No       | —       | Integer offset for paging                                |
| `maxReturn` | integer | No       | —       | Maximum number of records to return. Max 200, default 20 |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "Id of the email template"
      },
      "offset": {
        "type": "integer",
        "description": "Integer offset for paging"
      },
      "maxReturn": {
        "type": "integer",
        "description": "Maximum number of records to return. Max 200, default 20"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_templates

Get Email Templates

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                              |
| ----------- | ------- | -------- | ------- | -------------------------------------------------------- |
| `offset`    | integer | No       | —       | Integer offset for paging                                |
| `maxReturn` | integer | No       | —       | Maximum number of records to return. Max 200, default 20 |
| `status`    | string  | No       | —       | Status filter for draft or approved versions             |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "offset": {
        "type": "integer",
        "description": "Integer offset for paging"
      },
      "maxReturn": {
        "type": "integer",
        "description": "Maximum number of records to return. Max 200, default 20"
      },
      "status": {
        "type": "string",
        "description": "Status filter for draft or approved versions",
        "enum": [
          "approved",
          "draft"
        ]
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_get\_email\_variables

Get Email Variables

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_send\_sample\_email

Send Sample Email

**Parameters:**

| Parameter      | Type    | Required | Default | Description                                                                                                   |
| -------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------- |
| `id`           | integer | Yes      | —       | Id of the email                                                                                               |
| `emailAddress` | string  | Yes      | —       | Email address to receive sample email                                                                         |
| `leadId`       | string  | No       | —       | Id of a lead to impersonate. Tokens and dynamic content will be populated as though it were sent to the lead. |
| `textOnly`     | boolean | No       | —       | Whether to send to text only version along with the HTML version. Default false.                              |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "Id of the email"
      },
      "emailAddress": {
        "type": "string",
        "description": "Email address to receive sample email"
      },
      "leadId": {
        "type": "string",
        "description": "Id of a lead to impersonate. Tokens and dynamic content will be populated as though it were sent to the lead."
      },
      "textOnly": {
        "type": "boolean",
        "description": "Whether to send to text only version along with the HTML version. Default false."
      }
    },
    "required": [
      "PCID",
      "id",
      "emailAddress"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_unapprove\_email

Unapprove Email

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_unapprove\_email\_template

Unapprove Email Template Draft

**Parameters:**

| Parameter | Type    | Required | Default | Description  |
| --------- | ------- | -------- | ------- | ------------ |
| `id`      | integer | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_update\_email

Update Email Metadata

**Parameters:**

| Parameter        | Type    | Required | Default | Description                                                                                       |
| ---------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------- |
| `id`             | integer | Yes      | —       | The id value                                                                                      |
| `autoCopyToText` | boolean | No       | —       | Setting to automatically copy HTML version to Text version                                        |
| `description`    | string  | No       | —       | Description of the asset                                                                          |
| `name`           | string  | No       | —       | Name of the Email                                                                                 |
| `operational`    | boolean | No       | —       | Whether the email is operational. Operational emails bypass unsubscribe status. Defaults to false |
| `preHeader`      | string  | No       | —       | Preheader text for the email                                                                      |
| `published`      | boolean | No       | —       | Whether the email has been published to Sales Insight. Default false                              |
| `textOnly`       | boolean | No       | —       | Setting to include text-only version of email when sent                                           |
| `webView`        | boolean | No       | —       | Whether the email has been enabled to allow the 'View as Web Page' when received                  |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "autoCopyToText": {
        "type": "boolean",
        "description": "Setting to automatically copy HTML version to Text version"
      },
      "description": {
        "type": "string",
        "description": "Description of the asset"
      },
      "name": {
        "type": "string",
        "description": "Name of the Email"
      },
      "operational": {
        "type": "boolean",
        "description": "Whether the email is operational. Operational emails bypass unsubscribe status. Defaults to false"
      },
      "preHeader": {
        "type": "string",
        "description": "Preheader text for the email"
      },
      "published": {
        "type": "boolean",
        "description": "Whether the email has been published to Sales Insight. Default false"
      },
      "textOnly": {
        "type": "boolean",
        "description": "Setting to include text-only version of email when sent"
      },
      "webView": {
        "type": "boolean",
        "description": "Whether the email has been enabled to allow the 'View as Web Page' when received"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_update\_email\_content

Update Email Content

**Parameters:**

| Parameter   | Type    | Required | Default | Description       |
| ----------- | ------- | -------- | ------- | ----------------- |
| `id`        | integer | Yes      | —       | The id value      |
| `fromEmail` | object  | No       | —       | From Email        |
| `fromName`  | object  | No       | —       | From Name         |
| `replyTO`   | object  | No       | —       | Reply TO          |
| `subject`   | object  | No       | —       | The subject value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "fromEmail": {
        "type": "object",
        "description": "From Email",
        "properties": {
          "type": {
            "type": "string",
            "description": "Field type"
          },
          "value": {
            "type": "string",
            "description": "Value of field"
          }
        },
        "required": [
          "type",
          "value"
        ]
      },
      "fromName": {
        "type": "object",
        "description": "From Name",
        "properties": {
          "type": {
            "type": "string",
            "description": "Field type"
          },
          "value": {
            "type": "string",
            "description": "Value of field"
          }
        },
        "required": [
          "type",
          "value"
        ]
      },
      "replyTO": {
        "type": "object",
        "description": "Reply TO",
        "properties": {
          "type": {
            "type": "string",
            "description": "Field type"
          },
          "value": {
            "type": "string",
            "description": "Value of field"
          }
        },
        "required": [
          "type",
          "value"
        ]
      },
      "subject": {
        "type": "object",
        "description": "The subject value",
        "properties": {
          "type": {
            "type": "string",
            "description": "Field type"
          },
          "value": {
            "type": "string",
            "description": "Value of field"
          }
        },
        "required": [
          "type",
          "value"
        ]
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_update\_email\_dynamic\_content

Update Email Dynamic Content Section

**Parameters:**

| Parameter     | Type    | Required | Default | Description                                                                                                                                                                                                |
| ------------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`          | integer | Yes      | —       | Id of email                                                                                                                                                                                                |
| `contentId`   | string  | Yes      | —       | Id of email dynamic content section                                                                                                                                                                        |
| `altText`     | string  | No       | —       | Sets the value of the alt parameter for the resulting img element                                                                                                                                          |
| `externalUrl` | string  | No       | —       | External Url                                                                                                                                                                                               |
| `height`      | integer | No       | —       | Overrides naitve height of the image. The resulting file will be resized to the given height                                                                                                               |
| `image`       | string  | No       | —       | Multipart file that allows you to add an image from your computer                                                                                                                                          |
| `linkUrl`     | string  | No       | —       | Link Url                                                                                                                                                                                                   |
| `overWrite`   | boolean | No       | —       | Allows overwriting of the existing image content section                                                                                                                                                   |
| `style`       | string  | No       | —       | Sets the value of the style parameter for the content section                                                                                                                                              |
| `type`        | string  | Yes      | —       | Type of content to set for the section.                                                                                                                                                                    |
| `value`       | string  | Yes      | —       | Value to set for the section. For type Text, the HTML content of the section. For type DynamicContent, the id of the segmentation to use for the content. For type Snippet, the id of the snippet to embed |
| `videoUrl`    | string  | No       | —       | Sets the Url of the video element. Videos must be either from YouTube or Vimeo                                                                                                                             |
| `width`       | integer | No       | —       | Overrides native width of the image. The resulting file will be resized to the given width                                                                                                                 |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "Id of email"
      },
      "contentId": {
        "type": "string",
        "description": "Id of email dynamic content section"
      },
      "altText": {
        "type": "string",
        "description": "Sets the value of the alt parameter for the resulting img element"
      },
      "externalUrl": {
        "type": "string",
        "description": "External Url"
      },
      "height": {
        "type": "integer",
        "description": "Overrides naitve height of the image. The resulting file will be resized to the given height"
      },
      "image": {
        "type": "string",
        "description": "Multipart file that allows you to add an image from your computer"
      },
      "linkUrl": {
        "type": "string",
        "description": "Link Url"
      },
      "overWrite": {
        "type": "boolean",
        "description": "Allows overwriting of the existing image content section"
      },
      "style": {
        "type": "string",
        "description": "Sets the value of the style parameter for the content section"
      },
      "type": {
        "type": "string",
        "description": "Type of content to set for the section.",
        "enum": [
          "Text",
          "DynamicContent",
          "Snippet"
        ]
      },
      "value": {
        "type": "string",
        "description": "Value to set for the section. For type Text, the HTML content of the section. For type DynamicContent, the id of the segmentation to use for the content. For type Snippet, the id of the snippet to embed"
      },
      "videoUrl": {
        "type": "string",
        "description": "Sets the Url of the video element. Videos must be either from YouTube or Vimeo"
      },
      "width": {
        "type": "integer",
        "description": "Overrides native width of the image. The resulting file will be resized to the given width"
      }
    },
    "required": [
      "PCID",
      "id",
      "contentId",
      "type",
      "value"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_update\_email\_template

Update Email Template Metadata

**Parameters:**

| Parameter     | Type    | Required | Default | Description                |
| ------------- | ------- | -------- | ------- | -------------------------- |
| `id`          | integer | Yes      | —       | The id value               |
| `description` | string  | No       | —       | Description of the asset   |
| `name`        | string  | No       | —       | Name of the Email Template |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "description": {
        "type": "string",
        "description": "Description of the asset"
      },
      "name": {
        "type": "string",
        "description": "Name of the Email Template"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_update\_email\_template\_content

Update Email Template Content

**Parameters:**

| Parameter | Type    | Required | Default | Description                                     |
| --------- | ------- | -------- | ------- | ----------------------------------------------- |
| `id`      | integer | Yes      | —       | The id value                                    |
| `content` | string  | No       | —       | Content for the email template. Multipart file. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "content": {
        "type": "string",
        "description": "Content for the email template. Multipart file."
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## marketo-emails\_update\_email\_variable

Update Email Variable

**Parameters:**

| Parameter  | Type    | Required | Default | Description                                                                                                       |
| ---------- | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
| `id`       | integer | Yes      | —       | The id value                                                                                                      |
| `name`     | string  | Yes      | —       | The name value                                                                                                    |
| `moduleId` | string  | No       | —       | Module that variable is associated with. Required for updating module variables. Not needed for global variables. |
| `value`    | string  | No       | —       | Value to update variable with                                                                                     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "moduleId": {
        "type": "string",
        "description": "Module that variable is associated with. Required for updating module variables. Not needed for global variables."
      },
      "value": {
        "type": "string",
        "description": "Value to update variable with"
      }
    },
    "required": [
      "PCID",
      "id",
      "name"
    ]
  }
  ```
</Expandable>
