Forum Discussion
Connecting to an API....
Hi Anonymous,
I just created a Power BI report against KnowBe4 for one of our recent campaigns. I had much the same questions as I had not done this before and came across your post when I was searching for answers.
First off, when you enable the Reporting API in your Account Settings ensure you scroll all the way down and hit the save button. Some of their site settings save immediatley when you click on them and others you have to specifically click the save button. When I first enabled the API I was getting not authorized errors like you. I then scrolled all the way down (it's a long way) and saw a Save button. When I clicked that within a few seconds I started getting results.
To get the data I used the Web source. Enter the following:
- Click on the Advanced option
- In the URL Parts textbox enter the desired URL from the KnowBe4 API. Make sure to use https and not http otherwise KnowBe4 will reject it
- In the HTTP request header parameters section, in the left textbox enter "Authorization"
- In the right textbox enter "Bearer APIToken" , substituting your KnowBe4 API Token. Ensure there is a space between Bearer and your token.
That's it. When you click OK you should start seeing data come in.
Hope that helps.
Appreciate that this is old but thanks for this. Been struggling with this and this was the clearest and easiest instruction I've used that worked!
Though will add that when it prompts for credentials, to use "Anonymous" and resist the urge of using the API option.