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 .

    1. Optional step. If the org was created previously and/or step 3 fails then first add your Admin user to the org:

    2. :

    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.

    1. using the key (or bearer token as it is also called):