The docs show how the buddy files for a given file can be retrieved using the variables endpoint:
http://127.0.0.1:50519/v1/variables?{auth}&var={File.FullName}-{File.BuddyFiles}&id=99
I'm wondering if the same information is exposed through the files endpoint? I'm already having to call that to get other data about the files, so if BuddyFiles are exposed I can save a server round-trip :)
Budy files may or may not be in the database. IMatch dynamically searches the file system whenever buddy files are required for processing.
This is a very expensive to calculate variable.
Have you considered using the /files/relations endpoint? It can deliver versions, buddies or both.
Thanks Mario! I'd missed that endpoint when searching the docs :-[