We have tried the above scenarios, as you mention did not get the type attribute.
As per document, type=Content type of the attachment.
which is already return in the above payload.
also, could you please elaborate more on itemscope and share the steps so that we can try it from our end?
{
"attachments": [
{
"contentType": "application/vnd.microsoft.teams.file.download.info",
"content": {
"downloadUrl": "https://m365x9462XXXX-my.sharepoint.com/personal/admin_m365x9462XXXX_onmicrosoft_com/_layouts/15/download.aspx?UniqueId=2392290d-ff20-4520-9862-f5bf588688e0&Translate=false&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9lNA&ApiVersion=2.0",
"uniqueId": "2392290d-ff20-4520-9862-f5bf588XXXXX",
"fileType": "png"
},
"contentUrl": "https://m365x9462XXXX-my.sharepoint.com/personal/admin_m365x9462XXXX_onmicrosoft_com/Documents/Microsoft Teams Chat Files/outline.png",
"name": "outline.png"
},
{
"contentType": "text/html",
"content": ""
}
],
"type": "message",
"timestamp": "2023-07-19T09:40:22.0157834Z",
"localTimestamp": "2023-07-19T15:10:22.0157834+05:30",
"id": "1689759621995",
"channelId": "msteams",
"serviceUrl": "https://smba.trafficmanager.net/amer/",
"from": {
"id": "29:1ikDJNiDL-7-Sb-LPAB7WTVaDlbPAzCyOUw6pSCQP_Pm",
"name": "MOD Administrator",
"aadObjectId": "e652dd92-dd63-4fcc-b5b2-2005681e8e9f"
},
"conversation": {
"conversationType": "personal",
"tenantId": "aa923623-ae61-49ee-b401-81f414b6ad5a",
"id": "a:1BKK_CYD1vE1bJWpV6B23n3pxd5xL6GhuXMCRbQkx5i59RwKgC"
},
"recipient": {
"id": "28:734601fc-bbcd-4a30-9092-3c89f8dXXXXX",
"name": "SBot"
},
"entities": [
{
"locale": "en-US",
"country": "US",
"platform": "Windows",
"timezone": "Asia/Calcutta",
"type": "clientInfo"
}
],
"channelData": {
"tenant": {
"id": "aa923623-ae61-49ee-b401-81f414bXXXXX"
}
},
"locale": "en-US",
"localTimezone": "Asia/Calcutta"
}