HubSpot · JSON Structure

Marketing Emal Api Smtp Token With Password Structure

SMTP token with password (returned only on creation or password reset)

Type: object Properties: 7 Required: 6
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

SmtpTokenWithPassword is a JSON Structure definition published by HubSpot, describing 7 properties, of which 6 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id campaignName emailCampaignId createContact createdAt createdBy password

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/marketing-emal-api-smtp-token-with-password-structure.json",
  "name": "SmtpTokenWithPassword",
  "description": "SMTP token with password (returned only on creation or password reset)",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for the SMTP token",
      "example": "smtp-token-abc123"
    },
    "campaignName": {
      "type": "string",
      "description": "The name of the email campaign associated with this token",
      "example": "Password Reset Emails"
    },
    "emailCampaignId": {
      "type": "string",
      "description": "The ID of the associated email campaign",
      "example": "campaign-xyz789"
    },
    "createContact": {
      "type": "boolean",
      "description": "Whether sending an email creates a contact if one doesn't exist",
      "example": true
    },
    "createdAt": {
      "type": "datetime",
      "description": "When the token was created",
      "example": "2024-01-15T10:30:00.000Z"
    },
    "createdBy": {
      "type": "string",
      "description": "The user or application that created the token",
      "example": "user@example.com"
    },
    "password": {
      "type": "string",
      "description": "The SMTP password. Store securely - this cannot be retrieved again.",
      "example": "smtp-password-secret-value"
    }
  },
  "required": [
    "id",
    "createdAt",
    "createdBy",
    "campaignName",
    "createContact",
    "password"
  ]
}