Create API tokens and dashboards for an organization
There are two authentication methods to access the API:
- Basic authentication: A Grafana Admin user can access some parts of the Grafana API through basic authentication.
- API Tokens: All organization actions are accessed through an API Token. An API Token is associated with an organization. It can be used to create dashboards and other components specific for that organization.
The task is to create a new organization and then add a Token that can be used by other users. In the examples below which use basic auth, the user is and the password is .
Optional step. If the org was created previously and/or step 3 fails then first add your Admin user to the org:
:
Using the Token that was created in the previous step, you can create a dashboard or carry out other actions without having to switch organizations.
- using the key (or bearer token as it is also called):