How to retrieve a connection ID through REST API?

Is There a way to get connection id from a subscriber?
I want to use this endpoint from server side: ‘/api/sessions/<SESSION_ID>/connection/<CONNECTION_ID>’
So i need to get connection id. There some workaround, like save connection on streamCreated, but this is not safe at all.(user can send to my server a fake connection id)
Thks a lot!
Doug

GET /api/sessions/SESSION_ID brings all information of all connections and all streams:
https://docs.openvidu.io/en/2.13.0/reference-docs/REST-API/#get-apisessionsltsession_idgt

Thks for response Pablo!
I made my own method. Thks!