With version 1 this is how I used to communicate with DialogFlow Api!
fetch(configs.baseUrl + \"query?v=20150910\", { body: JSON.stringify({query: text,
You might be interested in this:
https://cloud.google.com/docs/authentication/api-keys