Create Zoom Phone Sites - City no match in Zoom dictionary

Description
Hi Experts,

@Michael_Purnell @michael.harrington I am adding 900+ Zoom Phone sites in the UK. My success rate is only 10%. My city values are seems not matching with the city dictionary that Zoom has for the UK. I have tried using another API (https://postcodes.io/) to extract cities based on UK postal code and used those city values I’ve got there into my Zoom API POST to add Zoom Phone sites but still with minimal success rate.

As much as possible, I don’t want to add 900+ sites manually.

When I enable inspection in my web browser when adding site manually, I see that Zoom talks to this API,

https://us01pbx.zoom.us/api/v2/pbx/dictionary/location?countryIsoCode=GB&stateId=&key=london&page_size=1000

Is there a way to get a copy of the city dictionary used by Zoom to validate cities when adding site in the UK?

Thank you very much in advance!

Error
{“code”:-1,“message”:null}

Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth

Which Endpoint/s?
https://api.zoom.us/v2/phone/sites

How To Reproduce (If applicable)

Error Example:
{
“endpoint”: “https://api.zoom.us/v2/phone/sites”,
“response_headers”: [
],
“date_time”: “2021-02-05 19:44:10”,
“method”: “POST”,
“request_body”: “{“name”:“CLEVELEYSVICTORIASQUARE(NWBBRANCH)-3067”,“auto_receptionist_name”:“CLEVELEYS)-3067-AR”,“default_emergency_address”:{“address_line1”:“VICTORIASQUARE”,“address_line2”:“CLEVELEYS,LANCASHIRE”,“city”:“CLEVELEYS”,“state_code”:null,“zip”:“FY53LZ”,“country”:“GB”}}”,
“response”: {
"code": -1,
"message": null
},
“request_headers”: [
“accept-encoding: deflate, gzip”,
“accept: /”,
“authorization: ******”,
“content-type: application/json”
],
“request_params”: [
],
"http_status": "400"
}

Hey @alc.zoom,

Thank you for reaching out to the Zoom Developer Forum. I appreciate the example of the failing request. Are you able to share one for a request that worked as expected?

Looking at that address, I’m thinking there might be some formatting issues. Try changing the following values in the request and let me know if it helps:

address_line_1: VICTORIA SQUARE
address_line_3: LANCASHIRE-CLEVELEYS

Let me know if that helps validate that address! :slightly_smiling_face:

Thanks,
Max

Hi @MaxM,

Thanks for your reply. Here is one of the API successful call logs. All 800+ sites that were added successfully looks similar to this call log.

{

"endpoint": "https://api.zoom.us/v2/phone/sites",

"response_headers": [

],

"date_time": "2021-02-08 12:52:21",

"method": "POST",

"request_body": "{"RecordID2":"849","name":"GALWAYTUAMROAD-8250","auto_receptionist_name":"GALWAY-8250-AR","default_emergency_address":{"address_line1":"TUAMROAD","address_line2":"GALWAY,COGALWAY","city":"GALWAY","state_code":null,"zip":"0","country":"IE"}}",

"response": {

"id": "D2P0h6S4RIy3hmcvdEHKhg",

"name": "GALWAY TUAM ROAD - 8250"

},

"request_headers": [

"accept-encoding: deflate, gzip",

"accept: */*",

"authorization: ******",

"content-type: application/json"

],

"request_params": [

],

"http_status": "201"

}

Hey @alc.zoom,

Thank you for the update. I’ve reached out to an internal resource to see if we can provide that for you. In the meantime, I would double-check that the addresses you have work with other Geocoding utilities to confirm that they are valid addresses.

Thanks,
Max

Thanks @MaxM.

I confirmed that those addresses are valid and I was able to manually add sites using those addresses.

Regards,
Alc

Hey @alc.zoom,

Thank you for the update. I’m still waiting on a response from an internal resource. As soon as I hear back from them I’ll update you here.

Thanks,
Max

Hey @alc.zoom,

Thank you for your patience. I spoke with a member of our engineering team and they indicated that addresses are validated using Google. Therefore, you can essentially copy and paste what you find from Google.

While working with our engineering, I saw that the address provided doesn’t seem to exist. However, there is a similar address that matches:

I hope that helps!

Thanks,
Max

Thank you for your update @MaxM.

What does the error code mean on my call logs?

Thanks

Hey @alc.zoom,

Thank you for your question. The error that you’re getting seems to be improperly formatted. I’m working to see if we can get that fixed on our end but first please let me know if adjusting the address allows you to see a successful response.

This will help narrow down the cause of the unhelpful error.

Thanks,
Max

Thanks. I’ll try to resubmit those 50 addresses that had failed and come back for update.

Regards

Hey @alc.zoom,

Thank you for the update. Let me know if you encounter any further issues or questions.

Thanks,
Max