Hi Mahesh0212 you need to follow-steps described in Connect to Office 365 with Powershell , that's references in the article. Specifically you need to import Ad module and ms online module and initiate session to get access to Exchange Online powershell modules.
As per the schema from HTTPS call, can you please try the following one:
{
"properties": {
"odata.metadata": {
"type": "string"
},
"value": {
"items": {
"properties": {
"EndDate": {
"type": "string"
},
"FromIP": {
"type": "string"
},
"Index": {
"type": "integer"
},
"MessageId": {
"type": "string"
},
"MessageTraceId": {
"type": "string"
},
"Organization": {
"type": "string"
},
"Received": {
"type": "string"
},
"RecipientAddress": {
"type": "string"
},
"SenderAddress": {
"type": "string"
},
"Size": {
"type": "integer"
},
"StartDate": {
"type": "string"
},
"Status": {
"type": "string"
},
"Subject": {
"type": "string"
},
"ToIP": {
"type": [
"string",
"null"
]
}
},
"required": [
"Organization",
"MessageId"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
}