Get tag and branch related to a commit id

Dear Gitea community,
I am learning about the Gitea APIs and could not find which endpoint should I use to find a branch name and/or a tag (if exists) related to a commit id.
If this is not possible with a single API endpoint. How?

thank you very much