🟢Get Call

GET https://api.anunzi.net/v2/calls/{call_id}

Retrieve the transcript and other relevant details of a specific phone call handled by an Anunzi AI assistant.


Path Parameters

Parameter
Type
Required
Description

call_id

string

Yes

The unique ID of the call to retrieve.


Example Request (cURL)

curl --request GET \
     --url https://api.anunzi.net/v2/calls/23156151231261651 \
     --header 'accept: text/plain' \
     --header 'Authorization: Bearer API_KEY'

Example Response (200 OK)

{
  "status": "ok",
  "response": {
    "calls": [
      {
        "call_id": "1725527007259x327898249603432960",
        "model_id": "1725526325346x892123579587048600",
        "campaign_type": "Inbound",
        "phone_number_from": "+11234567890",
        "phone_number_to": "+1098765432",
        "name": "",
        "transcript": "\nbot: Hey, you've called [company]. How may I assist you today?\nhuman: Hello. I would like to know my preferences.\nbot: Let me check your preferences.\nbot: I didn't catch your name. \nbot: Could you please provide it so I can look up your preferences? \nhuman: Eddie.\nbot: Let me check your preferences.\nbot: Alright, Eddie. \nbot: Let me quickly pull up your preferences. \nbot: One moment, please. \n...",
        "duration": 66,
        "recording_url": "https://api.twilio.com/2019-06-03/Accounts/ACb029z9m380d81c4329469c63c99941bf/Recordings/RE68bd7f17dc26a49caac7x3n2a59efb3",
        "end_call_reason": "human_pick_up_cut_off"
      }
    ]
  }
}

Response Fields

Field
Type
Description

call_id

string

Unique identifier for the call.

model_id

string

ID of the assistant handling the call.

campaign_type

string

Specifies whether the call was "Inbound" or "Outbound".

phone_number_from

string

The caller's phone number.

phone_number_to

string

The number that was dialed.

name

string

Name of the person called (if available).

transcript

string

The full conversation transcript between the assistant and the user.

duration

int

Duration of the call in seconds.

recording_url

string

URL to access the audio recording of the call (if recording was enabled).

end_call_reason

string

Reason why the call ended.


Status Codes

Code
Description

200

Call details retrieved successfully.

400

Bad Request. Invalid or missing parameters.

Última actualización

¿Te fue útil?