News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
How to authenticate with REST API
Tags: rest api
Apr 29, 2020 at 6:13pm   •   2 replies  •  0 likes
ahmer a

I went through all the auth mechanisms and selected password authentication for my basic usage. But it can't seem to work although i have tried my best.

on this page, https://developers.ringcentral.com/guide/authentication/password-flow, it is noted:

Accept: application/json 
Content-Type: application/x-www-form-urlencoded 
Authorization: Basic cmVsLWFsbC1wZXJtaXNzaWXFjMmpRZmlQcnlkSUkweE92QQ==
grant_type=password&username=18559100010&extension=101&password=121212  

Can anyone explain are these request headers or request parameters? I'm myself confused and documentation pages seem to be scattered? Is the value in Authorization key is base64 encoded clientid and client secret or the username password combination? Any help would be appreciated.

2 Answers
answered on May 9, 2020 at 4:10am  

"Can anyone explain are these request headers or request parameters? I'm myself confused and documentation pages seem to be scattered? Is the value in Authorization key is base64 encoded clientid and client secret or the username password combination? "


Header:

Authorization header is Base64 format of clientId and client secret separated with ' : ' as follow:

  1. Authorization Basic <clientId:clientSecret in Base64>

Content-Type: application/x-www-form-urlencoded

url: https://platform.devtest.ringcentral.com/restapi/oauth/token

Body parameter :

username=<user name>&password=<password>&extension=<extension>&grant_type=password


 0
answered on Apr 29, 2020 at 7:18pm  

See these tutorials. Choose a language you are familiar with

https://developers.ringcentral.com/tutorials.html

Choose the Password Flow topic and select one of the tutorial from the "Access RingCentral platform services using native APIs" group.



 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us