GetCallDetailRecord

Updated at:

Retrieves the details of a call by call ID for a specified instance.

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

ContactId

string

Yes

The call ID.

job-10963442671187****

InstanceId

string

Yes

The instance ID.

ccc-test

Response elements

Element

Type

Description

Example

object

Code

string

The response code.

OK

Data

object

The data.

AgentEvents

array<object>

The list of agent events.

array<object>

The agent event.

AgentId

string

The ID of the agent.

agent@ccc-test

AgentName

string

The name of the agent.

Agent Wang

EventSequence

array<object>

The event sequence.

object

The event.

Duration

integer

The duration of the event, in seconds.

3

Event

string

The event type.

Valid values:

  • BlindTransfer :

    Blind transfer.

  • Released :

    Call released.

  • Coaching :

    Coaching.

  • Barging :

    Barge-in.

  • Consulting :

    Consultation transfer.

  • Ringing :

    Ringing.

  • StartConference :

    Conference started.

  • Established :

    Call established.

  • Dialing :

    Dialing.

  • Intercepting :

    Call intercepted.

  • Monitoring :

    Monitoring.

Dialing

EventTime

integer

The timestamp when the event occurred, in the UNIX timestamp format, in milliseconds.

1604639129000

SkillGroupId

string

The ID of the skill group.

skillgroup@ccc-test

AgentIds

string

The list of agent IDs, which indicates the agents that the call passed through. Multiple values are separated by commas.

agent1@ccc-test,agent2@ccc-test

AgentNames

string

The list of agent names, which indicates the agents that the call passed through. Multiple values are separated by commas.

agent1,agent2

AnalyticsReport

object

The intelligent analysis report of the call.

{"ProblemSolving":{"Success":true,"Solved":true}}

Emotion

object

The customer emotion analysis result.

{"Success":true,"Type":"Neutral","Confidence":50}

Confidence

integer

The confidence level of the customer emotion recognition.

50

Remark

string

The remark for the customer emotion analysis.

No emotion changes detected for the customer

Success

boolean

Indicates whether the emotion analysis task was executed successfully.

true

TaskId

string

The ID of the emotion analysis task.

0ff07fe35670423089dbdf12766d962f

Type

string

The recognized customer emotion type.

Neutral

ProblemSolving

object

The problem-solving analysis result.

{"Success":true,"Solved":true,"Problem":"Alert issue"}

Problem

string

The customer problem identified by the analysis.

Alert issue

Solution

string

The Solutions generated by the analysis.

The enrichment service automatically closes the original alert

Solved

boolean

Indicates whether the customer problem is resolved.

true

Success

boolean

Indicates whether the problem-solving analysis task was executed successfully.

true

TaskId

string

The ID of the problem-solving analysis task.

0ff07fe35670423089dbdf12766d962f

Satisfaction

object

The customer satisfaction analysis result.

{"Success":true,"SatisfactionDescription":"Satisfied"}

Remark

string

The remark for the customer satisfaction analysis.

The customer expressed satisfaction

SatisfactionDescription

string

The description of the customer satisfaction analysis.

Satisfied

Success

boolean

Indicates whether the satisfaction analysis task was executed successfully.

true

TaskId

string

The ID of the satisfaction analysis task.

cb67479ce28243b28ff39948feaa0806

TodoList

object

The to-do list analysis result.

{"Success":true,"Tasks":["Follow-up"]}

Success

boolean

Indicates whether the to-do list analysis task was executed successfully.

true

TaskId

string

The ID of the to-do list analysis task.

cb67479ce28243b28ff39948feaa0806

Tasks

array

The list of to-do items generated by the analysis.

["Follow-up"]

string

The to-do item.

Follow-up

AnalyticsReportReady

boolean

Indicates whether the intelligent analysis report is generated.

true

CallDuration

integer

The call duration, in seconds.

50

CalledNumber

string

The called number.

1332315****

CalleeLocation

string

The location information of the called number.

Hebei-Tangshan

CallerLocation

string

The location information of the calling number.

Shandong-Zibo

CallingNumber

string

The calling number.

0533128****

ContactDisposition

string

The reason why the call ended. Note: Hang-up reasons such as voice mail, transfer to agent failure, queue timeout, queue overflow, and IVR exception are displayed only if the customer configures a hang-up reason node. If no node is configured and the IVR does not contain a transfer to agent module, the hang-up reason defaults to IVR abandoned.

Valid values:

  • AbandonedInQueue :

    Abandoned in queue.

  • NoAnswer :

    No answer.

  • QueuingTimeout :

    Queue timeout.

  • Voicemail :

    Voice mail.

  • QueuingFailed :

    Transfer to agent failed.

  • AbandonedInVoiceNavigator :

    Abandoned in intelligent navigation.

  • QueuingOverflow :

    Queue overflow.

  • IVRException :

    IVR exception.

  • Success :

    Ended normally.

  • AbandonedInIVR :

    Abandoned in IVR.

  • AbandonedInRing :

    Abandoned during ringing.

  • Reject :

    Rejected by the customer.

  • ForwardToOutsideNumber :

    Forwarded to an external number.

Success

ContactId

string

The call ID.

job-10963442671187****

ContactType

string

The call type.

Valid values:

  • INBOUND :

    Inbound call.

  • CONFERENCE :

    Conference.

  • INTERNAL :

    Internal call.

  • OUTBOUND :

    Outbound call.

  • PRIVACY_DIAL :

    Encrypted call.

  • BACK2BACK :

    Back-to-back call.

  • PREDICTIVE :

    Predictive outbound call.

OUTBOUND

CustomerEvents

array<object>

The list of customer events.

array<object>

The customer event.

CustomerId

string

The customer ID, which is usually the customer phone number.

1332315****

EventSequence

array<object>

The event sequence.

object

The event.

Event

string

The event type.

Valid values:

  • established :

    Call established.

  • ringing :

    Ringing.

  • released :

    Released.

Released

EventTime

integer

The timestamp when the event occurred, in the UNIX timestamp format, in milliseconds.

1532458000000

EarlyMediaState

string

The early media state. This indicates an exception during the early media phase when the customer is being called. Such exceptions cause the call to fail. This state represents the possible reason for the unanswered call based on the early media state analysis.

Valid values:

  • NoAnswer :

    No answer.

  • OutOfService :

    Out of service.

  • NotExist :

    Non-existent number.

  • Restricted :

    Call restricted.

  • Busy :

    Busy.

  • NotConnected :

    Not connected.

  • PowerOff :

    Powered off.

NotConnected

EstablishedTime

integer

The time when the call was established. If the call was not established, this value is empty. The time is formatted as a UNIX timestamp in milliseconds.

1532458000000

InstanceId

string

The instance ID.

ccc-test

IvrEvents

array<object>

The list of interactive voice response (IVR) events.

array<object>

The IVR event.

EventSequence

array<object>

The event sequence.

object

The event.

Event

string

The event type.

Valid values:

  • Route2IVR :

    Routed to IVR.

  • Abandoned :

    Abandoned in IVR.

Route2IVR

EventTime

integer

The timestamp when the event occurred, in the UNIX timestamp format, in milliseconds.

1604639129000

FlowId

string

The IVR contact flow ID.

edaf2eaa-8f88-44ca-812e-41b3cd2b7a90

FlowType

string

The contact flow type.

Valid values:

  • SURVEY_FLOW :

    Survey flow.

  • MAIN_FLOW :

    Main flow.

MAIN_FLOW

OutsideNumberReleaseReason

string

The hang-up reason when the call is forwarded to an external number.

NoAnswer

QueueEvents

array<object>

The list of queue events.

array<object>

The queue event.

EventSequence

array<object>

The event sequence.

object

The event.

Event

string

The event type.

Valid values:

  • AssignAgent :

    Agent assigned.

  • Enqueue :

    Enqueued.

  • GiveUp :

    Abandoned during ringing.

  • QueueingOverflow :

    Queue overflow.

  • Abandoned :

    Abandoned in queue.

  • QueueingTimeout :

    Queue timeout.

Enqueue

EventTime

integer

The timestamp when the event occurred, in the UNIX timestamp format, in milliseconds.

1604639129000

FlowId

string

The contact flow ID.

edaf2eaa-8f88-44ca-812e-41b3cd2b7a90

QueueId

string

The queue ID. If the queue is a skill group queue, this value is the skill group ID. If the queue is an agent personal queue, this value is the agent ID.

skillgroup@ccc-test

QueueName

string

The queue name.

Test skill group

QueueType

integer

The queue type.

Valid values:

  • 1 :

    Skill group.

  • 2 :

    Agent.

1

RecordingReady

boolean

Indicates whether the recording is generated. If the call is not established, false is returned.

true

ReleaseInitiator

string

The party that released the call.

Valid values:

  • agent :

    Agent.

  • customer :

    Customer.

customer

ReleaseReason

string

The reason why the call ended. This is usually in the format of a SIP code followed by a text description.

200 - OK

ReleaseTime

integer

The time when the call ended. This is the time when the last participant hung up. The time is formatted as a UNIX timestamp in milliseconds.

1532458000000

Satisfaction

integer

The satisfaction survey result. The values and meanings of the satisfaction survey are customized by the customer.

1

SatisfactionSurveyChannel

string

The channel used to initiate the satisfaction survey.

Valid values:

  • IVR :

    IVR.

  • SMS :

    SMS.

IVR

SatisfactionSurveyOffered

boolean

Indicates whether a satisfaction survey was sent.

true

SkillGroupIds

string

The IDs of the skill groups to which the agents participating in the call belong. Multiple skill group IDs are separated by commas.

skillgroup@ccc-test

SkillGroupNames

string

The names of the skill groups to which the agents participating in the call belong. Multiple skill group names are separated by commas.

Test skill group

StartTime

integer

The time when the call started. For inbound calls, the time is calculated from when the call enters the IVR. For outbound calls, the time is calculated from when the call is connected. The time is formatted as a UNIX timestamp in milliseconds.

1532458000000

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The response message.

None

RequestId

string

The request ID.

7BEEA660-A45A-45E3-98CC-AFC65E715C23

Examples

Success response

JSON format

{
  "Code": "OK",
  "Data": {
    "AgentEvents": [
      {
        "AgentId": "agent@ccc-test",
        "AgentName": "Agent Wang",
        "EventSequence": [
          {
            "Duration": 3,
            "Event": "Dialing",
            "EventTime": 1604639129000
          }
        ],
        "SkillGroupId": "skillgroup@ccc-test"
      }
    ],
    "AgentIds": "agent1@ccc-test,agent2@ccc-test",
    "AgentNames": "agent1,agent2",
    "AnalyticsReport": {
      "Emotion": {
        "Confidence": 50,
        "Remark": "No emotion change detected in the customer",
        "Success": true,
        "TaskId": "0ff07fe35670423089dbdf12766d962f",
        "Type": "Neutral"
      },
      "ProblemSolving": {
        "Problem": "Alert issue",
        "Solution": "The enrichment service automatically closes the original alert",
        "Solved": true,
        "Success": true,
        "TaskId": "0ff07fe35670423089dbdf12766d962f"
      },
      "Satisfaction": {
        "Remark": "The customer expressed satisfaction",
        "SatisfactionDescription": "Satisfied",
        "Success": true,
        "TaskId": "cb67479ce28243b28ff39948feaa0806"
      },
      "TodoList": {
        "Success": true,
        "TaskId": "cb67479ce28243b28ff39948feaa0806",
        "Tasks": [
          "Follow-up"
        ]
      }
    },
    "AnalyticsReportReady": true,
    "CallDuration": 50,
    "CalledNumber": "1332315****",
    "CalleeLocation": "Hebei Province-Tangshan",
    "CallerLocation": "Shandong Province-Zibo",
    "CallingNumber": "0533128****",
    "ContactDisposition": "Success",
    "ContactId": "job-10963442671187****",
    "ContactType": "OUTBOUND",
    "CustomerEvents": [
      {
        "CustomerId": "1332315****",
        "EventSequence": [
          {
            "Event": "Released",
            "EventTime": 1532458000000
          }
        ]
      }
    ],
    "EarlyMediaState": "NotConnected",
    "EstablishedTime": 1532458000000,
    "InstanceId": "ccc-test",
    "IvrEvents": [
      {
        "EventSequence": [
          {
            "Event": "Route2IVR",
            "EventTime": 1604639129000
          }
        ],
        "FlowId": "edaf2eaa-8f88-44ca-812e-41b3cd2b7a90",
        "FlowType": "MAIN_FLOW"
      }
    ],
    "OutsideNumberReleaseReason": "NoAnswer",
    "QueueEvents": [
      {
        "EventSequence": [
          {
            "Event": "Enqueue",
            "EventTime": 1604639129000
          }
        ],
        "FlowId": "edaf2eaa-8f88-44ca-812e-41b3cd2b7a90",
        "QueueId": "skillgroup@ccc-test",
        "QueueName": "Test skill group",
        "QueueType": 1
      }
    ],
    "RecordingReady": true,
    "ReleaseInitiator": "customer",
    "ReleaseReason": "200 - OK",
    "ReleaseTime": 1532458000000,
    "Satisfaction": 1,
    "SatisfactionSurveyChannel": "IVR",
    "SatisfactionSurveyOffered": true,
    "SkillGroupIds": "skillgroup@ccc-test",
    "SkillGroupNames": "Test skill group",
    "StartTime": 1532458000000
  },
  "HttpStatusCode": 200,
  "Message": "None",
  "RequestId": "7BEEA660-A45A-45E3-98CC-AFC65E715C23"
}

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.