Updated on 2023-09-27 GMT+08:00

Releasing a Click-to-Dial Call (dropClickToCall)

Scenario

This interface is invoked to release a click-to-dial call.

Method

POST

URI

https://Domain name/apiaccess/ccmessaging/v1/dropClickToCall (For example, the domain name is service.besclouds.com.)

Request Description

Table 1 Request header parameters

No.

Parameter

Type

Mandatory or Not

Description

1

ccmessaging-token

String

Yes

Value of ccmessaging-token generated by the applyToken interface

2

x-app-key

String

Yes

App key, which is the user ID and is configured on the API Fabric

3

Authorization

String

Yes

Authentication field. The format is Bearer {Value of AccessToken returned by the tokenByAkSk interface}. (A space is required after Bearer.)

Table 2 Request body parameters

No.

Parameter

Type

Mandatory or Not

Description

1.1

channel

String

Yes

Recipient channel type (WEB)

Response Description

  • Status code: 200
Table 3 Response body parameters

No.

Parameter

Type

Mandatory or Not

Description

1.1

resultCode

String

No

Response result code

1.2

resultDesc

String

No

Response result description

If resultCode is 0, the operation is successful.

If resultCode is 13, the description is disconnect failed.

  • Status code: 400

    Incorrect request. Check the request path and parameters.

  • Status code: 401

    Unauthorized operation. 1. Check whether you have purchased related services. 2. Contact customer service to check the status of your account.

  • Status code: 404

    The requested content is not found. Check the request path.

  • Status code: 500

    Business failure. Check the values of parameters in the request.

Error Codes

None

Example

  • Scenario: Release a click-to-dial call.
  • Request header:
    x-app-key: *************,  
    Authorization: *************,  
    ccmessaging-token: *************
  • Request parameters:
    {
     "channel": "WEB"
    }
  • Response parameters:
    {
    	"resultCode": "0",
     "resultDesc": ""
    }