ListConversations

Updated at:

Queries a list of sessions.

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

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

voicebot:ListConversations

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance IDs.

da37319b-6c83-4268-9f19-814aed62e401

PageNumber

integer

Yes

The page number.

1

PageSize

integer

Yes

The number of entries per page.

10

CallingNumber

string

No

The calling number.

138106*****

Result

integer

No

The result.

0

Query

string

No

The query conditions.

13788914724

BeginTimeLeftRange

integer

No

The lower bound of the start time range.

1638288000000

BeginTimeRightRange

integer

No

The upper bound of the start time range.

1637547875311

IsSandBox

string

No

Specifies whether the sandbox mode is enabled.

false

RoundsLeftRange

integer

No

The lower bound of the conversation rounds range.

1

RoundsRightRange

integer

No

The upper bound of the conversation rounds range.

3

DebugConversation

integer

No

AbTestId

string

No

The AB test ID.

Response elements

Element

Type

Description

Example

object

Conversations

array<object>

The list of sessions.

object

The list of sessions.

AbTestName

string

CalledNumber

string

The called number.

12356

CallingNumber

string

The calling number.

135815884***

ConversationId

string

The session ID.

82b2eaae-ce5c-45f8-8231-f15b6b27e55c

DsReport

string

DsReportTitles

array

string

EndReason

integer

The reason for ending the session. Valid values:

  1. Normal completion.

  2. Hangup by the bot after unrecognized input.

  3. Hangup due to silence timeout.

  4. Hangup by the user after unrecognized input.

  5. Hangup by the user without a reason.

  6. Transfer to a human agent due to matched intent.

  7. Transfer to a human agent after unrecognized input.

  8. No interaction from the user.

  9. Interruption due to a system exception.

  10. Transfer to IVR due to matched intent.

  11. Transfer to IVR after unrecognized input.

1

EndTime

integer

The end time.

1582266750353

HasLastPlaybackCompleted

boolean

Specifies whether the last prompt was fully played before the session ended.

true

HasToAgent

boolean

Specifies whether the session was transferred to a human agent.

false

Rounds

integer

The number of conversation rounds.

2

SandBox

boolean

Specifies whether the sandbox mode is enabled.

true

SkillGroup

string

The skill group.

skg-123

StartTime

integer

The start time.

1641625694286

Voice

string

The text-to-speech (TTS) voice used for the call.

cosyvoice-v3-flash:longanyang

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries per page.

10

RequestId

string

The request ID.

a2c26e67-5984-4935-984e-bcee52971993

TotalCount

integer

The total number of entries.

1

Examples

Success response

JSON format

{
  "Conversations": [
    {
      "AbTestName": "",
      "CalledNumber": "12356",
      "CallingNumber": "135815884***",
      "ConversationId": "82b2eaae-ce5c-45f8-8231-f15b6b27e55c",
      "DsReport": "",
      "DsReportTitles": [
        ""
      ],
      "EndReason": 1,
      "EndTime": 1582266750353,
      "HasLastPlaybackCompleted": true,
      "HasToAgent": false,
      "Rounds": 2,
      "SandBox": true,
      "SkillGroup": "skg-123",
      "StartTime": 1641625694286,
      "Voice": "cosyvoice-v3-flash:longanyang"
    }
  ],
  "PageNumber": 1,
  "PageSize": 10,
  "RequestId": "a2c26e67-5984-4935-984e-bcee52971993",
  "TotalCount": 1
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter The specified parameter %s is invalid.
500 InternalError An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists.
404 InvalidInstanceId.NotFound The specified InstanceId does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.