GetTurnCredentials

更新时间:
复制 MD 格式

Call GetTurnCredentials to get the connection credentials for a Cloud Contact Center Point of Presence (PoP). These credentials include a username and password for authentication. Connecting to Cloud Contact Center through a PoP 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 ID of the instance.

ccc-test

UserId

string

No

The ID of the agent. 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.

RequestId

string

The request ID.

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

Data

object

The data returned.

UserName

string

The username.

1602585817:****

Password

string

The password.

M0NQNG/uRUrfIxW7er/S9gKX****

Params

array

string

The response parameters.

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.
400 Parameter.Null The parameter %s may not be null.
500 InternalService.Common An internal service error occurred. %s
404 NotExists.InstanceId The specified instance %s does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.