Interacting with Generic HTTP POST response

When I’m creating an interaction with an Generic HTTP POST operation, is there a way for me to get the JSON returned by the POST and interact with it? I’d like to set state based on the response from a post. I can’t see any way to do that though.

1 Like

Hi @attainable_catshark, yes, you can do this by adding another step after this one to update state, and reference the result of this first step with $steps… We are still working to improve the ux and discoverability of this, but let me know if that helps for now.

Is there any documentation for this or $steps?

1 Like

I can’t find $steps in the documentation.

Screenshot 2023-04-03 at 6.08.05 PM.png

1 Like

Hey, did you find any solution for this. Facing the same issue!!!

@yang any update on this? can you share documentation on how to access response from previous step?

You should find it at $steps.httpPost

Hi, where exactly should this be found? It’s not available via the search button in the ‘Learn Plasmic’ section of the website:

Hi everyone :wave:, the documentation is here: Interactions and state reference | Learn Plasmic