Back to all

Retrieve interaction with images and attachments

Hello,

We're trying to download all interaciton of type "email" in order to export them to eml files and import in our email client.

We've been able to retrieve our users and our interactions with your api.

However we have 2 remaining issues :

  1. When an email contains embedded image, the image is not visible in the "Description" property, and the Attachment property is false
  2. When the email contains one or multiple attachments, the property Attachment is true, but we did not find out how to retrieve those attachments.

**Exemple for those 2 cases : **The response shows a first email which is supposed to have an embeded image, the second email is supposed to have attached files.

How to retrieve the files for both cases?

{  
    "Interaction": {  
        "Scope": {  
            "Fields": {  
                "Key": 1,  
                "Subject": 1,  
                "Description": 1,  
                "StartDate": 1,  
                "EndDate": 1,  
                "Creator": 1,  
                "SecStatus": 1,  
                "Completed": 1,  
                "Priority": 1,  
                "AbEntries": 1,  
                "Leads": 1,  
                "Users": 1,  
                "WithKey": 1,  
                "With": 1,  
                "DisplayValue": 1,  
                "Duration": 1,  
                "Direction": 1,  
                "Attachment": 1,  
                "Recurring": 1,  
                "Source": 1,  
                "Result": 1,  
                "Type": {  
                    "Key": 1,  
                    "DisplayValue": 1,  
                    "Value": 1,  
                    "Icon": 1,  
                    "BiDirectional": 1,  
                    "External": 1  
                },  
                "Category": 1  
            }  
        },  
				"OrderBy": { // OrderBy (optional)  
						"PageKey": null,  
						"PageSize": 2,  
						"Fields": [  
								{  
										"CreationDate": "ASC"  
								}  
						]  
				},  
        "Criteria": {  
            "SearchQuery": {  
							"$AND":  [  
								{  
									"Type":{  
										"$EQ": "60002"  
									}  
								},  
								{  
									"Users": {  
										"$EQ": "VXNlcglSRU1J"  
									}  
								}  
							]  
            }  
        }  
    }  
}
{
    "Code": 0,
    "Interaction": {
        "Data": [
            {
                "Key": "RG9jdW1lbnQJMTIxMDQ4MjA1Mg==",
                "Subject": "Hello",
                "Description": "   \nHello, \n\nThis is a super email \n\n   ",
                "StartDate": "2026-03-03T18:03:35Z",
                "EndDate": "2026-03-03T18:03:35Z",
                "Creator": "VXNlcglSRU1J",
                "SecStatus": false,
                "Completed": null,
                "Priority": null,
                "AbEntries": [
                    "Q29udGFjdAkyMjA1MDUyNTIyMjczODY2NDAwMjlDCTE="
                ],
                "Leads": null,
                "Users": [
                    "VXNlcglSRU1J"
                ],
                "WithKey": null,
                "With": null,
                "DisplayValue": "Hello",
                "Duration": null,
                "Direction": 0,
                "Attachment": false,
                "Recurring": false,
                "Source": null,
                "Result": null,
                "Type": {
                    "Key": "60002",
                    "DisplayValue": "Email",
                    "Value": "60002",
                    "Icon": 61664,
                    "BiDirectional": true,
                    "External": false
                },
                "Category": null
            },
            {
                "Key": "RG9jdW1lbnQJMTIxMjc1OTA1Mw==",
                "Subject": "ksadhfksdf",
                "Description": "   \nCoucoucou \n\n  ",
                "StartDate": "2026-03-05T09:35:56Z",
                "EndDate": "2026-03-05T09:35:56Z",
                "Creator": "VXNlcglSRU1J",
                "SecStatus": false,
                "Completed": null,
                "Priority": null,
                "AbEntries": [
                    "Q29udGFjdAkyMjA1MDUyNTIyMjczODY2NDAwMjlDCTE="
                ],
                "Leads": null,
                "Users": [
                    "VXNlcglSRU1J"
                ],
                "WithKey": null,
                "With": null,
                "DisplayValue": "ksadhfksdf",
                "Duration": null,
                "Direction": 0,
                "Attachment": true,
                "Recurring": false,
                "Source": null,
                "Result": null,
                "Type": {
                    "Key": "60002",
                    "DisplayValue": "Email",
                    "Value": "60002",
                    "Icon": 61664,
                    "BiDirectional": true,
                    "External": false
                },
                "Category": null
            }
        ],
        "NextPageKey": "MAkwCTAJMg=="
    }
}

Thanks a lof for your assistance.