RegisterDevices

Updated at:

Registers one or more SIP devices to a specified agent under a specified instance. The SIP devices can be SIP phones or SIP softphones.

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

UserIdListJson

string

No

The list of agent IDs. The format is a JSON array character string, and each array element is an agent ID.

["user-test@ccc-test"]

DeviceId

string

Yes

The device ID. You can set this parameter to a custom string value. No special requirements apply.

test-device

Password

string

Yes

The device password. This password is used for authentication when the SIP device initiates registration signaling. Keep the password secure.

password

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.

BA03159C-E808-4FF1-B27E-A61B6E888D7F

Params

array

The list of error parameters.

["ParameterName"]

string

The response parameter.

None

Examples

Success response

JSON format

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "无",
  "RequestId": "BA03159C-E808-4FF1-B27E-A61B6E888D7F",
  "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.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.