View as Markdown
HubSpot icon

HubSpot ACTION

List Marketing Emails

Retrieves a list of marketing emails. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's HubSpot account once, then configure and run List Marketing Emails from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "hubspot-list-marketing-emails",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    hubspot: { authProvisionId: "apn_xxxxxxx" },
    createdAt: "Created At",
    createdAfter: "Created After",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

List Marketing Emails inputs
Property Type Description
createdAt Created At string
Only return Marketing Emails created at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ
Optional
createdAfter Created After string
Only return Marketing Emails created after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ
Optional
createdBefore Created Before string
Only return Marketing Emails created before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ
Optional
updatedAt Updated At string
Only return Marketing Emails updated at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ
Optional
updatedAfter Updated After string
Only return Marketing Emails updated after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ
Optional
updatedBefore Updated Before string
Only return Marketing Emails updated before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ
Optional
includeStats Include Stats boolean
Include statistics with emails
Optional
archived Archived boolean
Specifies whether to return deleted Marketing Emails
Optional
sort Sort string
Sort the results by the specified field
Optional
maxResults Max Results integer
The maximum number of results to return
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
hubspot-list-marketing-emails
Version
0.0.18
App
HubSpot
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes