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
What permissions are required for retrieving the address book?
Tags: permissions
Dec 4, 2015 at 7:50am   •   7 replies  •  0 likes
chris-goetz

While using the API Explorer to get the json response for retrieving the address book we receive a response indicating insufficient permissions. No matter what permissions we add to our application in the developer portal, we still receive this error. Do we need to request additional permissions for our application to use the address book?

7 Answers
answered on Dec 17, 2015 at 3:28pm  
Thank you Chris.

Please let me know if you do not see this full message. It is a JSON representation of the Address Book resource.

It should end with this: /******************JSON END**********************/

Here you go sir...good luck, and let me know how things are going (would love to have you write up a quick case-study of your RingCentral integration.

Happy Holidays,
Benjamin Dean
Developer Relations Manager
RingCentral, Inc.

/******************JSON START*******************/
{  "/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact": {
      "get": {
          "tags": [
              "Address Book"
          ],
          "summary": "Get Address Book",
          "produces": [
              "application/json"
          ],
          "consumes": [
              "application/json"
          ],
          "parameters": [
              {
                  "name": "accountId",
                  "in": "path",
                  "description": "Internal identifier of a RingCentral account or tilde (~) to indicate the account which was logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              },
              {
                  "name": "extensionId",
                  "in": "path",
                  "description": "Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              }
          ]
      },
      "post": {
          "tags": [
              "Address Book"
          ],
          "summary": "Create Single Contact",
          "produces": [
              "application/json"
          ],
          "consumes": [
              "application/json"
          ],
          "parameters": [
              {
                  "name": "accountId",
                  "in": "path",
                  "description": "Internal identifier of a RingCentral account or tilde (~) to indicate the account which was logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              },
              {
                  "name": "extensionId",
                  "in": "path",
                  "description": "Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              },
              {
                  "name": "body",
                  "in": "body",
                  "description": "A JSON body with contact informaion where firstName, lastName, middleName, nickName are strings - representing contact name; company, jobTitle are strings - contact job; homePhone, homePhone2, businessPhone, businessPhone2, mobilePhone, businessFax, companyPhone, assistantPhone, carPhone, otherPhone, otherFax, callbackPhone are strings - contact phone numbers; email, email2, email3 are strings - contact email addresses; homeAddress, , are Contact Address Info objects - contact post addresses; birthday is a string - contact's date of birth; webPage is a string - contact's web page URL; notes is a string - extra notes for contact",
                  "defaultValue": "{\n  \"firstName\": \"Vanessa\", \n  \"lastName\": \"May\", \n  \"businessAddress\": { \n    \"street\": \"2 Marina Blvd\", \n    \"city\": \"San-Francisco\", \n    \"state\": \"CA\", \n    \"zip\": \"94123\" \n } \n}",
                  "required": true,
                  "type": "string",
                  "format": "string"
              }
          ]
      }
  },
  "/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact/{contactId}": {
      "get": {
          "tags": [
              "Address Book"
          ],
          "summary": "Get Contact",
          "produces": [
              "application/json"
          ],
          "consumes": [
              "application/json"
          ],
          "parameters": [
              {
                  "name": "accountId",
                  "in": "path",
                  "description": "Internal identifier of a RingCentral account or tilde (~) to indicate the account which was logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              },
              {
                  "name": "extensionId",
                  "in": "path",
                  "description": "Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              },
              {
                  "name": "contactId",
                  "in": "path",
                  "description": "Internal identifier of a contact record in the RingCentral database",
                  "required": true,
                  "allowMultiple": true,
                  "type": "string",
                  "format": "string"
              }
          ]
      },
      "put": {
          "tags": [
              "Address Book"
          ],
          "summary": "Modify Contact",
          "produces": [
              "application/json"
          ],
          "consumes": [
              "application/json"
          ],
          "parameters": [
              {
                  "name": "accountId",
                  "in": "path",
                  "description": "Internal identifier of a RingCentral account or tilde (~) to indicate the account which was logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              },
              {
                  "name": "extensionId",
                  "in": "path",
                  "description": "Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              },
              {
                  "name": "contactId",
                  "in": "path",
                  "description": "Internal identifier of a contact record in the RingCentral database",
                  "required": true,
                  "allowMultiple": false,
                  "type": "string",
                  "format": "string"
              }
          ]
      },
      "delete": {
          "tags": [
              "Address Book"
          ],
          "summary": "Delete Contact",
          "produces": [
              "application/json"
          ],
          "consumes": [
              "application/json"
          ],
          "parameters": [
              {
                  "name": "accountId",
                  "in": "path",
                  "description": "Internal identifier of a RingCentral account or tilde (~) to indicate the account which was logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              },
              {
                  "name": "extensionId",
                  "in": "path",
                  "description": "Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session",
                  "notes": "",
                  "paramType": "path",
                  "defaultValue": "~",
                  "required": true,
                  "allowMultiple": false,
                  "dataType": "long",
                  "type": "string",
                  "format": "string"
              },
              {
                  "name": "contactId",
                  "in": "path",
                  "description": "Internal identifier of a contact record in the RingCentral database",
                  "required": true,
                  "allowMultiple": true,
                  "type": "string",
                  "format": "string"
              }
          ]
      }
  }
}
/******************JSON END**********************/

 0
answered on Dec 17, 2015 at 3:20pm  
I confirm that you are fully aware that the interface for Address Book resources may change in the future without warning.  We are attempting to test our methods for retrieving information as well as the API itself.  If it changes in the future, we will likely be able to adjust fairly quickly.  Any documentation you can provide would be great.  Thanks.

 0
answered on Dec 17, 2015 at 2:10pm  
Hello Chris,

I've switched this conversation to be private since we don't want just anyone to know about the API's Address Book resource just yet. That being said, please do not share this information I'm providing you about the Address Book resource. Before I provide you with the address-book documentation, I need to you to confirm that you are fully aware that the interface for Address Book resources may change in the future without warning.

You'll need to add the special permissions (ReadContacts & Contacts), which Anil provisioned to your account, on the application associated with the API Keys you're using for this resource. You can do that in Developer Portal => Applications => [YOUR_APP] => Application Information => Application Permissions.

Once I receive your confirmation that this may change without notice or warning, then I will supply you with the Address Book resource interface information.

Thanks,
Benjamin Dean
Developer Relations Manager
RingCentral Connect Platform

 0
answered on Dec 17, 2015 at 1:06pm  
Where might i find the documentation for retrieving contacts?  It doesn't seem to be in the developers guide and it seems to have disappeared from the API explorer.  Looking for documentation that would show us how to retrieve either personal or company contacts (or both) to make it convenient to send faxes or perform a ringout.

 0
answered on Dec 4, 2015 at 4:21pm  
Got it.  Thanks!

 1
answered on Dec 4, 2015 at 4:00pm  

Hi Chris,


You need the ReadContacts advanced permission to read the address book. Please contact our support team or open a support ticket to get this permission added to your app.


Thanks.


 0
answered on Dec 4, 2015 at 9:46am  
Hey Chris,

You're right...it isn't on there. I've submitted a ticket to add this to our official documentation, and I've reached out to our Platform Architect to request the right permission. Once he responds, I'll share that on here.

Thanks a bunch!

 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