HubSpot · JSON Structure

Conversations Api Attachment Structure

Represents a file attachment on a message.

Type: object Properties: 5
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

Attachment is a JSON Structure definition published by HubSpot, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id type url filename size

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/conversations-api-attachment-structure.json",
  "name": "Attachment",
  "description": "Represents a file attachment on a message.",
  "type": "object",
  "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": "uri",
      "description": "URL to access the attachment",
      "example": "https://api.hubapi.com/files/v3/files/attach_001"
    },
    "filename": {
      "type": "string",
      "description": "Original filename",
      "example": "invoice.pdf"
    },
    "size": {
      "type": "int32",
      "description": "File size in bytes",
      "example": 102400
    }
  }
}