API post Body
Options
![Alexandre HUSSET](https://us.v-cdn.net/6037124/user_avatars/4302617.jpg)
Alexandre HUSSET
Member ✭
Hello all,
I am new here and I am trying to send a post request to my API with a Body that is a json.
my only issue is I do not know how to get the body in my API.
Thanks for your help
Alex
I am new here and I am trying to send a post request to my API with a Body that is a json.
my only issue is I do not know how to get the body in my API.
Thanks for your help
Alex
Comments
-
Two approaches. You can define fields you expect to receive in your body - e.g. part of the JSON - in the input variables. That way if your json is {"hello":"there"} and you have an input called hello, the value is "there."
There is also a "Utility Function" you can use to get the request body specifically called "Get All Input (Webhook)" so as to read the whole JSON (or whatever other body text) however it came across. -
Thanks a lot, I posted a first message because I had an issue but I solved it
many thanks you saved my night
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback