Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Setting up API access

(0) ShareShare
ReportReport
Posted on by 886

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?

  • powerbuilder Profile Picture
    powerbuilder 20 on at
    RE: Setting up API access

    Hi Lucas,

    Were you able to successfully test the API from a trial instance?

  • lucasalexander Profile Picture
    lucasalexander 886 on at
    RE: Setting up API access

    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."

  • Suggested answer
    RE: Setting up API access

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans