How do I get the metadata from an `preview` type item? The preview items contain urls to external pages that I need to extract.
>
{
"output":
{
"id": "3458764612000528999",
"type": "preview",
"geometry": {
"width": 250,
"height": 223.5234375
},
"position": {
"x": -340.9169006347656,
"y": -154.68751525878906,
"origin": "center",
"relativeTo": "canvas_center"
},
"links": {
"self": "https://api.miro.com/v2/boards/uXjVLyMfaRI%3D/items/3458764612000528999"
},
"createdAt": "2025-01-01T19:01:43Z",
"createdBy": {
"id": "3074457346783176524",
"type": "user"
},
"isSupported": false,
"modifiedAt": "2025-01-01T19:01:43Z",
"modifiedBy": {
"id": "3074457346783176524",
"type": "user"
}
}
]
}
]
I also found that when you slect type `preview` from the dropdown in the official api doc you get a 400 error.
{
"type": "error",
"code": "2.0703",
"context": {
"fields": "
{
"field": "type",
"message": "Unexpected enum value preview, expected one of: text, shape, sticky_note, image, document, card, app_card, frame, embed, mindmap_node"
}
]
},
"message": "Invalid parameters",
"status": 400
}