web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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?

I have the same question (0)
  • Suggested answer
    Red Hodgerson Profile Picture
    on at

    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.

  • lucasalexander Profile Picture
    886 on at

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

  • powerbuilder Profile Picture
    20 on at

    Hi Lucas,

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans