Account Access token

shubhdhanuka
New Contributor
Can you please help me with how to authenticate account level rest apis?

curl --request GET https://accounts.cloud.databricks.com/api/2.0/accounts/{account_id}/usage

I use Permanent Access Token to authenticate workspace APIs but it's not working for workspace APIs which is not 

In documentation, username and password was mentioned but I believe the username, password method to authenticate is deprecated now.

How to generate account access token, which I can pass in header as Authorization key.

 

szymon_dybczak
Esteemed Contributor III

Hi @shubhdhanuka ,

To get access to account API you cannot use personal access token. Instead, you must use the Microsoft Entra ID tokens of Azure Databricks account admins. Azure Databricks account admins can be users or service principals.

Below you can find all available authentication types that you can use:

Authentication for Azure Databricks automation - overview - Azure Databricks | Microsoft Learn

You should pick one that suits your need and follow guideline