// inbound call log 
{
    "data": {
        "event_type": "call.initiated",
        "id": "691be6df-1ce6-4586-85dc-c8b4ea5715b6",
        "occurred_at": "2024-03-15T07:41:09.931675Z",
        "payload": {
            "call_control_id": "v3:XEPI2_Nk8h6e00-7oqhC96vnzrpZHp_2gcqbOG5gVrtr13QjnLouzg",
            "call_leg_id": "63e33fb6-e29f-11ee-815b-02420a0d0870",
            "call_session_id": "63dcc852-e29f-11ee-ab82-02420a0d0870",
            "caller_id_name": "5418556816",
            "client_state": "",
            "connection_codecs": "G722,PCMU,PCMA,G729",
            "connection_id": "2386325531927775048",
            "direction": "incoming",
            "from": "+15418556816",
            "start_time": "2024-03-15T07:41:09.931675Z",
            "state": "bridging",
            "to": "+12568349765"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https://certain-malamute-moderately.ngrok-free.app/Laravel/1352-edge-line/public/api/v1/callxControll"
    }
}

{
    "data": {
        "event_type": "call.answered",
        "id": "49a65381-eb4d-4864-9a14-1cab547e1680",
        "occurred_at": "2024-03-15T07:46:33.335947Z",
        "payload": {
            "call_control_id": "v3:7crYO0Reh2xmGuBCrvxR4biojLR06_I9CvHSFtwbL2_Cu8FkA807rA",
            "call_leg_id": "20623dea-e2a0-11ee-86f0-02420a0d0870",
            "call_session_id": "205e0d42-e2a0-11ee-bc68-02420a0d0870",
            "client_state": "",
            "connection_id": "2386325531927775048",
            "from": "+15418556816",
            "start_time": "2024-03-15T07:46:26.175886Z",
            "to": "+12568349765"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https://certain-malamute-moderately.ngrok-free.app/Laravel/1352-edge-line/public/api/v1/callxControll"
    }
}

{
    "data": {
        "event_type": "call.hangup",
        "id": "7de74477-79e4-4af7-aa75-a05b4e78ee6f",
        "occurred_at": "2024-03-15T07:46:46.595885Z",
        "payload": {
            "call_control_id": "v3:7crYO0Reh2xmGuBCrvxR4biojLR06_I9CvHSFtwbL2_Cu8FkA807rA",
            "call_leg_id": "20623dea-e2a0-11ee-86f0-02420a0d0870",
            "call_session_id": "205e0d42-e2a0-11ee-bc68-02420a0d0870",
            "client_state": "",
            "connection_id": "2386325531927775048",
            "end_time": "2024-03-15T07:46:46.595885Z",
            "from": "+15418556816",
            "hangup_cause": "normal_clearing",
            "hangup_source": "caller",
            "sip_hangup_cause": "200",
            "start_time": "2024-03-15T07:46:26.175886Z",
            "to": "+12568349765"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https://certain-malamute-moderately.ngrok-free.app/Laravel/1352-edge-line/public/api/v1/callxControll"
    }
}

{
    "data": {
        "event_type": "call.hangup",
        "id": "3c51dffa-19bb-43c2-a8a9-a87c9581cc80",
        "occurred_at": "2024-03-15T07:49:24.980680Z",
        "payload": {
            "call_control_id": "v3:XwuWRGezIHfRVsdPpPq7Ojuk4E8rACPoqSRTOiZJGTYY3Jj-a02ZLg",
            "call_leg_id": "893e6352-e2a0-11ee-a0c8-02420a0de270",
            "call_session_id": "8937bbc4-e2a0-11ee-8c58-02420a0de270",
            "client_state": "",
            "connection_id": "2386325531927775048",
            "end_time": "2024-03-15T07:49:24.980680Z",
            "from": "+15418556816",
            "hangup_cause": "originator_cancel",
            "hangup_source": "unknown",
            "sip_hangup_cause": "487",
            "start_time": "2024-03-15T07:49:22.120687Z",
            "to": "+12568349765"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https://certain-malamute-moderately.ngrok-free.app/Laravel/1352-edge-line/public/api/v1/callxControll"
    }
}

{
    "data": {
        "event_type": "call.hangup",
        "id": "64428712-4bbc-46cc-8241-ab6cb195e676",
        "occurred_at": "2024-03-15T07:50:35.766465Z",
        "payload": {
            "call_control_id": "v3:gGD3mXMNjcCgNO_5nKI06qDHX0R9QOJAMbwdFjLnXForZ7dWMJOWQg",
            "call_leg_id": "b3dcac7c-e2a0-11ee-a29d-02420a0de370",
            "call_session_id": "b3d6715e-e2a0-11ee-8799-02420a0de370",
            "client_state": "",
            "connection_id": "2386325531927775048",
            "end_time": "2024-03-15T07:50:35.766465Z",
            "from": "+15418556816",
            "hangup_cause": "user_busy",
            "hangup_source": "unknown",
            "sip_hangup_cause": "486",
            "start_time": "2024-03-15T07:50:33.626466Z",
            "to": "+12568349765"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https://certain-malamute-moderately.ngrok-free.app/Laravel/1352-edge-line/public/api/v1/callxControll"
    }
}

// outbound call log
{
    "data": {
        "event_type": "call.initiated",
        "id": "598619f8-f1b7-4e2d-8193-e380d08e6359",
        "occurred_at": "2024-02-29T09:09:00.505036Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "custom_headers": [
                {
                    "name": "X-rtc_leg_uuid",
                    "value": "84fb0fd8-52a5-488c-8c6e-f2a14882bc5a"
                }
            ],
            "direction": "outgoing",
            "from": "+14238730058",
            "state": "bridging",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}

{
    "data": {
        "event_type": "call.initiated",
        "id": "598619f8-f1b7-4e2d-8193-e380d08e6359",
        "occurred_at": "2024-02-29T09:09:00.505036Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "custom_headers": [
                {
                    "name": "X-rtc_leg_uuid",
                    "value": "84fb0fd8-52a5-488c-8c6e-f2a14882bc5a"
                }
            ],
            "direction": "outgoing",
            "from": "+14238730058",
            "state": "bridging",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 2,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}

{
    "data": {
        "event_type": "call.bridged",
        "id": "7ecd6617-6a75-49d6-86e3-d4e3f63281be",
        "occurred_at": "2024-02-29T09:09:03.925094Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "from": "+14238730058",
            "start_time": "2024-02-29T09:09:00.325036Z",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}

{
    "data": {
        "event_type": "call.initiated",
        "id": "598619f8-f1b7-4e2d-8193-e380d08e6359",
        "occurred_at": "2024-02-29T09:09:00.505036Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "custom_headers": [
                {
                    "name": "X-rtc_leg_uuid",
                    "value": "84fb0fd8-52a5-488c-8c6e-f2a14882bc5a"
                }
            ],
            "direction": "outgoing",
            "from": "+14238730058",
            "state": "bridging",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 3,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}

{
    "data": {
        "event_type": "call.bridged",
        "id": "7ecd6617-6a75-49d6-86e3-d4e3f63281be",
        "occurred_at": "2024-02-29T09:09:03.925094Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "from": "+14238730058",
            "start_time": "2024-02-29T09:09:00.325036Z",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 2,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}

{
    "data": {
        "event_type": "call.bridged",
        "id": "7ecd6617-6a75-49d6-86e3-d4e3f63281be",
        "occurred_at": "2024-02-29T09:09:03.925094Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "from": "+14238730058",
            "start_time": "2024-02-29T09:09:00.325036Z",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 3,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}

{
    "data": {
        "event_type": "call.answered",
        "id": "940b0d26-bdca-4d31-a817-5d3e1748a6ab",
        "occurred_at": "2024-02-29T09:09:14.445096Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "custom_headers": [
                {
                    "name": "X-rtc_leg_uuid",
                    "value": "84fb0fd8-52a5-488c-8c6e-f2a14882bc5a"
                }
            ],
            "from": "+14238730058",
            "start_time": "2024-02-29T09:09:00.325036Z",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}

{
    "data": {
        "event_type": "call.answered",
        "id": "940b0d26-bdca-4d31-a817-5d3e1748a6ab",
        "occurred_at": "2024-02-29T09:09:14.445096Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "custom_headers": [
                {
                    "name": "X-rtc_leg_uuid",
                    "value": "84fb0fd8-52a5-488c-8c6e-f2a14882bc5a"
                }
            ],
            "from": "+14238730058",
            "start_time": "2024-02-29T09:09:00.325036Z",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 2,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}

{
    "data": {
        "event_type": "call.answered",
        "id": "940b0d26-bdca-4d31-a817-5d3e1748a6ab",
        "occurred_at": "2024-02-29T09:09:14.445096Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "custom_headers": [
                {
                    "name": "X-rtc_leg_uuid",
                    "value": "84fb0fd8-52a5-488c-8c6e-f2a14882bc5a"
                }
            ],
            "from": "+14238730058",
            "start_time": "2024-02-29T09:09:00.325036Z",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 3,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}

{
    "data": {
        "event_type": "call.hangup",
        "id": "e7f59e69-a2e4-4890-94ba-df8cde301265",
        "occurred_at": "2024-02-29T09:09:32.885036Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "custom_headers": [
                {
                    "name": "X-rtc_leg_uuid",
                    "value": "84fb0fd8-52a5-488c-8c6e-f2a14882bc5a"
                }
            ],
            "end_time": "2024-02-29T09:09:32.885036Z",
            "from": "+14238730058",
            "hangup_cause": "normal_clearing",
            "hangup_source": "callee",
            "sip_hangup_cause": "200",
            "start_time": "2024-02-29T09:09:00.325036Z",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}


{
    "data": {
        "event_type": "call.hangup",
        "id": "e7f59e69-a2e4-4890-94ba-df8cde301265",
        "occurred_at": "2024-02-29T09:09:32.885036Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "custom_headers": [
                {
                    "name": "X-rtc_leg_uuid",
                    "value": "84fb0fd8-52a5-488c-8c6e-f2a14882bc5a"
                }
            ],
            "end_time": "2024-02-29T09:09:32.885036Z",
            "from": "+14238730058",
            "hangup_cause": "normal_clearing",
            "hangup_source": "callee",
            "sip_hangup_cause": "200",
            "start_time": "2024-02-29T09:09:00.325036Z",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 2,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}


{
    "data": {
        "event_type": "call.hangup",
        "id": "e7f59e69-a2e4-4890-94ba-df8cde301265",
        "occurred_at": "2024-02-29T09:09:32.885036Z",
        "payload": {
            "call_control_id": "v3:xCVnzN_sUQPi-koPUT_iFiuWqE_eufV6s-Jwqdtct9mwfAJS9UFyXQ",
            "call_leg_id": "2d26af6c-d6e2-11ee-920e-02420a0d7f68",
            "call_session_id": "2d26bd04-d6e2-11ee-a159-02420a0d7f68",
            "client_state": "R3VqYXJhdA==",
            "connection_id": "2374728236723603253",
            "custom_headers": [
                {
                    "name": "X-rtc_leg_uuid",
                    "value": "84fb0fd8-52a5-488c-8c6e-f2a14882bc5a"
                }
            ],
            "end_time": "2024-02-29T09:09:32.885036Z",
            "from": "+14238730058",
            "hangup_cause": "normal_clearing",
            "hangup_source": "callee",
            "sip_hangup_cause": "200",
            "start_time": "2024-02-29T09:09:00.325036Z",
            "to": "+919898732935"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 3,
        "delivered_to": "https:\/\/37fc-182-70-119-154.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/makeXoutboundXCall"
    }
}
// Outbound SMS
{
    "id": "40318e32-732d-4f23-b7d4-fd0f6b163674",
    "record_type": "message",
    "direction": "outbound",
    "type": "SMS",
    "organization_id": "adc09d44-ff52-4709-b122-a39d715befec",
    "messaging_profile_id": "40018e32-3718-4d81-9188-34b82bb81f3d",
    "from": {
        "phone_number": "edge line",
        "carrier": "Telnyx",
        "line_type": "Wireless"
    },
    "to": [
        {
            "phone_number": "+916358821097",
            "status": "queued",
            "carrier": "",
            "line_type": ""
        }
    ],
    "cc": [],
    "text": "Hy",
    "media": [],
    "webhook_url": "https:\/\/certain-malamute-moderately.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/sentSMSCallback",
    "webhook_failover_url": "",
    "encoding": "GSM-7",
    "parts": 1,
    "tags": [
        "Edge_Line"
    ],
    "cost": {
        "amount": "0.0400",
        "currency": "USD"
    },
    "received_at": "2024-03-12T11:36:33.020+00:00",
    "sent_at": null,
    "completed_at": null,
    "valid_until": "2024-03-12T12:36:33.020+00:00",
    "errors": []
}

{
    "data": {
        "event_type": "message.sent",
        "id": "d28da113-e0f8-4642-a91f-0c4fdb503efa",
        "occurred_at": "2024-03-12T11:36:33.631+00:00",
        "payload": {
            "cc": [],
            "completed_at": null,
            "cost": {
                "amount": "0.0400",
                "currency": "USD"
            },
            "direction": "outbound",
            "encoding": "GSM-7",
            "errors": [],
            "from": {
                "carrier": "Telnyx",
                "line_type": "Wireless",
                "phone_number": "edge line"
            },
            "id": "40318e32-732d-4f23-b7d4-fd0f6b163674",
            "media": [],
            "messaging_profile_id": "40018e32-3718-4d81-9188-34b82bb81f3d",
            "organization_id": "adc09d44-ff52-4709-b122-a39d715befec",
            "parts": 1,
            "received_at": "2024-03-12T11:36:33.020+00:00",
            "record_type": "message",
            "sent_at": "2024-03-12T11:36:33.631+00:00",
            "tags": [
                "Edge_Line"
            ],
            "text": "Hy",
            "to": [
                {
                    "carrier": null,
                    "line_type": null,
                    "phone_number": "+916358821097",
                    "status": "sent"
                }
            ],
            "type": "SMS",
            "valid_until": "2024-03-12T12:36:33.020+00:00",
            "webhook_failover_url": null,
            "webhook_url": "https:\/\/certain-malamute-moderately.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/sentSMSCallback"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https:\/\/certain-malamute-moderately.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/sentSMSCallback"
    }
}

{
    "data": {
        "event_type": "message.finalized",
        "id": "e3401cbd-a863-4495-a3b4-aaa9db1aae34",
        "occurred_at": "2024-03-12T11:37:13.517+00:00",
        "payload": {
            "cc": [],
            "completed_at": "2024-03-12T11:37:13.516+00:00",
            "cost": {
                "amount": "0.0400",
                "currency": "USD"
            },
            "direction": "outbound",
            "encoding": "GSM-7",
            "errors": [],
            "from": {
                "carrier": "Telnyx",
                "line_type": "Wireless",
                "phone_number": "edge line"
            },
            "id": "40318e32-732d-4f23-b7d4-fd0f6b163674",
            "media": [],
            "messaging_profile_id": "40018e32-3718-4d81-9188-34b82bb81f3d",
            "organization_id": "adc09d44-ff52-4709-b122-a39d715befec",
            "parts": 1,
            "received_at": "2024-03-12T11:36:33.020+00:00",
            "record_type": "message",
            "sent_at": "2024-03-12T11:36:33.631+00:00",
            "tags": [
                "Edge_Line"
            ],
            "text": "Hy",
            "to": [
                {
                    "carrier": null,
                    "line_type": null,
                    "phone_number": "+916358821097",
                    "status": "delivered"
                }
            ],
            "type": "SMS",
            "valid_until": "2024-03-12T12:36:33.020+00:00",
            "webhook_failover_url": null,
            "webhook_url": "https:\/\/certain-malamute-moderately.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/sentSMSCallback"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https:\/\/certain-malamute-moderately.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/sentSMSCallback"
    }
}
// receive SMS
{
    "data": {
        "event_type": "message.received",
        "id": "b0d5566e-5bb9-4e2d-914d-d032478c991a",
        "occurred_at": "2024-03-12T12:02:03.966+00:00",
        "payload": {
            "autoresponse_type": null,
            "cc": [],
            "completed_at": null,
            "cost": null,
            "direction": "inbound",
            "encoding": "GSM-7",
            "errors": [],
            "from": {
                "carrier": null,
                "line_type": "Wireline",
                "phone_number": "+14403728989"
            },
            "id": "1bdbb82c-8491-4558-8aa9-6cba13789ba9",
            "is_spam": false,
            "media": [],
            "messaging_profile_id": "40018e32-3718-4d81-9188-34b82bb81f3d",
            "organization_id": "adc09d44-ff52-4709-b122-a39d715befec",
            "parts": 1,
            "received_at": "2024-03-12T12:02:03.662+00:00",
            "record_type": "message",
            "sent_at": null,
            "subject": null,
            "tags": [
                "Edge_Line"
            ],
            "text": "Hello",
            "to": [
                {
                    "carrier": "Telnyx",
                    "line_type": "Wireless",
                    "phone_number": "+14238730058",
                    "status": "webhook_delivered"
                }
            ],
            "type": "SMS",
            "valid_until": null,
            "webhook_failover_url": null,
            "webhook_url": "https:\/\/certain-malamute-moderately.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/receiveSMS"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https:\/\/certain-malamute-moderately.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/receiveSMS"
    }
}
// with media
{
    "data": {
        "event_type": "message.received",
        "id": "a8a1da6e-4b7d-4b12-8474-cda2664d8509",
        "occurred_at": "2024-03-12T12:42:12.457+00:00",
        "payload": {
            "autoresponse_type": null,
            "cc": [
                "+14238730058"
            ],
            "completed_at": null,
            "cost": null,
            "direction": "inbound",
            "encoding": "UCS-2",
            "errors": [],
            "from": {
                "carrier": null,
                "line_type": "Wireline",
                "phone_number": "+14403728989"
            },
            "id": "99bc88b5-e45a-48ed-a8c9-308768d42ef1",
            "is_spam": false,
            "media": [
                {
                    "content_type": "image\/jpeg",
                    "hash_sha256": "4c1d3ab0fffec50b06ebba05f287feab0dce4ccbf2f8b99f8519775e19e1685b",
                    "size": 208835,
                    "url": "https:\/\/tlnx-mms-media.s3.amazonaws.com\/mms\/35a643cb300712684977879e864fb152\/4c1d3ab0fffec50b06ebba05f287feab0dce4ccbf2f8b99f8519775e19e1685b.jpeg"
                }
            ],
            "messaging_profile_id": "40018e32-3718-4d81-9188-34b82bb81f3d",
            "organization_id": "adc09d44-ff52-4709-b122-a39d715befec",
            "parts": 1,
            "received_at": "2024-03-12T12:42:12.349+00:00",
            "record_type": "message",
            "sent_at": null,
            "subject": null,
            "tags": [
                "Edge_Line"
            ],
            "text": null,
            "to": [
                {
                    "carrier": "Telnyx",
                    "line_type": "Wireless",
                    "phone_number": "+14238730058",
                    "status": "webhook_delivered"
                }
            ],
            "type": "MMS",
            "valid_until": null,
            "webhook_failover_url": null,
            "webhook_url": "https:\/\/certain-malamute-moderately.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/receiveSMS"
        },
        "record_type": "event"
    },
    "meta": {
        "attempt": 1,
        "delivered_to": "https:\/\/certain-malamute-moderately.ngrok-free.app\/Laravel\/1352-edge-line\/public\/api\/v1\/receiveSMS"
    }
}
// Create SIP Connection Credential
{
    "id": "2386171426731197937",
    "record_type": "credential_connection",
    "active": true,
    "user_name": "up13048840362sq",
    "registration_status": "Not Registered",
    "registration_status_updated_at": null,
    "password": "up13048840362sq",
    "anchorsite_override": "Latency",
    "connection_name": "SIP_13048840362",
    "sip_uri_calling_preference": "unrestricted",
    "default_on_hold_comfort_noise_enabled": true,
    "dtmf_type": "RFC 2833",
    "encode_contact_header_enabled": false,
    "encrypted_media": null,
    "onnet_t38_passthrough_enabled": false,
    "ios_push_credential_id": "7405d482-a32a-4c0d-b0ff-34cdcb1b7bd8",
    "android_push_credential_id": null,
    "third_party_control_enabled": false,
    "webhook_event_url": "http:\/\/localhost\/Laravel\/1352-edge-line\/public\/index.php\/api\/v1\/makeXoutboundXCall",
    "webhook_event_failover_url": "",
    "webhook_api_version": "2",
    "webhook_timeout_secs": null,
    "rtcp_settings": {
        "port": "rtp+1",
        "report_frequency_secs": 5,
        "capture_enabled": false
    },
    "created_at": "2024-03-14T06:56:40Z",
    "updated_at": "2024-03-14T06:56:41Z",
    "inbound": {
        "ani_number_format": "E.164-national",
        "dnis_number_format": "e164",
        "codecs": [
            "G722",
            "G711U",
            "G711A",
            "G729"
        ],
        "default_routing_method": "sequential",
        "channel_limit": null,
        "instant_ringback_enabled": false,
        "generate_ringback_tone": false,
        "isup_headers_enabled": false,
        "prack_enabled": false,
        "privacy_zone_enabled": false,
        "sip_compact_headers_enabled": true,
        "timeout_1xx_secs": null,
        "timeout_2xx_secs": null,
        "shaken_stir_enabled": false
    },
    "outbound": {
        "call_parking_enabled": null,
        "ani_override": "",
        "ani_override_type": "always",
        "channel_limit": null,
        "instant_ringback_enabled": true,
        "generate_ringback_tone": false,
        "localization": "US",
        "t38_reinvite_source": "telnyx",
        "outbound_voice_profile_id": null
    }
}

// purchase number 
{
    "id": "1ed718b8-6805-41e2-ae8f-6c62b69c8fb0",
    "messaging_profile_id": "40018e32-3718-4d81-9188-34b82bb81f3d",
    "created_at": "2024-03-14T12:02:52.951608+00:00",
    "updated_at": "2024-03-14T12:02:52.951609+00:00",
    "customer_reference": "",
    "sub_number_orders_ids": [
        "af147407-667e-4288-abd5-69a9acdb8bb7"
    ],
    "phone_numbers_count": 1,
    "phone_numbers": [
        {
            "id": "4696711b-71fa-439d-a4f0-2f1623dcfd8b",
            "regulatory_requirements": [],
            "phone_number": "+12568349765",
            "country_code": "US",
            "phone_number_type": "local",
            "requirements_status": "approved",
            "status": "pending",
            "bundle_id": "",
            "requirements_met": 1,
            "record_type": "number_order_phone_number"
        }
    ],
    "connection_id": "2386325531927775048",
    "billing_group_id": "",
    "status": "pending",
    "requirements_met": 1,
    "record_type": "number_order"
}
