Get file or directory contents Bitbucket Cloud V2

I am trying to read a content of a file with the rest api - but it request a commit …

And my question is why a commit and not a REF ? also if I use master/main instead it works - but feature/DEV-123-something it doesn’t because it can deal with the slash ( tried encoding as well)

Please HELP