Hi
Is this the valid URL for API Authentication
/rest/<version>/oauth2/token
Hi
Is this the valid URL for API Authentication
/rest/<version>/oauth2/token
/rest/v11_20/oauth2/token for version 13.0 with body:
{
"grant_type":"password",
"client_id":"sugar",
"client_secret":"",
"username":"{{usr}}",
"password":"{{pwd}}",
"platform":"base"
}
{{usr}} and {{pwd}} contain your user and password.
You can use mobile instead of base also.
See https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.1/Integration/Web_Services/#Versioning for the actual versions until 13.1.
Hi Olivia Forde ,
It is, you can get more information on the Arguments here:
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_12.2/Integration/Web_Services/REST_API/Endpoints/oauth2token_POST/
I hope this helps.
André
I am using Postman Authorization but cannot set the Base. My Auth to V11 works fines
You can set your own API platform in asmin - Configure API platforms.
If you use "base" the user with the same userid will be cicked off from the UI when you use the API. Just use the existing "integration" or create a new one.
hi Andre Serrazina and Harald Kuske
I was asked by developers for this info as they haven't worked with SugarCRM previously, and are building an integration with an ecommerce website.
Their response was they only need username and password, no platform, secret etc...
Not being a developer myself, can you advise on an appropriate reply to explain the disadvantages of their method please?
Thank you in advance.
Since version 7 you need the platform, mandatory. I suppose they worked with the old REST API v4_1 which is still available but not supported anymore.
In tis old API you authenticate with
"user_auth":
{
"user_name":"{{usr}}",
"password":"{{pwd}}"},
"application_name":"SoapTest"
}