Hey there
From what I can tell, this is not possible with SDK 2 as of now.
With version 1 of the SDK, you used to be able to listen to the WIDGETS_CREATED event, which is probably what you would need, since pasting a link creates a Text-widget (or a preview, if supported) on the board.
This and other events aren’t available in SDK 2 yet, but there’s a feature request on it on Miro’s Dev Platform “Roadmap”.
That’s for the SDK, but I’m not sure about what the REST API provides us with for such a use-case. Maybe the webhooks could help there too.
Hey John,
Thanks for your query. We do not support this feature at the moment, but you can certainly add this as a feature request here: https://developers.miro.com/page/roadmap.
In the meanwhile, as a workaround, you might also want to look at our recently released Webhooks REST APIs that you can probably use to listen to new text widgets created containing certain URLs and write a logic to create a card.
If you’d like to explore and learn more about Webhooks APIs, you can take a look at our documentation here: https://developers.miro.com/reference/webhooks-overview.
Thanks and have a good one!
Your friendly developer advocate,
Mira
Thanks for the reply, we’ll dive into webhooks to see if we can use them to solve this.