Thank you for your inquiry. In order for me to assist you, can you please let me know with which API you are trying to connect? From the question below, I can understand you are talking about Node.js sample code. However, we need more details like API End Point, request and response parameters and the exact code you are stuck on.
(Note: Please mask any personal non-public information)
Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.