Menu
Grafana Cloud
Authentication
To access the Grafana Incident JSON/HTTP RPC API, you will need to create a Service Account and a Service account token from the Administration section in the sidebar.
Note: You do not need to create a service account token for the Incoming and Outgoing webhooks.
Learn more about Service accounts and tokens in the Administration documentation.
Get a service account token
An Admin user can generate a service account token through the Grafana web interface:
- Create a dedicated Service account for API access. It is recommended that you create a service account for each application.
- Give it the
Editor
role, so it is able to take action. - Add a token to the service account so the API can act on behalf of that account.
- Copy the token to your clipboard, and use it when making API calls.
Use the service account token
You will need to make HTTP requests with the following header:
Authorization: Bearer glsa_HOruNAb7SOiCdshU9algkrq7F...
If you’re using one of the official client libraries, you will likely provide this programmatically through environment variables or a secret manager.
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
Getting started with the Grafana LGTM Stack
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video
Intro to Kubernetes monitoring in Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.
Video
Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.