HubSpot · Schema

Attachment

Represents a file attachment on a message.

AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

Properties

Name Type Description
id string Unique identifier for the attachment
type string MIME type of the attachment
url string URL to access the attachment
filename string Original filename
size integer File size in bytes
View JSON Schema on GitHub

JSON Schema

hubspot-conversations-attachment-schema.json Raw ↑
{
  "type": "object",
  "description": "Represents a file attachment on a message.",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the attachment",
      "example": "attach_001"
    },
    "type": {
      "type": "string",
      "description": "MIME type of the attachment",
      "example": "application/pdf"
    },
    "url": {
      "type": "string",
      "description": "URL to access the attachment",
      "format": "uri",
      "example": "https://api.hubapi.com/files/v3/files/attach_001"
    },
    "filename": {
      "type": "string",
      "description": "Original filename",
      "example": "invoice.pdf"
    },
    "size": {
      "type": "integer",
      "description": "File size in bytes",
      "example": 102400
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Attachment"
}