# Extension Manage - Get extension list information

#### Interface Description

Get the extension list information owned by the user。

#### Request method
POST, form-data format

#### request parameters

| parameter name       | type     | Is it necessary | illustrate                               |
| -------- | ----- | --- | ------------------------------- |
| service   | string | yes    | App.Sip\_Sipnum.GetSipnumberInfo |
| token     | string | yes   | The token obtained through the authorization interface                   |
| status    | int    | yes   | extension status. 1: enable (default), 2: disable, 3: all          |
| extnumber | string | yes   | Extension number, empty to get all                      |

#### Interface request example（PHP）

```
<?php
    $apiUrl = 'http://127.0.0.1:8080';
    $postFields = [
        'service'   => 'App.Sip_Sipnum.GetSipnumberInfo',
        'token'     => 'ABCDEFG',
        'status'    => 3,
        'extnumber'  => '100001'
    ];
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $apiUrl);
    curl_setopt($curl, CURLOPT_POST, 1);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $postFields);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    $response = curl_exec($curl);
    $curlError = curl_error($curl);
    curl_close($curl);
    var_dump($response);
?>

```

#### return data structure example

```
{
    "ret": 200,
    "data": {
        "status": 0,
        "desc": "get success",
        "result": [
            {
                "extnumber": "100001",
                "password": "100001",
                "status": 1016,
                "register": "nreg"
            }
        ],
        "reqtime": 1581506241,
        "rsptime": 1581506241
    },
    "msg": ""
}

```

#### Return parameter description

| parameter name        | type     | illustrate                       |
| :--------- | :----- | :----------------------- |
| result     | array  | extension list array                   |
| —extnumber | string | Ext                      |
| —password  | string | Extension login password                  |
| —status    | int    | Extension Status                    |
| —register  | string | Extension registration status. nreg: not registered; reg: registered |