Skip to content

View one call

Request:

GET /api/v2/calls/<call-id>.json

Response is a JSON formatted object with call metadata:

{
  "call": {
    "call_id": "20f5acd7-bfbd-58c3-9a81-e453065fa4fe",
    "parent_call_id": null,
    "secondary_parent_call_id": null,
    "tenant_id": "068b518c-d311-11ed-9cd6-d45d64081e0f",
    "interaction_id": null,
    "protocol_call_id": null,
    "protocol_call_direction": 1,
    "protocol_tracking_id": null,
    "recorder_id": null,
    "call_state": 6,
    "on_demand_state": null,
    "record_state": 30,
    "voip_protocol": 13,
    "confidential": null,
    "setup_time": "2023-08-30T17:16:20-07:00",
    "connect_time": "2023-08-30T17:16:20-07:00",
    "disconnect_time": "2023-08-30T17:18:28-07:00",
    "duration": 128,
    "from_ip": null,
    "from_port": null,
    "from_mac": null,
    "from_number": "123000001",
    "from_name": null,
    "from_id": null,
    "to_ip": null,
    "to_port": null,
    "to_mac": null,
    "to_number": "8001000001",
    "to_name": null,
    "to_id": null,
    "redirected_from_number": null,
    "redirected_from_name": null,
    "redirected_from_id": null,
    "redirected_to_number": null,
    "redirected_to_name": null,
    "redirected_to_id": null,
    "orig_from_number": null,
    "orig_from_name": null,
    "orig_to_number": null,
    "orig_to_name": null,
    "agent_id": null,
    "agent_name": null,
    "acd_number": null,
    "acd_name": null,
    "acd_id": null,
    "broadworks_user_id": null,
    "broadworks_group_id": null,
    "broadworks_sp_id": null,
    "metaswitch_extension": null,
    "metaswitch_user": null,
    "metaswitch_group": null,
    "metaswitch_system": null,
    "cisco_nearend_guid": null,
    "cisco_farend_guid": null,
    "cisco_nearend_refci": null,
    "cisco_farend_refci": null,
    "cisco_nearend_partition": null,
    "cisco_farend_partition": null,
    "cisco_phone_ip": null,
    "participants": [
      {
        "participant_id": "00",
        "join_time": "2023-08-30T17:16:20-07:00",
        "leave_time": "2023-08-30T17:18:28-07:00",
        "user_id": "6e058dc0-48ed-11ee-a044-0015172d2a7d",
        "party_direction": 1,
        "party_type": 0,
        "party_number": "123000001",
        "party_name": null,
        "party_caller_id": null
      },
      {
        "participant_id": "01",
        "join_time": "2023-08-30T17:16:20-07:00",
        "leave_time": "2023-08-30T17:18:28-07:00",
        "user_id": null,
        "party_direction": 2,
        "party_type": 0,
        "party_number": "8001000001",
        "party_name": null,
        "party_caller_id": null
      }
    ],
    "categories": [
      {
        "category_id": "2b3982ec-8295-11e7-bda7-e03f497dbdff",
        "name": "Sales",
        "private_user_id": null,
        "parent_id": null
      },
      {
        "category_id": "be2917ee-ed3b-11e5-af83-e03f497dbdff",
        "name": "Evaluate",
        "private_user_id": null,
        "parent_id": null
      }
    ],
    "files": [
      {
        "file_id": "00",
        "start_time": "2023-08-30T17:16:20-07:00",
        "stop_time": "2023-08-30T17:18:28-07:00",
        "file_size": 2059200,
        "file_path": "/var/miarec/recordings/20230830/2023-08-30_171620__123000001__8001000001__20f5acd7bfbd58c39a81e453065fa4fe.mp3",
        "watermark": null,
        "encrypt_key": null,
        "encrypt_tag": null,
        "encrypt_fingerprint": null
      }
    ],
    "custom_fields": [
      {
        "field_id": "138fb20c-4c3b-11ee-8cbb-0015172d2a7d",
        "name": "Payment status",
        "value": "Unknown"
      },
      {
        "field_id": "9079d60a-5192-11ee-aa89-0015172d2a7d",
        "name": "Call type",
        "value": "Sales call"
      },
      {
        "field_id": "063e593e-5188-11ee-a855-0015172d2a7d",
        "name": "Call Summary",
        "value": "During the call, the agent, Samantha Smith,  introduces herself as calling from Acme's Store Support on behalf of Acme's. She confirms the customer's name and informs her that the call is being recorded for quality purposes. The agent mentions that she noticed the customer's interest in a laptop and informs her about the great deals available in-store and online, specifically mentioning a 50% off on selected bedroom items. The customer clarifies that he is only interested in the laptop for his business. The agent offers to send a leasing application through text or email, which will determine how much the customer can lease up to. The customer agrees to receive the application via text and confirms his mobile number. The agent assures the customer that he can contact her for any questions or concerns, either by visiting the store or calling back. The call ends with the agent thanking the customer for choosing Acme's and wishing him a great day. The customer expresses gratitude in return. "
      }
    ]
  }
}