Zoom Phone API - Determining line_key_id

API Endpoint(s) and/or Zoom API Event(s)

Description
Is there a way to determine the line_key_id parameter on an unused line key?

If the key has previously been defined I can perform a GET first and record the line_key_id values and then use that to update the line key, but if the key is blank nothing is returned.

It seems I may have to upload dummy keys (speed dials or something similar) via CSV on Zoom Phone web first so I can then perform a GET to capture the line_key_id, and then finally perform a PATCH to update the keys to what I actually need.

Hey @gpieroni
Thanks for reaching out to us and welcome to the Zoom Developer Forum!
Allow me some time to troubleshoot this on my end and I will get back to you with some updates

Hi Elisa - thank you, appreciate it!

Hey @gpieroni
Sorry for the late reply here! I am not able to troubleshoot this on my end.
Would you be able to share with me the response body that you get when you can GET the line_key_id values and also the instance where you do not get anything back in your response.
I will be helpful if you could share the tracking ID of the requests found in the response headers.

Hi Elisa -

The issue is I’m trying to determine line_key_id for unused line keys. Here’s an example of a common area phone with line keys defined for keys 1, 2 and 3.

Here’s the body that’s returned. How do I determine line_key_id for the blank line keys 4, 5, 6, etc ?

{
“line_keys”: [
{
“line_key_id”: “C-pkLKSyQaqV-82iBcNDyA”,
“index”: 1,
“type”: “line”,
“key_assignment”: {
“extension_id”: “iki1nxoXRqGSbbskOwtzMw”,
“extension_number”: “801301”,
“phone_number”: “”,
“display_name”: “Boston VO 01”
},
“alias”: “801301”,
“outbound_caller_id”: “anonymous”
},
{
“line_key_id”: “NQnLrTK9T9Gl2kgUvFdqsQ”,
“index”: 2,
“alias”: “801301”,
“outbound_caller_id”: “anonymous”
},
{
“line_key_id”: “uWpi8snZTL28cqkrJP1bQA”,
“index”: 3,
“alias”: “801301”,
“outbound_caller_id”: “anonymous”
}
]
}

1 Like

Hey @gpieroni
It seems like the line_key_id will get generated once it is assigned, so as you mentioned in the first post, uploading dummy keys might do the trick as a workaround for now.
I will send you a DM to get more details and will create a ticket for our Engineering team so they can determine if this is expected behavior or a bug on our end

To update this thread.
This is expected behavior, the line_key_id gets generated once its assigned

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.