Get AI Call Summary

Retrieve the AI-generated call summary of a specific call leg.

Note:
  • This interface is only available in API version 2.0.
  • Do not support to retrieve the call summary generated by an AI receptionist.

Request URL

GET {base_url}/{api_path}/cdr/getaisummary?access_token={access_token}

Request parameters

Parameter Required Type Description
cdr_id Yes String The ID of the specific call leg from the desired CDR.
Note: You can obtain the call leg ID from the leg_id parameter in the downloaded AI call transcription record.
src_ext_id No Integer Extension ID of the caller (available when the extension acts as the calling party).
Note:
  • Either src_ext_id or dst_ext_id is required to specify which party's summary you want to retrieve.
  • You can obtain the extension ID using Search Specific Extensions.
dst_ext_id No Integer Extension ID of the callee (available when the extension acts as the called party).
Note:
  • Either src_ext_id or dst_ext_id is required to specify which party's summary you want to retrieve.
  • You can obtain the extension ID using Search Specific Extensions.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
data Object<Summary> An object containing the call summary, identified by src (caller) or dst (callee) to indicate which party's summary is returned.
Summary
Parameter Type Description
id Integer The ID of the call summary.
call_id String The ID of the queried call leg.
summary String The content of the AI-generated call summary.
created_at String The timestamp (in seconds) when the summary was created.
updated_at Integer The timestamp (in seconds) when the summary was updated.
avatar string The file path or URL to user's avatar image.
name string The display name of the user.
ext_num String The extension number of the user.

Example

Request example

GET /openapi/v2.0/cdr/getaisummary?access_token=IkXq3r8rmlUM0Gaq883yjKYHOFgPixnf&cdr_id=20260513223234-3EE9E&src_ext_id=3202 HTTP/1.1
192.168.5.150:8088

Response example

{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "data": {
        "dst": {
            "id": 53,
            "call_id": "20260513223234-3EE9E",
            "summary": "<p>Call Summary</p>\n<ul>\n<li>Kristin Hale was transferred to a human agent regarding a login issue.</li>\n<li>She reported that 60% of users cannot log in and keep seeing an error message.</li>\n<li>The human agent offered to check server logs and escalate to the engineering team.</li>\n</ul>\n<p>Key Points</p>\n<ul>\n<li>60% of users are affected by the login issue.</li>\n<li>The page refreshes after password entry with no error code.</li>\n<li>The human agent escalated the issue to the engineering team.</li>\n</ul>\n<p>Follow-Up Actions</p>\n<ul>\n<li>Check server logs for login failure records.</li>\n<li>Investigate the login loop issue.</li>\n<li>Provide Kristin Hale with an estimated resolution time.</li>\n</ul>\n",
            "created_at": 1778682824,
            "updated_at": 1778682824,
            "avatar": "",
            "name": "Human Agent - Leo Ball",
            "ext_num": "3202"
        }
    }
}