Need suggestion for giving payload in alpha api call

right now im adding payload for the api like this is there any option for giving the entire CO object as the payload instead of doing like this ?

image

how to fix this ? @Sam @Simphiwe

@Aswin,

You can have all your payload inside one key in co and just map it on payloads.
But before that you have to prepare your payload on the before request or a code trigger before the API trigger

Can you check the network tab and share a screenshot so we can get more charity on the Error.

@Simphiwe

Hello @Aswin ,
Which api url is this, are you trying to create a case??

Hi @Sam @Simphiwe

this is the api call for the backend to pass the data of the user from there i will call an api to REELS for checking STP and if it is not and STP i will create a case there thats how i have planned right now

Hey @Aswin, I dont think you can provide the localhost like that, can you try the deployed one.

how can we read the deployed one value because i dont know which one is pointing to the localhost:8081 @shas

@Aswin you can deploy your ssd and hardcode the http protocol + domain instead of localhost:8081

could you please give me a guide about that ?

Guide on deployment?, or you already have the application url with you?

I havent done anything i just created the alpha and trying to call an api to the backend its my first time doing this so i dont have any idea about this @shas

Got it bro, so basically your integration is running on local and you want to call that from alpha, let me ask you one thing, are you facing this issue only when you tried to map whole co data? or even with normal payload? @Aswin

Actually i havent tried to pass the entire co object im doing it like this way

the error which im getting is

in the network tab i can see the payload there in the body

@shas @Sam @Simphiwe

@Aswin instead of the localhost can u try putting https://dummyjson.com and /posts/add as endpoint with same payload. please analyse.

same error again

@shas

Can u copy the payload from network or console and try hitting your api from postman

i called the api with similar payload not exact one and it is working.

when i try to call the api from the alpha the request it not even getting in the backen

Hi @Aswin ,

The reason you were getting the { "error": "Internal Server Error", "details": { "url": "Unknown URL", "method": "Unknown Method", "errorCode": "Unknown Error Code" } } It is because the last Alpha Studio update, access to third-party API calls was removed. So any third party API will need the URL to be whitelisted in the request app in order for it to be accessible and not throw that error.