{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-schema/conversations-api-attachment-schema.json", "title": "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": "string", "format": "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": "integer", "description": "File size in bytes", "example": 102400 } } }