# Common API - Clear the Token interface

####  Interface Description
Note: When there is a new extension or an abnormality occurs after the extension is adjusted, you can clear the Token through this interface, and then obtain the Token again to continue the operation.

#### Request method
POST, form-data format

#### request parameters

| parameter name     | type     | Is it necessary | illustrate                   |
| :------ | :----- | :--- | :------------------- |
| service | string | yes    | App.Sip\_Auth.Logout |
| token   | string | yes   | Token string             |

#### Interface request example（PHP）

```
<?php
    $apiUrl = 'http://127.0.0.1:8080';
    $postFields = [
        'service'   => ' App.Sip_Auth.Logout',
        'token'     => 'ABCDEFG',
    ];
    $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": "logout successful",
            "reqtime": 1602655204,
            "rsptime": 1602655204
        },
        "msg": ""
    }