How to get status code from API response from API Node without using parse api

how to get status code when we are getting response from API in journey.

same status code as what we have in API Event Data explorer.

e.g. : 200, 502, 400, err, etc.

ymLib.args.apiResponse.statusCode

This should do.

1 Like

so i just need to create new function after api call isnt it?

i need to do this in cloud platform

Yes. you need to create a function and apply the code