Skip to content

API tokens

An API token is the password Power BI uses to read your data. One token works for all of your datasources. Most people need two: one for Power BI Desktop and one for the Power BI Service.

  1. Open the API Tokens tab.
  2. Enter a Label that says where you’ll use it, such as Power BI Desktop.
  3. Choose when it expires (see below).
  4. Select Create token.

The API Tokens tab with the New API token form: label and expiry date

The token appears at the top of the page. Copy it now. It is shown only once, and we can’t show it to you again. If you lose it, just create a new one.

A newly created token shown once with a Copy button, and the token list below

Tokens start with zdo_. In Power BI, sign in with Basic, user name export, and the token as the password. See Load data into Power BI.

Your Zendesk role How long a token lasts
Admin You choose: from 1 day to 1 year
Agent or custom role 30 days

When a token expires, every report that uses it stops refreshing. Before that date, create a new token and put it into Power BI Desktop and the Power BI Service. See Replacing the token and When the token changes.

For each token you created, the list shows:

  • Token: its first few characters, so you can tell tokens apart.
  • Expires: the date it stops working.
  • Status: Active, Expired or Revoked.
  • Last used: when Power BI last read data with it. Never means it hasn’t been used yet.

Select Revoke next to a token, and it stops working right away. Revoke tokens you no longer need, and revoke a token immediately if someone else may have seen it.

The token list with a token’s Revoke button and its last-used time