scan document

There is a new document scan feature in notes and I was wondering if there is an API that can be used to bring this functionality into my app. If there is no API then can someone give any advice on how to approach this?