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,...
Answered

Consume CRM Web API

(0) ShareShare
ReportReport
Posted on by

Hi,

I need to provide the OOB CRM APIs to the third party vendor to consume this to create record in the crm system.

I am having a  bit confusion, how the authentication has been set for consuming this api.

We can create app registration in azure, so that we can get clientid.

When I try to consume api thru postman, we have to specify this clientid and as well as need to generate token. But in clientid itself, the necessary details encrypted right, why we need to generate token.

In case if try to consume this api from C# console application, how we can generate/validating token for this api.

Is any other way to consume the crm api without creating app registration in Azure..

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    If you use C# and the official SDK you just need the clientid/clientsecret, the authentication token process is done by the SDK.

    If you use the Web API with C# or another language (as you did with Postman) you need to get the token first.

  • Anandhcrm Profile Picture
    on at

    In case if try to consume this api from C# console application, how we can get the access token for this api.

  • Verified answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at

    Hello Anandh,

    When we want to use web API's in CRM, Azure will be act as the middleware for authentication and authorization purpose. Once we have access code we will able to use CRM webservices.

    As we already know that if a normal user try to login they have to do 2 way verification. similarly for CRM application user when it is used with azure app, It needs to generate access token which will be act as the temporary access for the CRM(respective API's assigned to azure app), and the reason is that to protect CRM services from outside attacks/vulnerabilities. you can say it is just like a otp which will let your application user use CRM for certain amount of time. once that specific time limit is lapsed then permission will be revoked and will needed new access token.

    Thank you,

    Amit Katariya

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 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

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

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans