Skip to main content

Attachment

Attachment

VARIABLETYPEDESCRIPTIONOPTIONAL
idString?Unique identifier of the attachment✔️
nameString?Name of the attachment✔️
urlString?URL of the attachment file✔️
typeAttachmentType?Type of the attachment✔️
indexInt?Index of the attachment in a collection✔️
widthInt?Width of the attachment (if applicable)✔️
heightInt?Height of the attachment (if applicable)✔️
awsFolderPathString?AWS folder path where the attachment is stored✔️
localFilePathString?Local file path of the attachment✔️
thumbnailUrlString?URL of the attachment thumbnail✔️
thumbnailAWSFolderPathString?AWS folder path for the thumbnail✔️
thumbnailLocalFilePathString?Local file path of the thumbnail✔️
metaAttachmentMeta?Metadata related to the attachment✔️
createdAtInt?Timestamp when the attachment was created✔️
updatedAtInt?Timestamp when the attachment was last updated✔️
isUploadedBoolIndicates if the attachment has been uploaded

Attachment Type

The AttachmentType enum represents different types of attachments:

TYPEDESCRIPTION
imageImage attachment
videoVideo attachment
audioAudio attachment
gifGIF attachment
pdfPDF document
docDocument file
documentGeneric document
linkURL link
voice_noteVoice note recording
unknownFallback for unexpected types

Attachment Meta

VARIABLETYPEDESCRIPTIONOPTIONAL
numberOfPageInt?Number of pages in the attachment✔️
sizeInt?Size of the attachment (in bytes)✔️
durationInt?Duration of the attachment (for media files)✔️