Microsoft To Do uses Exchange Online for storage and sync, which means that you can use the public Outlook Tasks REST API to access and/or update your account's tasks and see the changes in both Microsoft To Do and Microsoft Outlook.
You can find the Outlook Tasks REST API's public documentation here: Outlook Task REST API reference (version 2.0).