SKY API Bad Request in Power Automate.
I have a SKY API account with Client ID and 2 secret codes. I have my app registered. I have my scope and Redirect URI defined. I have created a flow in Power Automate manually triggered for 10 records just to test and I keep getting errors when testing. The last one was bad request even though I confirmed the client id and secret codes.
Answers
-
Clarification
I am using the client_credentials grant type to request an access token via a HTTP POST in Power Automate.
The request URI ishttps://oauth2.sky.blackbaud.com/token, method is POST, and the headerContent-Type: application/x-www-form-urlencoded.
Body is:grant_type=client_credentials&client_id=<my_client_id>&client_secret=<my_primary_secret>
I still get Bad Request (400) immediately.
The app is set as Confidential Client, the scope is Full Data Access, and IT confirms my account has no tenant restrictions.
I suspect this may be related to Blackbaud requiring explicit consent for the app, but I am unsure how to grant it for my account/tenant.0 -
If you are using Power Automate, there is no need for you to handle OAUTH2 to get the authorization token to make API calls.
You can use the Blackbaud connector that has built in authorization handling.
If for some reason you must use regular HTTP action to call Blackbaud SKY API endpoint, then you will want need to get auth token/refresh token outside of Power Automate to begin with (i.e. Postman). Then you can use Power Automate and the Auth API endpoint to refresh the token for use every 60 minutes. (auth token is only good for 60 minutes, refresh token is good for 365 days to refresh an auth token). You can search for "headless" on community to get post that teach you how to do it.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 213 bbcon®
- 1.4K Blackbaud Altru®
- 401 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 241 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 34 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 791 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

