GetTurnCredentials

Updated at:

Retrieves the connection credentials for a Cloud Call Center access point, including the username and password required for authentication. Connecting to Cloud Call Center through an access point effectively improves network quality and stability.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

ccc-test

UserId

string

No

The agent ID. This parameter is optional. If you do not specify this parameter, the agent mapped to the current RAM user is used by default.

agent@ccc-test

Response elements

Element

Type

Description

Example

object

Code

string

The response code.

OK

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The response message.

None

RequestId

string

The request ID.

EEEE671A-3E24-4A04-81E6-6C4F5B39DF75

Data

object

The data.

UserName

string

The username.

1602585817:****

Password

string

The password.

M0NQNG/uRUrfIxW7er/S9gKX****

Params

array

The response parameters.

string

The response parameters.

None

Examples

Success response

JSON format

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "无",
  "RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
  "Data": {
    "UserName": "1602585817:****",
    "Password": "M0NQNG/uRUrfIxW7er/S9gKX****"
  },
  "Params": [
    "无"
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 Parameter.Blank The parameter %s may not be null or blank. The parameter cannot be null or a string that contains whitespace characters.
400 Parameter.Null The parameter %s may not be null. The parameter cannot be null.
500 InternalService.Common An internal service error occurred. %s An internal service error occurred.
404 NotExists.InstanceId The specified instance %s does not exist. The specified call center instance does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.