Getting Data From an External JSON Response

Good day everyone ,

Im using an API and its response is
{
“success”: true,
“data”: {
“renderId”: “123.pdf”
}
}
Then i am setting the document viewer to display the link with the variable of the “renderId”
but I am not sure how to do it https://myapi/{{myapi.data.renderId}} isn’t working i also tried
https://myapi/{{myapi.data[0].renderId}} both are undefined .

Help is greatly appreciated .

thanks

Hi! Please try:

https://myapi/{{myapi.data.data.renderId}}
1 Like

Thank you so much , now it seems so obvious

1 Like