Section 4 · Authenticate the SDK

The credential you still need, and what authentication decides together with the instance ID.

Estimated time: 1 min

Why you need a token

You need three values to send conversation data: an Agent Observability endpoint URL, an instance ID, and a Grafana Cloud Access Policy Token, a credential from Grafana Cloud. The token is the one value you do not have yet.

What authentication decides

Agent Observability enforces tenant isolation so each tenant’s data is fully separated from the data of other tenants. The SDK auth configuration determines which tenant your data belongs to. In basic mode:

  • tenantId is your Grafana Cloud instance ID.
  • basicPassword is your Grafana Cloud Access Policy Token.

What the token adds

The token is the actual secret used to authenticate an action. Token permissions are controlled by the access policy they belong to.

Warning

The token is shown only once, so copy it when it appears.