API Return format

What is the right return format from the api connector?

I run this at webtask but I can’t get the fields when I click “call initiated”

const response = {
    statusCode: 200,
    body: JSON.stringify({ res1: res1, res2 : res2 })
return response;

Give this a shot,

const response = { statusCode: 200, body: JSON.parse(JSON.stringify({ res1: res1, res2 : res2 }))};

I’m using this at Lambda so I’m not sure if it works there

This is my call and response in json format but how do I parse it or auto detect?

How come your using text as the data type?

Thanks! Works like a charm now!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.