I signed up for a trial of Customer Insights, and I would like to try out API access. I reviewed the swagger, but I have been unable to figure out how to actually authenticate to the API. Is there documentation for how to configure this?
I signed up for a trial of Customer Insights, and I would like to try out API access. I reviewed the swagger, but I have been unable to figure out how to actually authenticate to the API. Is there documentation for how to configure this?
Hi Lucas,
Were you able to successfully test the API from a trial instance?
Hi Red,
Thanks for the reply. My problem is in setting up API access from an external client like Postman to a trial instance of CI. I had started to set up an app registration in Azure AD to use OAuth for authentication, but keep getting errors like "Your organization does not have a subscription (or service principal) for the following API(s): Customer Insights."
Hi Lucas,
I'm not sure if you're asking how to authenticate on the Swagger page itself or outside it.
As I'm sure you've found the API docs at docs.microsoft.com/.../pm-apis are a bit short on auth info.
As far as Swagger goes, following the documentation idratherbewriting.com/.../pubapis_swagger.html and clicking the "Authorize" button pre-filled the client_id field for me and just checked the apiAcess scope
I took a Fiddler trace during a Customer Insights swagger auth session and it looks like it's using standard v1.0 AAD endpoint / ADAL patterns outlined at docs.microsoft.com/.../sample-v1-code . Let me know if you need more help in a specific language and I can see if I can knock up a quick example.
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156