Generating SDK Credentials

POST
https://api.itniotech.com/v3/cc/seat/createSdkAuthentication
Creates credentials for initializing the CC-SDK to use web-based telephony. Each seat can only have one valid credential at a time. Subsequent credentials will overwrite previous ones.
 
Request Parameters
Parameters Description Required Required
account Seat account number Yes String
expires Credential validity period (seconds) Valid values: 60-28800 Yes Integer
 
Request Sample
Request URL:
    https://api.itniotech.com/v3/cc/seat/createSdkAuthentication
Request Method: 
    POST
Request Headers:
    Content-Type: application/json;charset=UTF-8
    Sign: 05d7a50893e22a5c4bb3216ae3396c7c
    Timestamp: 1630468800
    Api-Key: bDqJFiq9
Request Body:
{
    "account": "0705C245_001",
    "expires":3600
}
 
Response Parameters
Parameters Description Required
status status code,0 is successful. For other failures, please refer to the interface response code String
reason Failure reason description String
data Additional response data String
authentication SDK credential (used to initialize CC-SDK) String
 
Response Sample
{
    "status":"0",
    "reason":"success",
    "data":{
        "authentication":"Bearer SDNVerRWZp:0705C245_001:0ecc5e73-4252-42f6-8bf1-3a2d0bf7ea98"
    }
}
 
Response Status Code
status Description
0 Success
-1 Authentication error
-2 Authentication error
-16 Timestamp expires
-18 Port program unusual
-22 Parameter exception
-24 Data unexisting