Files URL / or reading file using Lambda

Hello,

I need to let the user upload local files and send them to a 3rd party app.
Can I read the files in the collection using the API?
Is there a way to get a secured link to the file that I can share with a third party without needing to download and upload it again?

Thanks!

Hi @yoavnativ,

Yes, we provide the URL of the file in the API response from which you can read the file. You can share that link as well with the 3rd party.

But in the above case the URL is public. In case of private files, we don’t share the Public URL but you get a signed URL valid only for a few seconds.

Thanks.

Thanks. I saw the NPM package and I tried to run in nodejs but I’m getting an error when I try to create the constructor:

Getting DrapcodeApi is not a constructor.

const api = new DrapcodeApis(…

Can you share a one file that I can run in nodejs?

Thanks.

@yoavnativ,

Can you please share the screenshot of the error?

Thanks.

Here you go. I made is super simple and removed all the other lines: