Forum Discussion
Connect to Bamboo's REST API- Error"Web API key can only be specified when API key name is provided"
Here's how I connected to our BambooHR data:
1. <Optional> Create a service account in BambooHR and grant permissions to all the required fields for your query as well as the ability to create custom reports. Your service account will also need to have appropriate licensing in Office365.
2. Create a custom report in BambooHR with the fields required. Note the report ID at the end of the address when viewing the report.
3. Generate an API key in BambooHR. Make note of this API key because you will need it later.
4. Open Power BI and Get Data > Web > Address: https://api.bamboohr.com/api/gateway.php/companyDomain/v1/reports/id?format=csv (filling in the companyDomain and report ID with your data) > Username: <API key> > Password: <blank>
5. Create your visuals and publish your report to the Power BI service.
6. Refresh your data. If prompted, update the credentials for BambooHR using the Username: <API key> and Password: x.
Good luck to you!
- rush4 years agoHelper V
Anonymous Thank you very much.
I managed to view the data but cannot refresh the data in the power bi service with basic authentification.
Tried "" and x as the password and it fails each time.
Please help.
Thanks.- Anonymous4 years agoNot applicable
Are you using a data gateway to connect to BambooHR's API? Are you able to refresh the data in PowerBI Desktop? Have you made any changes to the report you are using to fetch the data?
- rush4 years agoHelper V
Anonymous Hi
I managed to get it to work by using the password "x" which is weird as I was using that the whole time.
I am able to refresh the data in power bi desktop and through the gateway now.
The struggle I have now is with getting photos which it is giving me back error 404.
I am trying to get back all employees photos with the URL below but fails:
https://api.bamboohr.com/api/gateway.php/Companydomain/v1/employees/id/photo/original
https://documentation.bamboohr.com/reference#photos-1