Creating API in Node JS to send data

I’m new to Intercom and having been reading Javascript Api for a while. I’m wanting to make an JS api through which I could send and receive photos, videos and all kinds of media via Intercom.

My question is how it could be done through Intercom?

Thanks in advance.

Hello, thanks for your question.

You can use JavaScript fetch() method to send a get request to the API server of Intercom and based on your user id, it will return the photos.

I don’t know if intercom exposes any APIs that companies or third party can use to fetch the details from their server but if it does then you will get a token from them and every time you send a request, they will verify that token and if it is valid then you will get the photos, videos and all kind of media.

I hope this helps,

Best Regards,