Thanks for your quick response, I got it working! I wasn’t quite sure of the functionality or usefulness of wp_localize_script()
but looked deeper and it was juts what I needed.
As another aside (I can make a new topic if you wish) I’ve just bought the pro version, as I am looking to pass a session key received from the initial request as a param into subsequent requests, including calls that will go to different APIs. Can dynamic variables can be placed into query string fields in the same way they can be placed into the endpoint field?