12-08-2022 09:10 AM
GET https://webexapis.com/v1/people can be used to return user information, including phone numbers. It also returns a complete list of users if individual user details are omitted from the query. The phone numbers returned are not associated with their Webex Calling configuration though.
We can then use GET https://webexapis.com/v1/people/{personId}/features/numbers with the personId returned from the first query to return the Webex Calling numbers associated with the personId.
Is there a way to simply return a list of users (rather than individual users) and their telephone numbers associated with Webex Calling?
12-13-2022 10:04 AM
I have tried that. It appears when using https://webexapis.com/v1/people?email=rmaslanka1%40mycompany.com&callingData=true for example, I am returned the extension key from Webex Calling but not the phone number. I am returned the phoneNumbers key but the values are from Active Directory, rather than Webex.
When using
Is your experience different?
Sample JSON returned:
Using https://webexapis.com/v1/people?email=rmaslanka1%40mycompany.com&callingData=true:
{
"notFoundIds": null,
"items": [
{
"id": "XXXXXXXXXXXXXXXXXXXX",
"emails": [
"rmaslanka1@mycompany.com"
],
"phoneNumbers": [
{
"type": "fax",
"value": "(555)554-4719" <<<< FROM ACTIVE DIRECTORY
},
{
"type": "work",
"value": "15555396719" <<<< FROM ACTIVE DIRECTORY
}
],
"extension": "5356", <<<< FROM WEBEX CALLING
"locationId": "XXXXXXXXXXXXXXXXXXXX",
"displayName": "MASLANKA, RAY"
....
Using https://webexapis.com/v1/people/myID/features/numbers
{
"distinctiveRingEnabled": true,
"phoneNumbers": [
{
"primary": true,
"directNumber": "7165555356", <<<< FROM WEBEX CALLING
"extension": "5356" <<<< FROM WEBEX CALLING
}
]
}
12-11-2022 07:30 AM
@rmaslanka2 have you tried https://developer.webex.com/docs/api/v1/people/list-people with setting callingData to true?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide