How to access request body from API request inside...
# support
z
hi im just wondering how do i access the request body after i make an API request. The request is going to make.com and its sending a reponse back but idk how to configure my workflow to respond based on the request body Workflow ID 3e60a010-c7f3-4157-93b2-b5b723336e09 https://cdn.discordapp.com/attachments/1382513387786997810/1382513388076273794/image.png?ex=68841ded&is=6882cc6d&hm=a1538e8de9f22749f7823cba4c1e2a90850db22a6acbb2a1c1bf0645ae113d69& https://cdn.discordapp.com/attachments/1382513387786997810/1382513388495831131/image.png?ex=68841ded&is=6882cc6d&hm=beac04fb67fdefef80e95c87abd649b3423de8884f0681360928bddb809de622&
v
To access the response body from your API request in a Vapi Workflow, define an output schema in your API Request node that matches the keys in your response. For your example, use:
Copy code
json
{
  "output": {
    "type": "object",
    "properties": {
      "found": { "type": "boolean" },
      "message": { "type": "string" },
      "BusinessName": { "type": "string" }
    }
  }
}
After this, you can use
{{found}}
,
{{message}}
, and
{{BusinessName}}
in conditions and prompts in later nodes. Tip: Make sure the property names match your API's response exactly for the variables to be available in your workflow. Source: - [API Request Node Documentation](https://docs.vapi.ai/workflows/nodes/api-request)
z
how do i configure this in the workflow dashbaord ui
c
Hey Zimmy, let me check with the team and get back to you on this. Why you can't extract the data out of the API request node?
z
idk how to its not within your documentation so was just asking how to do this so far theres no way for me to see what the reponse looks like or how i can access those values
c
Hey Zimmy, I checked with my team, and the API request node for output extraction is supported, but it's currently not supported at the frontend. Instead, it's supported at the backend. You can expect this feature to be deployed live in production within two to three days for the frontend as well.
a
We will get an announcement when this goes live?
c
Yes, you will get to know through announcements once this feature is live.
j
@Shubham Bajaj This does not work on the backend either. No matter what I do and where I put the object, all my requests to update a workflow node are rejected saying I should not specify "output" https://cdn.discordapp.com/attachments/1382513387786997810/1385795108225548329/Screenshot_2025-06-20_at_6.34.08_PM.png?ex=68575dc4&is=68560c44&hm=036b8d0c7800307baa9281aff622054bf0ea936d8bf4512b4729aedad82d9ca1&
c
Can you send the complete payload?
z
any update on this
c
Thank you for sending the payload. We are reviewing the details of your request and will reach out to you when we have an update or if we need additional information.
We will need some more information. Could you please send the complete payload in a file attachment?
4 Views