I got it working by changing the json response template to only pass the data that I want.
I followed this tutorial: Tutorial: Webhooks and Responses with Parsing (JSON, Mustache, Tokens)
I suspect the root of the problem is with using too much memory when importing the entire json response into the core as the official particle example suggests to do. Using response template in json is much more efficient.