New Rest API body isn't formatted correctly

Hey, quick question.

I’m trying to do an auth api post call to another service and WeWeb’s new Rest API action seems to be sending the literal string as the request body not the actual JSON. [object, object] format instead of true JSON. Here’s the formula.

In the old REST API action there was a “Raw body” option. Does that same option exist in the new API action within workflows?

Thanks!

Hi @esowers :waving_hand:

I’m not sure what you mean. The preview on your screenshot looks fine. What does the actual body sent to the API look like in the debugger when you test the action?

You can send a raw body when binding an object in Data > Body

Joyce,

Thanks for the reply. This was my mistake. I was doing a GET request on the new Rest API action and a POST on the old api action. So on the new one I was entering the JSON under query instead of body without realizing it. :person_facepalming:

I’m all set now. Working as intended :slight_smile:

Ah, perfect!