Refresh API token
If the application server needs access to the PBX API after 30 minutes, you need to refresh the token. A refreshed token allows the application server to obtain a new token.
Request URL
{base_url}/{api_path}/token/refresh
Request parameters
Parameter | Required | Type | Description |
---|---|---|---|
refreshtoken | Yes | String | The last refreshtoken value returned. |
Response parameters
Parameter | Required | Description |
---|---|---|
token | String | New API token. |
refreshtoken | String | New refreshtoken, which will be used in the next request of refreshing token. |
Examples
Request example
POST /api/v2.0.0/token/refresh HTTP/1.1 Content-Type:application/json; charset=utf-8 Host: 192.168.5.150 { "refreshtoken": "58f29c380365e5546cd3ac8c34edc88c" }
Response example
HTTP/1.1 200 OK Access-control-allow-origin: * Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE { "status": "Success", "token": "1c0a3fd34ca5e5292042a77e4d9ff950", "refreshtoken": "4a1f20e901b45d4106e7aee076d22115" }