I’ve found that when calling the ‘GET project files’ endpoint (
GET /v1/projects/:project_id/files) it excludes files with branches. This gist describes before/after curl requests that demonstrates the behavior. Between the two requests, I created a branch on the “Map” file. Notice how that record is no longer included in the API response.
I have not tested, but other team members have reported that even merging the branch into main does not resolve this exclusion in the API response. I expect that files with branches are not excluded from the API response. I expect to receive information on the file’s main branch.