# Error in request on API

**URL:** https://community.graylog.org/t/error-in-request-on-api/8728
**Category:** Graylog Central (peer support)
**Created:** [February 6, 2019, 4:35pm UTC](https://community.graylog.org/t/error-in-request-on-api/8728 "2019-02-06T16:35:44Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![camilla-m](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@camilla-m](https://community.graylog.org/u/camilla-m)
#### Post date: [February 6, 2019, 6:59pm UTC](https://community.graylog.org/t/error-in-request-on-api/8728/3 "2019-02-06T18:59:01Z")

</div>

Yes… I created the role to metrics for the token user, tested through telegraf --config telegraf.conf --test if is this working, read about two other messages in this forum:

> [@Graylog-Telegraf-Grafana](https://community.graylog.org/t/graylog-telegraf-grafana/6894/4):
>
> you notice the part where you actually need to place your token? The important is username = "Your token here" password = "token" The Password token does not need a change - the username needs to be the token.

> [@Grafana in Graylog](https://community.graylog.org/t/grafana-in-graylog/6430):
>
> I’d like to thank your help in advance. I am trying to integrate Grafana in Graylog. I have installed Telegraf, Grafana, and Influxdb. Also, I am using this config [https://grafana.com/dashboards/2549](https://grafana.com/dashboards/2549) When testing it, I am getting an error: E! Error in plugin [inputs.graylog]: Response from url “[https://X.X.X.X:9000/api/system/metrics/multiple](https://X.X.X.X:9000/api/system/metrics/multiple)” has status code 401 (Unauthorized), expected 200 (OK) When accessing it in the browser: {“type”:“ApiError”,“message”:“HTTP 405 Method Not Allowed”}

I tested in curl with the endpoint [http://localhost:9000/api/cluster](http://localhost:9000/api/cluster) and it returns me a correct JSON… but in Grafana I can´’t get the data and the graphics.

---

_[View the full topic](https://community.graylog.org/t/error-in-request-on-api/8728)._
