Optionalcontent_MIME type of the attached file, e.g. "image/png" or "application/pdf". Present on file, artifact, and media types. null otherwise.
OptionaldescriptionShort description. The page meta-description for scraped_link, the artifact description for artifact, and the task description for task types. null on other types.
OptionalfilenameOriginal filename of the attached file, e.g. "report.pdf". Present on file, artifact, and media types. null otherwise.
OptionalheightHeight in pixels of the media item. Present on media type only. null otherwise.
Unique identifier for this attachment within the message.
Optionalimage_Height in pixels of the scraped preview image. Present on scraped_link type only. null otherwise.
Optionalimage_Image source metadata for inline rendering. Present on file, scraped_link, artifact, and media types when the content is an image. null otherwise.
Optionalimage_URL of the preview image extracted from the scraped page. Present on scraped_link type only. null otherwise.
Optionalimage_Width in pixels of the scraped preview image. Present on scraped_link type only. null otherwise.
Optionalmedia_The media category, e.g. "video" or "audio". Present on media type only. null otherwise.
OptionalnameDisplay name of the media item. Present on media type only. null otherwise.
OptionalobjectThe full embedded object payload. For task type, contains the task record. For action type, contains the action definition. null on other types.
OptionaltitleDisplay title. The page title for scraped_link, the artifact name for artifact, and the task title for task types. null on other types.
The attachment type. One of "file", "scraped_link", "artifact", "task", "media", or "action". Determines which additional fields are present.
OptionalurlURL to access the resource. A signed download URL for file and artifact types; the original URL for scraped_link; a media playback URL for media. null on task and action types.
OptionalvariantsArray of available encoding variants for the media item (e.g. different resolutions). Present on media type only. null otherwise.
OptionalversionVersion number of the attached artifact at the time of attachment. Present on artifact type only. null otherwise.
OptionalwidthWidth in pixels of the media item. Present on media type only. null otherwise.
A rich attachment associated with a message, such as a file, scraped link, artifact, task, media item, or inline action.