web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • powerbuilder Profile Picture
    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
    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
    Red Hodgerson Profile Picture
    on at
    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

Responsible AI policies

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

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 143

#2
DAnny3211 Profile Picture

DAnny3211 134

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans