1. Telebroad | Support Center
  2. Solution home
  3. Legacy API Documentation
  4. REST API - GET Requests
Open navigation

GET/nextSpeedDial (Legacy)

  Articles in this support section discuss Telebroad's legacy APIs. To learn about the current version of Telebroad APIs, which offer additional authentication options and support for advanced features, please go to https://developers.telebroad.com/.



Function and Response Field


The GET/nextSpeedDial (case-sensitive!) request returns the number of the next available Speed Dial or BLF button. Use the result when programming a button with the PUT/speeddial request.


The response has the following field:


  • sdial  - the number of the next available Speed Dial or BLF button.   


Parameters


All parameters go in the header.


Parameter
Type
Operation
stype
string
Use "phone" for the result to include only phone lines belonging to the user. Omit to have the results apply for all shared buttons. 
snumber
string
Use a specific telephone number to return results for available buttons associated with it. Omit to return results for all shared buttons.

Examples


To get the next available speed dial or BLF button for a specific phone line of a user use this syntax:


HTTPS method: GET


webserv.telebroad.com/api/teleconsole/rest/nextSpeedDial?stype=phone&snumber=11138470


Response:


{

    "error":null,

        "result":

        { "sdial": "3" 

        } 

}