You can fetch a file in your repository using the API provided you know the commit ref and file path that you want to access.
|File contents for a particular path within a ref
|File contents by blob SHA Git only
refin this context can be a branch name, tag name or commit reference.
pathis the location of the file within your repository