Internal Contacts
Search Company Directory Entries
Returns contact information on corporate users of federated accounts according to the specified filtering and ordering.
post/restapi/v1.0/account/{accountId}/directory/entries/search
Path parameters
accountIdstring required
Internal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)
Query parameters
accountIdstring
Example:400131426008
A list of Account IDs
departmentstring
Example:North office
A list of department names
siteIdstring
Example:872781797006
A list of Site IDs
extensionStatusstring
Example:Enabled
Extension current state
extensionType'User' | 'Department' | 'Announcement' | 'Voicemail' | 'DigitalUser' | 'VirtualUser' | 'FaxUser' | 'PagingOnly' | 'SharedLinesGroup' | 'IvrMenu' | 'ApplicationExtension' | 'ParkLocation' | 'Limited' | 'Bot' | 'Site' | 'Room' | 'ProxyAdmin' | 'DelegatedLinesGroup' | 'FlexibleUser' | 'GroupCallPickup' | 'RoomConnector'
Type of extension to filter the contacts
Example:User
Extension types
Request body
Example request
{
"searchString": "John Doe",
"searchFields": [
"lastName",
"email"
],
"showFederated": true,
"siteIds": [
"872781797006",
"872781820006"
],
"extensionStatuses": [
"Enabled"
],
"department": "R&D department",
"page": 1,
"perPage": 30
}Response
Paged collection of all contacts information for a given account according to filtering and ordering. Records can be empty if no data found
Example response
{
"paging": {
"perPage": 50,
"page": 5,
"pageEnd": 5,
"totalPages": 25,
"totalElements": 25
},
"records": [
{
"id": "865706371004",
"type": "User",
"status": "Enabled",
"account": {
"companyName": "My lovely company",
"federatedName": "Lovely Holding",
"id": "400131426008",
"mainNumber": {
"formattedPhoneNumber": "+1 (205) 6812029",
"phoneNumber": "+12056812029",
"type": "VoiceFax",
"label": "Boss",
"usageType": "DirectNumber"
}
},
"department": "External",
"email": "john.doe@mycompany.com",
"extensionNumber": "103",
"firstName": "John",
"lastName": "Doe",
"name": "Conference room ?5",
"jobTitle": "Sales manager",
"phoneNumbers": [
{
"formattedPhoneNumber": "+1 (205) 6812029",
"phoneNumber": "+12056812029",
"type": "VoiceFax",
"label": "Boss",
"usageType": "DirectNumber"
}
],
"profileImage": {
"etag": "tag"
},
"site": {
"id": "872781820006",
"name": "Sales site",
"code": "1007"
},
"callQueues": [
{
"id": "873014540006",
"name": "Sales CQ"
}
],
"customFields": [
{
"id": "1032854",
"name": "Rank",
"value": "5"
}
],
"groups": [
{
"id": "63723034",
"name": "Leaders"
}
],
"costCenter": {
"id": "83266549237542",
"code": "Main",
"name": "Cost Center A"
},
"integration": {
"id": "9813",
"typeId": "1",
"type": "External",
"displayName": "Integration X",
"routingType": "Account",
"outboundEdgeId": "1726"
},
"subType": "Unknown"
}
]
}