Query Information of Multiple Speed Dial Numbers

Query the detailed information of multiple speed dial numbers at the same time.

Request URL

GET {base_url}/{api_path}/speed_dial/query?access_token={access_token}

Request parameters

Parameter Required Type Description
ids Yes String The unique ID(s) of speed dial numbers.
Note:

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
data Array<Speed_Dial> The detailed information about the speed dial number.
total_number Integer The total number of speed dial numbers.
Speed_Dial
Parameter Type Description
id Integer The unique ID of the speed dial number.
code String The speed dial number.
phone_number String The phone number assigned to the speed dial number.
remark String The remark for the speed dial number.

Example

Request example

GET /openapi/v1.0/speed_dial/query?ids=1,2&access_token=KHlhDSbuZ75OsFLDUbZHdkE5cIQEcIlK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "total_number": 2,
    "data": [
        {
            "id": 1,
            "code": "12",
            "phone_number": "25502058",
            "remark": ""
        },
        {
            "id": 2,
            "code": "98",
            "phone_number": "5500",
            "remark": ""
        }
    ]
}