Help with API

I have an api from a supplier which I need to get the access token.
I can get it… but I can’t get it to store in set value.
This is the data returned:

{“api1”:{“status”:200,“headers”:{“0”:“HTTP/1.1 200 OK”,“Date”:“Fri, 10 Apr 2020 04:20:18 GMT”,“Server”:“Jetty(7.6.21.v20160908)”,“Strict-Transport-Security”:“max-age=15768000”,“X-Frame-Options”:“SAMEORIGIN”,“X-XSS-Protection”:“1; mode=block”,“X-Content-Type-Options”:“nosniff”,“Content-Type”:“text/xml;charset=UTF-8”,“Cache-Control”:“max-age=0, private, must-revalidate”,“X-Request-Id”:“c071401f-5578-4ca6-9bff-324f41e60b3c”,“X-Runtime”:“0.094000”,“Accept-Ranges”:“none”,“Vary”:“Accept-Encoding”,“Content-Encoding”:“gzip”,“Transfer-Encoding”:“chunked”},“data”:"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n true</result>\n 9f8f50b2-aa2c-4185-b098-5b3b20c7a44e</token>\n 14:20 11-Apr-2020</expiry>\n</authentication>\n"}}

I need to save the part into a value. I have tried {{api1.data.token}} but this is not working
It seems to be returning it in XML format

Anyone any ideas???

Community Page
Last updated: