How to configure grafana to invoke by URL API Key

Hi, thanks in advance!

I am newbie to using grafana. we have configured grafana to use it for Nagios graphs with DDBB Influxdb and with histou access. Everything works correctly, showing the corresponding graphs, upon user/password request.
But now we need the access without logging in to the platform in parallel with the user/password, and we have thought of doing it with API Key, for which we have generated an API Key(nagiosexp), but we don’t know how to use it in a URL call We have tried things like this:

https://nagiosexp:@SERVER/grafana/dashboard/script/histou.js?host=SERVER02&service=Load%20Average&orgId=1&refresh=30s

But we haven’t got it right.
Do I need to configure something in grafana? Are we making the call wrong using the URL?

thanks!

Is there no one who can help me?