Thanks ! I solved that issue some times ago - please refer to the following post:
https://forum.aws.chdev.org/t/help-with-document-api-fetch-a-document/255/10?u=miroslaw_storoniak
I provided there other question connected with this topic.
I would be grateful for a support.
Best Regards,
M.