annotationClicked EventListener?

Hi,
I’m looking for a way to get the link details from the link that was clicked inside the annotation.
I’m not sure if this event exists.

But I was thinking on something like this

        api.addEventListener("annotationClicked", () => {
            console.log(this.dataset.url);
        }); 

Any help will be greatly appreciated.
Thank you

There is no event like this, best would be to use your own annotations “popup” as shown in the sample: