Hello @AryanG
Thanks for reaching out!
- You can use List driveItem Versions Graph API to retrieve the versions of file.
- To retrieve the contents of a specific driveItem version, please follow this documentation.
Note: The above API doesn't support retrieving contents of current/latest version. However, you can follow this Graph documentation to retrieve contents of latest version.
Versions are returned in descending order (newest to oldest). The OData $orderBy query string parameter is not supported.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.