Emmaly
Emmaly14mo ago

Rest API Call Trigger: Is it possible to access the raw request body?

When using the Rest API Call trigger, is it possible to access the raw request body? I'm needing to receive text formatted in a way that does not auto-parse correctly into the request.body object and I'd like to access the raw body to parse it myself. I would understand that the auto-parse middleware would likely have consumed that raw body buffer already, but it would be nice to be able to disable auto-parsing so I can parse it myself. In my use case, I don't have control over the payload being sent, so I can't just send it in as properly formatted JSON. Thank you! 💖
1 Reply
Bhavya
Bhavya13mo ago
Hey @Emmaly, you can typically log the entire incoming payload using the "Log Message to Console" node and parse the data according to your requirements. In the attached screenshot, the Content type is application/x-www-form-urlencoded. Let me know if this works for you. If not, then could you share a bit more about the incoming payload structure and then we can go over it and make it work 🙂
No description