What I can't figure out is how to make the correct call to get the right REF for the article-ID I'm providing.
Everything should work in a browser and I don't have access to Node.JS or any similar environment from where it need to work.
Is it doable? Thanks
Thanks for reaching out to us!
Refs identify which version of the repository's content should be queried. All repositories will have at least one ref pointing to the latest published content called the master ref. You can use this repository method
client.getRefs();. It returns a promise that resolves with a list of all refs for the Prismic repository.
Are you caching the master ref? The master ref changes whenever you make any changes/publish content. So we don't recommend caching the master ref. Can you see the updated API response in the API browser? Here is the API browser documentation: The Rest API Browser - Documentation - Prismic.
Let me know if this answers your questions and if you have further questions.