Integrating Chateau API with Power BI

This guide outlines the steps required to consume a Chateau’s API and integrate the data into Power BI for advanced analytics and reporting.

Generating an API Token

To securely access Chateau’s API, you first need to generate an API token. This token will authenticate your requests.


  1. Navigate to the API Access Tokens page in Majordomo.
  2. Click on the “Add API Access Token” button.

  1. Add a token description and select the Chateau database you’d like to access.
  2. Click “Create Token”

  1. Save the generated token securely; you will need it to make API requests.

    Keep your API token confidential to prevent unauthorized access to your data.

Getting Data in Power BI

Once you have your API token, you can use it to import data into Power BI.


  1. Open Power BI Desktop.
  2. Select “Get Data” > “Web” as the source.
  3. Enter the API endpoint URL, and use the “Advanced” settings to add headers for authentication.

    Note: See here for a list of currently available APIs.

  4. In the “Headers” section, enter Authorization for the key and Bearer <Your API Token> for the value.

  1. Load the data into Power BI for analysis.

Example Report

After loading your data into Power BI, you can create reports to visualize and analyze the data.


  1. Select the data fields to visualize.
  2. Customize the report with charts, filters, and slicers as needed.


Best Practices

When consuming Chateau’s API and using the data in Power BI, consider the following best practices to ensure efficient and secure data handling:

  • Secure Your API Token: Always keep your API token secure and avoid sharing it in your reports or with unauthorized individuals.

  • Minimize Data Load: Only request the data you need by using API parameters to filter data on the server side. This reduces network traffic and speeds up data retrieval.

  • Refresh Data Responsibly: Set up scheduled refreshes in Power BI at a frequency that balances up-to-date data with server load considerations. Avoid overloading the API server with too frequent requests.

    We recommend no more than once a day.

  • Error Handling: Implement error handling in your Power BI queries to gracefully handle API downtimes or changes. Use Power BI’s built-in functions to retry failed requests or alert you to issues.

By following these instructions and best practices, you can quickly integrate Chateau’s API data into Power BI, enabling powerful data analysis and reporting capabilities.

Was this article helpful? If not, please submit feedback below.