BridgeWebCall

Updated at:

Initiates a softphone test call.

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.

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.
    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.
  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

bailianvoicebot:BridgeWebCall

create

*All Resource

*

NoneNone

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

BusinessUnitId

string

Yes

The Model Studio business space ID.

llm-c11iig67g863rih8

ApplicationId

string

Yes

The Model Studio application ID.

a395011f-a247-400f-bc69-28796749fd52

Caller

string

No

The caller ID to display for the incoming call.

13052253537

DeviceId

string

Yes

The device ID.

467539456766097392-cn-shenzhen

TimeoutSeconds

integer

No

The duration in seconds before the system automatically disconnects an unanswered call.

3

Tags

string

No

The tags for the call.

{'ENV': 'production'}

SampleRate

integer

No

The sample rate.

8000

Sandbox

boolean

No

Specifies whether to use the sandbox environment.

true

AudioCodec

string

No

The audio codec. Defaults to PCM if not specified.

  • PCM

  • OPUS

Valid values:

  • OPUS :

    OPUS

  • PCM :

    PCM

PCM

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

CF6D3484-19A1-5C77-863B-AC8B5754D37C

Success

boolean

Indicates whether the request was successful.

True

HttpStatusCode

string

The HTTP status code.

200

Code

string

The status code. A value of OK indicates that the request is successful.

OK

ErrorMsg

string

The error message.

connect timed out

Data

object

The response data.

InstanceId

string

The instance ID.

i-uf6abxo1tuuwarrtffpp

SessionId

string

The session ID.

ws-4b7c263f-9b4c-4b28-baae-a65e9155e380

ChannelId

string

The channel ID.

894526715106764802

ExpirationTime

string

The time at which the token expires.

The value is a timestamp.

1744964682422

ServerUrl

string

The server URL.

wss://sh-voicebot.aliyuncs.com:443/audio

Token

string

The authentication signature.

83480f806b48f022313de37b691e167e

Examples

Success response

JSON format

{
  "RequestId": "CF6D3484-19A1-5C77-863B-AC8B5754D37C",
  "Success": true,
  "HttpStatusCode": "200",
  "Code": "OK",
  "ErrorMsg": "connect timed out",
  "Data": {
    "InstanceId": "i-uf6abxo1tuuwarrtffpp",
    "SessionId": "ws-4b7c263f-9b4c-4b28-baae-a65e9155e380",
    "ChannelId": "894526715106764802",
    "ExpirationTime": "1744964682422",
    "ServerUrl": "wss://sh-voicebot.aliyuncs.com:443/audio",
    "Token": "83480f806b48f022313de37b691e167e"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.