Rich text attachments
Rich text fields are used in many parts of the API, usually indicated by fields with a "_html" suffix.
Attaching an image or file to a rich text field
- Upload the attachment
- Record the
data.file.attachable_sgidreference from the response - In the rich text body, include:
<action-text-attachment sgid="abc123"></action-text-attachment>Retrieving an attachment referenced in a rich text field
- Fetch the HTML content of the rich text field
- Determine the SGID of the attachment from the HTML
- Retrieve the attachment details via the API
- Download the attachment file from the
file.file_urlfield provided by the API response
Updated 4 months ago
