Trying to send a file with whatsapp api

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question:
I am trying to send invoices to my customers through whatsapp api. I make an api call to upload the invoice to WhatsApp and the copy it’s ID and paste it in my 2nd api call to send it to the customer. it’s not a good idea to do like that. So, I want to know, how I can pull my first call’s response in 2nd call’s variable.

Details (like screenshots):

How I found the problem:

I’ve already tried:

Hi @mission-participant4

Can you share the 1st API response so we can see the structure of the JSON?