{
  "openapi": "3.1.0",
  "info": {
    "title": "MesserGo API",
    "version": "1.0.0",
    "description": "תיעוד ה-API של מסר גו: שליחת SMS, מיילים, ניהול אנשי קשר (מערכת הדיוור), ושליחת תבניות WhatsApp. מקור מלא: https://docs.message.co.il",
    "contact": {
      "name": "MesserGo",
      "url": "https://docs.message.co.il"
    }
  },
  "servers": [
    {
      "url": "https://capi.mesergo.co.il",
      "description": "מערכת דיוור ו-SMS"
    },
    {
      "url": "https://wa.message.co.il",
      "description": "ווטסאפ"
    }
  ],
  "tags": [
    {
      "name": "SMS"
    },
    {
      "name": "מיילים (Email)"
    },
    {
      "name": "אנשי קשר (Contacts)"
    },
    {
      "name": "WhatsApp"
    }
  ],
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "HTTP Basic — שם משתמש:טוקן (Base64)."
      },
      "waToken": {
        "type": "apiKey",
        "in": "query",
        "name": "token",
        "description": "טוקן ווטסאפ ב-query string."
      }
    }
  },
  "paths": {
    "/api/v2/SMS/SendSms": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Send SMS › Send SMS using json › Simple example",
        "description": "Parameters\nRequired \\ Optional\nType\nValue\n\nMessage\nrequired\nstring\nSMS message that needs to be sent.\n\nPhone\nrequired\nstring\nThe recipient phone number.\n\nSender\nrequired\nstring\nThe ID that will be displayed in the recipient's phone as the sender. \nThe \"Sender\" field is restricted to a maximum of 11 characters (Consecutive characters, no spaces) or a Phone number that contains maximum 14 digits (no characters)that allowed in the white list in the system(to insert the phone to the white list go to the folder Whitelist - Sender ). You can also write an asterisk (*) at the beginning \nof the identifier.",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/SMS/SendSms",
                  "RequestId": "sFmbyVGdulmL1J3bm5WauEjMnR3ckV3bsNWPl1WYOR3cvhkJxETQzUSO1E0MlkDMrgTMtATMtEjMwITPw1WY0NVZtlGVmcjM4MDMwETPklkclNXV",
                  "Data": {
                    "Recipients": 1,
                    "Errors": null
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Simple example": {
                  "value": {
                    "Data": {
                      "Message": "Hello world",
                      "Recipients": [
                        {
                          "Phone": "0541234567"
                        }
                      ],
                      "Settings": {
                        "Sender": "MyBrand"
                      }
                    }
                  }
                },
                "Advanced example": {
                  "value": {
                    "Data": {
                      "Message": "Hello [#FirstName#] [#LastName#], reminder for meeting with [#Representative#]",
                      "Recipients": [
                        {
                          "FirstName": "John",
                          "LastName": "Smith",
                          "Representative": "David",
                          "CustomerMessageID": "33",
                          "CustomerParameter": "44",
                          "Phone": "0541234567"
                        },
                        {
                          "FirstName": "Danni",
                          "LastName": "levi",
                          "Representative": "Mike",
                          "CustomerMessageID": "55",
                          "CustomerParameter": "66",
                          "Phone": "0581234567"
                        }
                      ],
                      "GroupNumbers": [
                        {
                          "GroupNumber": 7
                        }
                      ],
                      "ExcludeGroupNumbers": [
                        {
                          "GroupNumber": 29
                        }
                      ],
                      "Settings": {
                        "Sender": "info",
                        "CampaignName": "Advance sending",
                        "TimeToSend": "2022-11-13 13:00:00",
                        "DelayInSeconds": 65,
                        "CustomerMessageID": "AF7864348",
                        "CustomerParameter": "sms",
                        "DeliveryNotificationUrl": "https://mysite.co.il/DeliveryNotification.aspx",
                        "Priority": 0,
                        "MaxSegments": 0,
                        "IgnoreUnsubscribeCheck": false,
                        "ExpireDate": "2022-11-13 13:00:00",
                        "IgnorePossibleSendingTime": false,
                        "CheckTimeRestiction": false,
                        "ShortenUrlEnable": true,
                        "AllowDuplicates": false,
                        "TrackPurchaseTData": true
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Otp/Message/Send": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Send SMS › Send SMS + Voice failover › Send SMS + Voice failover",
        "description": "This function sends a client-generated OTP message to a single recipient via SMS, Voice, or SMS with Voice failover.\n\nThe OTP code is generated by the client and must be provided in the request using the OtpCode parameter. The system does not generate the OTP code.\n\nWhen using SMS_WITH_VOICE_FAILOVER, the system sends the OTP via SMS when SMS delivery is available. If the recipient's number requires Voice delivery, such as a landline or kosher phone, the message is delivered as a Voice call instead.\n\nFor Voice delivery, the client can require the recipient to press a specified digit before the OTP code is played.\n\nOTP messages sent through this endpoint are prioritized by the system.\n\nThe client should perform an HTTPS POST request to the following URL using UTF-8 encoding.\n\nParameters\n\nParameter\nRequired\\Optional\nType\nValue\n\nChannel\nRequired\nstring\nDelivery channel. Supported values: SMS, VOICE, SMS_WITH_VOICE_FAILOVER\n\nCampaignName\nOptional\nstring\nCampaign name for identification and reporting\n\nIgnorePossibleSendingTime\nOptional\nbool\nfalse by default. Set to true to ignore sending-time limitations\n\nIgnoreUnsubscribeCheck\nOptional\nbool\nfalse by default. Set to true to ignore the recipient's subscription status\n\nOtpCode\nRequired\nstring\nOTP code generated by the client\n\nPhone\nRequired\nstring\nRecipient phone number. Only one recipient can be supplied per request\n\nCustomerMessageID\nOptional\nstring\nCustomer-defined message identifier\n\nVoiceSettings.CampaignRefId\nOptional\nstring /",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Otp/Message/Send",
                  "RequestId": "sFmbyVGdulmL1J3bm5WauATMpBXYj1TZtFmT0N3bIZCOzE0MlcDNBNTJxEzK0ITL2ATL2IDMy0DctFGdTVWbpRlJzUjMwMTPklkclNXV",
                  "Data": {
                    "RecipientsSMS": 1,
                    "RecipientsVoice": 0,
                    "Errors": null
                  }
                }
              }
            }
          }
        },
        "servers": [
          {
            "url": "https://cloud.mesergo.co.il"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Send SMS + Voice failover": {
                  "value": {
                    "Data": {
                      "Channel": "SMS_WITH_VOICE_FAILOVER",
                      "CampaignName": "OTP Test",
                      "IgnorePossibleSendingTime": false,
                      "IgnoreUnsubscribeCheck": false,
                      "OtpCode": "123455",
                      "Phone": "0509999999",
                      "CustomerMessageID": "OTP-Test-001",
                      "VoiceSettings": {
                        "CampaignRefId": 0,
                        "CallerId": "039415550",
                        "Language": "he-male",
                        "RequireDigitPress": true,
                        "Digit": "1",
                        "PreMessage": "נשלחה אליך הודעת OTP. לשמיעת ההודעה הקש {Digit}",
                        "Message": "הקוד שלך הוא {OtpCode}"
                      },
                      "SMSSettings": {
                        "Sender": "039415550",
                        "Message": "הקוד שלך הוא {OtpCode}"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/inforufrontend/WebInterface/SendMessageByNumber.aspx": {
      "get": {
        "tags": [
          "SMS"
        ],
        "summary": "Send SMS › Send SMS Using Parameters › Send SMS using parameters",
        "description": "",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "servers": [
          {
            "url": "https://api.mesergo.co.il"
          }
        ],
        "parameters": [
          {
            "name": "UserName",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "string"
          },
          {
            "name": "ApiToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "string"
          },
          {
            "name": "SenderCellNumber",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "string"
          },
          {
            "name": "CellNumber",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "string"
          },
          {
            "name": "MessageString",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "string"
          },
          {
            "name": "IgnoreUnsubscribeCheck",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "boolean"
          }
        ]
      }
    },
    "/api/v2/PullData": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Utilities › Delivery Notification › Pull option using json › Pull DLR using json",
        "description": "Parameters\n\nParameters\n\nRequired\\Optional\n\nType\n\nValue\n\nType\n\nrequired\n\nstring\n\nFor pull the Delivery Notification use Type:\nDeliveryNotificationSMS\n\nPhoneNumber\n\noptional\n\nstring\n\nFor pull the receiving messages of this phone number only\n\nBatchSize\n\noptional\n\nstring\n\nThe number of notifications transferred\n\nAn explanation of the return parameters:\n\n• PhoneNumber – The number of the recipient.\n• Network – The network of the recipient.\n• Status – The status of the message:\n(2) – Delivered.\n(-2) – Not delivered.\n(-4) – Blocked by MesserGo.\n(6) - Clicked\n(-107) - Convert to IVR\n• StatusDescription – If not delivered, contains the reason.\n• ProjectId – The project ID Below describes the user who sent the message.\n• CustomerMessageId – The client message ID.\n• CustomerParam – The client parameter.\n• SenderNumber – The ID of the sender who sent the message.\n• SegmentsNumber – The amount of segments in the message (See \"Message character length\").\n• SentMessage– The content of the sent message.\n• InsertDate – Time of receiving the notification from the cellular operator.\n\n• OperatorResultId - Represents the operator-specific result code for the message delivery.\nIn case of non-delivery, this field indicates the failure reason.",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/PullData",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJxITQzUyMxE0MlMTMrUTMtETMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Count": 3,
                    "List": [
                      {
                        "PartnerId": null,
                        "CustomerId": null,
                        "ProjectId": 1040177,
                        "UserId": null,
                        "InsertDate": "2021-11-15T13:12:34.617",
                        "PullDataType": "DeliveryNotificationSMS",
                        "PullData": {
                          "PhoneNumber": "0541234657",
                          "Network": "053",
                          "Status": 2,
                          "StatusDescription": "Delivered",
                          "OperatorResultId": "2",
                          "CustomerMessageId": 3,
                          "CustomerParam": "sms",
                          "SenderNumber": "ar",
                          "SegmentsNumber": 1,
                          "SentMessage": "Hello this is send sms api https://zapier.com/app/zap/137759827/history",
                          "NotificationDate": "2021-11-15T13:12:23"
                        }
                      },
                      {
                        "PartnerId": null,
                        "CustomerId": null,
                        "ProjectId": 1040177,
                        "UserId": null,
                        "InsertDate": "2021-11-15T13:12:35.15",
                        "PullDataType": "DeliveryNotificationSMS",
                        "PullData": {
                          "PhoneNumber": "0541234567",
                          "Network": "053",
                          "Status": 2,
                          "StatusDescription": "Delivered",
                          "OperatorResultId": "2",
                          "CustomerMessageId": 3,
                          "CustomerParam": "sms",
                          "SenderNumber": "ar",
                          "SegmentsNumber": 1,
                          "SentMessage": "Hello this is send sms api",
                          "NotificationDate": "2021-11-15T13:12:25"
                        }
                      },
                      {
                        "PartnerId": null,
                        "CustomerId": null,
                        "ProjectId": 1040177,
                        "UserId": null,
                        "InsertDate": "2021-11-15T13:13:05.537",
                        "PullDataType": "DeliveryNotificationSMS",
                        "PullData": {
                          "PhoneNumber": "0541234567",
                          "Network": "053",
                          "Status": 2,
                          "StatusDescription": "Delivered",
                          "OperatorResultId": "2",
                          "CustomerMessageId": 3,
                          "CustomerParam": "sms",
                          "SenderNumber": "ar",
                          "SegmentsNumber": 1,
                          "SentMessage": "Hello this is send sms api ",
                          "NotificationDate": "2021-11-15T13:12:55"
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Pull DLR using json": {
                  "value": {
                    "Data": {
                      "Type": "DeliveryNotificationSMS",
                      "BatchSize": 500
                    }
                  }
                },
                "Pull Receiving SMS using json": {
                  "value": {
                    "Data": {
                      "Type": "IncomingMessagesSMS",
                      "BatchSize": 500
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/SMS/DeleteFutureMessages": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Utilities › Delete Future Messages › Delete Future Messages SMS",
        "description": "This function deletes future messages by phone number or customer parameter or customer message id.\nOne of these fields must contain a value, the condition is AND, so if the request contains 2 or 3 parameters, so the message will be deleted only if when you send the message you provided same values in this parameters.\n\nParameters\nRequired\\Optional\nType\nValue\n\nPhoneNumber\nOptional\nstring\nThe phone number for which you want to delete future messages\n\nCustomerParameter\nOptional\nstring\nThe customer paramter that sent in the send sms request\n\nCustomerMessageID\nOptional\nstring\nThe customer message ID that sent in the send sms request\n\n*A single phone can also be deleted by sending the SMS message to many recipients at the same time, but in this case the quota will not be refunded.",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/SMS/DeleteFutureMessages",
                  "RequestId": ",wWYuJXZ05WauUncvZmbp5CMykGchNWPl1WYOR3cvhkJzETQzUyN0E0MlQTMrITMtcDMtMjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "DeletedCount": 1
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Delete Future Messages SMS": {
                  "value": {
                    "Data": {
                      "PhoneNumber": "0549999999",
                      "CustomerMessageID": "123456",
                      "CustomerParameter": "123456"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/SMS/Whitelist/SenderIdIsAllowed": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Utilities › Check if Sender allowed › SenderIdIsAllowed using json",
        "description": "This function checks if sender id is allowed to send SMS\n\nThe Authentication method is basic authentication link for explanation \n\nParameters\n\nParameters\nRequired\\Optional\nType\nValue\n\nSenderId\nRequired\nstring\nThe Sender id do you want to check\n\nCustomerId\nOptional\ninteger\nIf you want to check for another CustomerId under your account\n\nUsername\nOptional\nstring\nIf you want to check for another username under your account",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/SMS/Whitelist/SenderIdIsAllowed",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJzATQzUSOyE0MlQTMrUDMtITMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "CustomerId": 26745,
                    "SenderId": "0529999999",
                    "IsAllowed": false
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "SenderIdIsAllowed using json": {
                  "value": {
                    "Data": {
                      "SenderId": "0529999999",
                      "CustomerId": 123,
                      "Username": "user123"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/SMS/Whitelist/SendOtp": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Utilities › Whitelist - Sender › Whitelist - Send OTP › SendOtp",
        "description": "This function sends SMS/Call OTP for Submit a request to whitelist\nTo use this function contact our customer support.\n\nThe Authentication method is basic authentication link for explanation\n\nParameters\n\nParameter\nRequired\\Optional\nType\nValue\n\nSenderId\nRequired\nstring\nThe Sender id do you want to whiten\n\nUserId\nOptional\nstring\nIf you want to whiten for another UserId under your account\n\nUsername\nOptional\nstring\nIf you want to whiten for another username under your account.\n\nOtpType\nOptional\nstring\nAUTO/SMS/VOICE – If you do not provide this parameter the default setting \nwill be AUTO, meaning that if the Sender ID is a landline or a Kosher phone a Voice OTP will be sent, for \nall other phone types the OTP will be sent as text by SMS.",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/SMS/Whitelist/SendOtp",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJ3MTQzUSOzE0MlkDMrMTMtITMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Sent": true,
                    "SenderId": "0529999999",
                    "UserId": 1044244
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "SendOtp": {
                  "value": {
                    "Data": {
                      "SenderId": "0529999999",
                      "UserId": "12346",
                      "Username": "Username",
                      "OtpType": "SMS/VOICE/AUTO"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/SMS/Whitelist/AuthenticateOtp": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Utilities › Whitelist - Sender › Whitelist – Authenticate OTP › AuthenticateOtp",
        "description": "This function Authenticate OTP and do whitelist\n\nThe Authentication method is basic authentication link for explanation\n\nParameters\n\nParameter\nRequired\\Optional\nType\nValue\n\nSenderId\nRequired\nstring\nThe Sender id do you want to whiten\n\nOtpCode\nRequired\nstring\nThe code you received on your device\n\nUserId\nOptional\nstring\nIf you want to whiten for another UserId under your account\n\nUsername\nOptional\nstring\nIf you want to whiten for another username under your account\n\nComments\nOptional\nstring\nIf you want to save Comment in our system",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/SMS/Whitelist/AuthenticateOtp",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJ0MTQzUCN0E0MlkDMrMTMtITMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "SenderId": "0529999999",
                    "CustomerId": 26745
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "AuthenticateOtp": {
                  "value": {
                    "Data": {
                      "SenderId": "0529999999",
                      "OtpCode": "750930",
                      "UserId": "12346",
                      "Username": "Username",
                      "Comments": "Comments"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/SMS/GetSentMessages": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Utilities › Reports › Get Sent Messages › Get Sent Messages",
        "description": "This function gets the sent messages report by phone number.\n\n*To use this function please contact to sales department\n\nParameters\nRequired\\Optional\nType\nValue\n\nPhone\nRequired\nstring\nThe phone number you want to receive the report on\n\nFromDate\nRequired\ndate\nStart report date (incloud this day)\n\nToDate\nRequired\ndate\nEnd report date (incloud this day)\n\nLevel\nRequired\nstring\nCustomer /Project /User\n\nIf you choose level \"customer\\Project\" then you will also receive in the report messages sent by other users in the same customer or project, provided you have the appropriate permissions.",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/SMS/GetSentMessages",
                  "RequestId": ",,Abh5mclRnbp5yZul2ZhR3cuEjMkV3bsN2Z0NXPl1WYOR3cvhkJ3QTQzUyNxE0MlUTMrITMtcDMtMjMwITPw1WY0NVZtlGVmQzM4QDMwETPklkclNXV",
                  "Data": {
                    "List": [
                      {
                        "CustomerId": 3,
                        "ProjectId": 24,
                        "UserId": 1004834,
                        "TimeSent": "2021-08-03T13:53:43.31",
                        "TimeOfConfirmation": "2021-08-03T13:53:44",
                        "SenderId": "ariellevi",
                        "DeliveryNotificationStatusId": 2,
                        "DeliveryNotificationReasonName": "Delivered",
                        "PhoneNumber": "0549999999",
                        "ContactId": 0,
                        "CustomerMessageId": "",
                        "ContactFullName": null,
                        "CustomerParameter": "",
                        "InforuApplicationParameter": "9W0GJB6311K0KJCB",
                        "Message": "This is a test SMS Message",
                        "NumberOfSegments": 1
                      },
                      {
                        "CustomerId": 3,
                        "ProjectId": 24,
                        "UserId": 1004834,
                        "TimeSent": "2021-08-03T13:58:14.123",
                        "TimeOfConfirmation": "2021-08-03T13:58:15",
                        "SenderId": "ariellevi",
                        "DeliveryNotificationStatusId": 2,
                        "DeliveryNotificationReasonName": "Delivered",
                        "PhoneNumber": "0549999999",
                        "ContactId": 0,
                        "CustomerMessageId": "",
                        "ContactFullName": null,
                        "CustomerParameter": "",
                        "InforuApplicationParameter": "9W0GJB6311K0KJCB",
                        "Message": "This is a test SMS Message ",
                        "NumberOfSegments": 1
                      }
                    ],
                    "LastFetch": {
                      "DateTime": "2021-08-03T13:58:14.123",
                      "Id": 10224
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get Sent Messages": {
                  "value": {
                    "Data": {
                      "Phone": "0543266290",
                      "FromDate": "2021-08-03",
                      "ToDate": "2021-08-03",
                      "Level": "User"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Admin/GetBlockLink": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Utilities › Get Unsubscribe Link › Get Unsubscribe Link",
        "description": "StartFragment\n\nThis function gets the sms unsubscribe link\n\nStartFragment\n\nParameters\n\nEndFragment\n\nParameters\nRequired\\Optional\ntype\nValue\n\nUsername\nRequired\nstring\nEnter the username that you want to get his unsubscibe link\n\nWithphonenumber\noptional\nboolean\nSet true to \"_phnx\" will be added to the link. \n(This addition means that when sending the SMS, the system encodes the recipient's phone number at the end of the link so that he does not have to enter it.",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Admin/GetBlockLink",
                  "RequestId": ",wWYuJXZ05WauUncvZmbp5CMxkGchNWPl1WYOR3cvhkJ4ETQzUSNwE0MlcTMrMTMtcDMtMjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "BlockText": "להסרה https://l5k.me/Zh1ef_#phnx",
                    "BlockLink": "https://l5k.me/Zh1ef"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get Unsubscribe Link": {
                  "value": {
                    "Data": {
                      "Username": "Username",
                      "WithPhoneNumber": "1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Umail/Campaign/Send/": {
      "post": {
        "tags": [
          "מיילים (Email)"
        ],
        "summary": "Mail › Send Email › Send Existing Campaign › Simple example",
        "description": "You need to use this function when you want to send via API a predefined email template (optionally with placeholders) you created on MesserGo user interface.First, you need to create the email template on on MesserGo user interface, get a template Id and then use the API to send it.\n\nParameters\n\nRequired\\Optional\n\ntype\n\nValue\n\nCampaignId\n\nRequired\n\nstring\n\nThe NewsLetter ID in MesserGo system\n\nDuplicate\n\nRequired\n\nbool\n\nCreate a duplicate campaign.\n\nFirstName\n\nOptional\n\nstring\n\nThe first name of the contact\n\nEmail\n\nRequired\n\nstring\n\nThe email of the contact",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "CampaignId": 57934763,
                  "Recipients": 0,
                  "token": "5fyhqwlehsf9"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Simple example": {
                  "value": {
                    "Data": {
                      "CampaignId": "57934763",
                      "Duplicate": 0,
                      "IncludeContacts": [
                        {
                          "FirstName": "string",
                          "Email": "example1@example.com"
                        }
                      ]
                    }
                  }
                },
                "Advanced example": {
                  "value": "{\r\n\r\n    \"Data\": {\r\n        \"CampaignId\": \"43520719\",\r\n        \"Duplicate\": 0,\r\n        \"IgnoreUnsubscribeCheck\": 0,\r\n        \"ScheduledSending\": \"_DATETIME_\",\r\n        \"StringReplace\": [\r\n            {\r\n                \"Field\": \"CampaignName/Subject/Body\",\r\n                \"Search\": \"_STRING_\",\r\n                \"Replace\": \"_STRING_\"\r\n            }\r\n        ],\r\n        \"AllowDuplicates\": \"_BOOL_\",\r\n        \"UpdateContacts\": \"_BOOL_\",\r\n        \"IncludeGroupNumbers\": [\r\n            \"_INT_\"\r\n        ],\r\n        \"ExcludeGroupNumbers\": [\r\n            \"_INT_\"\r\n        ],\r\n        \"IncludeGroupIds\": [\r\n            \"_INT_\"\r\n        ],\r\n        \"ExcludeGroupIds\": [\r\n            \"_INT_\"\r\n        ],\r\n        \"IncludeContacts\": [\r\n            {\r\n                \r\n               \r\n                \"FirstName\": \"string\",\r\n                \"LastName\": \"string\",\r\n                \"Email\": \"email@adress.com\",\r\n                \"PhoneNumber\": \"string\",\r\n                \"GenderId\": 1/2,\r\n                \"BirthDate\": \"1980-07-23\",\r\n                \"AdditionalDate\": \"2012-05-02\",\r\n                \"Text1\": \"\",\r\n                \"Text2\": \"\",\r\n                \"Number1\": \"\",\r\n                \"Number2\": \"\",\r\n                \"Date1\": \"\",\r\n                \"Date2\": \"\",\r\n                \"Attachment\": \"\"\r\n            },\r\n            {\r\n                \r\n               \r\n                \"FirstName\": \"string\",\r\n                \"LastName\": \"string\",\r\n                \"Email\": \"email@adress.com\",\r\n                \"PhoneNumber\": \"string\",\r\n                \"GenderId\": 1/2,\r\n                \"BirthDate\": \"1980-07-23\",\r\n                \"AdditionalDate\": \"2012-05-02\",\r\n                \"Text1\": \"\",\r\n                \"Text2\": \"\",\r\n                \"Number1\": \"\",\r\n                \"Number2\": \"\",\r\n                \"Date1\": \"\",\r\n                \"Date2\": \"\",\r\n                \"Attachment\": \"\"\r\n            }\r\n\t\t\t\r\n         \r\n        ],\r\n        \"ExcludeContacts\": [\r\n            {\r\n                \r\n                \"ContactRefId\": 100001,\r\n                \"Email\": \"one@mesergo.co.il\",\r\n                \"PhoneNumber\": \"0501234567\"\r\n            }\r\n        ],\r\n        \"IgnorePossibleSendingTime\": \"_BOOL_\"\r\n    }\r\n}"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Umail/Message/Send": {
      "post": {
        "tags": [
          "מיילים (Email)"
        ],
        "summary": "Mail › Send Email › Send New Campaign › Simple example",
        "description": "You need to use this function if you want to control the email structure via API only and set the body and subject of the email without using a predefined template on the user interface.\n\nParameter\n\nRequired\\Optional\n\ntype\n\nValue\n\nCampaignName\n\nRequired\n\nstring\n\nThe campaign name that you want to the newsletter\n\nCampaignRefId\n\nOptional\n\nstring\n\nThe campaign unique ID.\nIf you want to aggregate data in the system reports on the same campaign number, send the same CampaignRefId.\nIf you do not send this parameter, the system will use default value and aggregate all the mails of that month in one campaign. (if it sent from same sender)\n\nFromAddress\n\nRequired\n\nstring\n\nThe mail address that you send from this address have to be in white list in the system\n\nSubject\n\nRequired\n\nstring\n\nThe email subject\n\nBody\n\nRequired\n\nstring\n\nThe email content\n\nIncludeContacts\n\nEmail\n\nRequired\n\nstring\n\nThe email of the contact",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Umail/Message/Send",
                  "RequestId": "sFmbyVGdulmL1J3bm5WauEzMkV3bsNWPl1WYOR3cvhkJ1ETQzUiM1E0MlITMrAjMtYDMtIjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Recipients": 1,
                    "CampaignId": 68111217,
                    "token": "56b2yu67qg5r"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Simple example": {
                  "value": {
                    "Data": {
                      "CampaignName": "My First Email",
                      "CampaignRefId": "123456",
                      "FromAddress": "ariel.l@mesergo.co.il",
                      "ReplyAddress": "ariel@abc.co.il",
                      "FromName": "Abc Company",
                      "Subject": "Summer Sale",
                      "Body": "test...",
                      "IncludeContacts": [
                        {
                          "Email": "ohad@mesergo.co.il"
                        }
                      ]
                    }
                  }
                },
                "Advanced example": {
                  "value": {
                    "Data": {
                      "CampaignName": "_STRING_",
                      "CampaignRefId": "_STRING_",
                      "FromAddress": "_STRING_",
                      "FromName": "_STRING_",
                      "IgnoreUnsubscribeCheck": "_BOOL_",
                      "EmbeddedImages": "_BOOL_",
                      "ScheduledSending": "_DATETIME_",
                      "Subject": "_STRING_",
                      "Body": "_STRING_",
                      "Attachments": [
                        {
                          "Name": "_STRING_",
                          "Url": "_STRING_"
                        }
                      ],
                      "AllowDuplicates": "_BOOL_",
                      "UpdateContacts": "_BOOL_",
                      "IncludeGroupNumbers": [
                        "_INT_"
                      ],
                      "IncludeContacts": [
                        {
                          "ContactId": 100001,
                          "ContactRefId": 100001,
                          "FirstName": "David",
                          "LastName": "Levi",
                          "Email": "one@mesergo.co.il",
                          "PhoneNumber": "0501234567",
                          "GenderId": 1,
                          "BirthDate": "1980-07-23",
                          "AdditionalDate": "2012-05-02",
                          "Text1": "",
                          "Number1": "",
                          "Date1": ""
                        }
                      ],
                      "IgnorePossibleSendingTime": "_BOOL_",
                      "TrackPurchaseTData": "_BOOL_"
                    }
                  }
                },
                "Example Base64 File attached": {
                  "value": {
                    "Data": {
                      "CampaignName": "_STRING_",
                      "FromAddress": "_STRING_",
                      "ReplyAddress": "_STRING_",
                      "FromName": "_STRING_",
                      "Subject": "_STRING_",
                      "Body": "<p>Base64image</p><p><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3/OAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANCSURBVEiJtZZPbBtFFMZ/M7ubXdtdb1xSFyeilBapySVU8h8OoFaooFSqiihIVIpQBKci6KEg9Q6H9kovIHoCIVQJJCKE1ENFjnAgcaSGC6rEnxBwA04Tx43t2FnvDAfjkNibxgHxnWb2e/u992bee7tCa00YFsffekFY+nUzFtjW0LrvjRXrCDIAaPLlW0nHL0SsZtVoaF98mLrx3pdhOqLtYPHChahZcYYO7KvPFxvRl5XPp1sN3adWiD1ZAqD6XYK1b/dvE5IWryTt2udLFedwc1+9kLp+vbbpoDh+6TklxBeAi9TL0taeWpdmZzQDry0AcO+jQ12RyohqqoYoo8RDwJrU+qXkjWtfi8Xxt58BdQuwQs9qC/afLwCw8tnQbqYAPsgxE1S6F3EAIXux2oQFKm0ihMsOF71dHYx+f3NND68ghCu1YIoePPQN1pGRABkJ6Bus96CutRZMydTl+TvuiRW1m3n0eDl0vRPcEysqdXn+jsQPsrHMquGeXEaY4Yk4wxWcY5V/9scqOMOVUFthatyTy8QyqwZ+kDURKoMWxNKr2EeqVKcTNOajqKoBgOE28U4tdQl5p5bwCw7BWquaZSzAPlwjlithJtp3pTImSqQRrb2Z8PHGigD4RZuNX6JYj6wj7O4TFLbCO/Mn/m8R+h6rYSUb3ekokRY6f/YukArN979jcW+V/S8g0eT/N3VN3kTqWbQ428m9/8k0P/1aIhF36PccEl6EhOcAUCrXKZXXWS3XKd2vc/TRBG9O5ELC17MmWubD2nKhUKZa26Ba2+D3P+4/MNCFwg59oWVeYhkzgN/JDR8deKBoD7Y+ljEjGZ0sosXVTvbc6RHirr2reNy1OXd6pJsQ+gqjk8VWFYmHrwBzW/n+uMPFiRwHB2I7ih8ciHFxIkd/3Omk5tCDV1t+2nNu5sxxpDFNx+huNhVT3/zMDz8usXC3ddaHBj1GHj/As08fwTS7Kt1HBTmyN29vdwAw+/wbwLVOJ3uAD1wi/dUH7Qei66PfyuRj4Ik9is+hglfbkbfR3cnZm7chlUWLdwmprtCohX4HUtlOcQjLYCu+fzGJH2QRKvP3UNz8bWk1qMxjGTOMThZ3kvgLI5AzFfo379UAAAAASUVORK5CYII=\"></p><p>Base64image</p>",
                      "Attachments": [
                        {
                          "Name": "file.pdf",
                          "ContentType": "application/pdf",
                          "FileData": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL01lZGlhQm94IFswIDAgNTk1IDg0Ml0KL1Jlc291cmNlcyAyIDAgUgovQ29udGVudHMgNCAwIFIKPj4KZW5kb2JqCjQgMCBvYmoKPDwvTGVuZ3RoIDM1Pj4Kc3RyZWFtCkJUCi9GMSAyNCBUZgoxMDAgNzAwIFRkCihIZWxsbyBQREYpIFRqCkVUCmVuZHN0cmVhbQplbmRvYmoKMSAwIG9iago8PC9UeXBlIC9QYWdlcwovS2lkcyBbMyAwIFJdCi9Db3VudCAxCj4+CmVuZG9iagoyIDAgb2JqCjw8L0ZvbnQgPDwvRjEgPDwvVHlwZSAvRm9udAovU3VidHlwZSAvVHlwZTEKL0Jhc2VGb250IC9IZWx2ZXRpY2EKPj4+Pj4+CmVuZG9iago1IDAgb2JqCjw8L1R5cGUgL0NhdGFsb2cKL1BhZ2VzIDEgMCBSCj4+CmVuZG9iagp4cmVmCjAgNgowMDAwMDAwMDAwIDY1NTM1IGYKMDAwMDAwMDIwMSA2NTUzNSBuCjAwMDAwMDAyNTAgNjU1MzUgbgowMDAwMDAwMDE1IDY1NTM1IG4KMDAwMDAwMDExMCA2NTUzNSBuCjAwMDAwMDAzMjMgNjU1MzUgbgp0cmFpbGVyCjw8L1NpemUgNgovUm9vdCA1IDAgUgo+PgpzdGFydHhyZWYKMzcwCiUlRU9G"
                        }
                      ],
                      "IncludeContacts": [
                        {
                          "Email": "_STRING_"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Umail/Campaign/List/": {
      "post": {
        "tags": [
          "מיילים (Email)"
        ],
        "summary": "Mail › Campaign › Get Campaign List",
        "description": "The function retrieve a list of all the campaigns details under your account.\n\nParameter\nRequired\\Optional\nType\nValue\n\nCampaignIds\nOptional\nint\nFor get details about couple campaigns enter array with the Campaign Ids\n\nStartDate\nOptional\ndate\nFor filter the campaigns by date enter start date\n\nEndDate\nOptional\ndate\nFor filter the campaigns by date enter end date",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Umail/Campaign/List",
                  "RequestId": ",,Abh5mclRnbp5yZul2ZhR3cuEjMkV3bsN2Z0NXPl1WYOR3cvhkJwMTQzUSMzE0MlATMrEjMtYDMtIjMwITPw1WY0NVZtlGVmQzM4QDMwETPklkclNXV",
                  "Data": {
                    "List": [
                      {
                        "id": 30000810,
                        "name": "בדיקה (8)",
                        "created": "2022-05-31 15:33:41",
                        "status": "completed",
                        "sent": 4,
                        "opened": 3,
                        "clicks": 2,
                        "returned": "0",
                        "blocked": "0",
                        "url": "https://uclicks.inforustg.com/?page=webview&show=body&message=%2CUTM4ADMwAzM"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get Campaign List": {
                  "value": {
                    "Data": {
                      "CampaignIds": [
                        "30000810",
                        "43561229"
                      ],
                      "StartDate": "2022-05-31",
                      "EndDate": "2023-05-31"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Umail/Campaign/Get/": {
      "post": {
        "tags": [
          "מיילים (Email)"
        ],
        "summary": "Mail › Campaign › Get Campaign",
        "description": "The function retrieve a specific campaign details under your account.\n\nParameter\nRequired\\Optional\nType\nValue\n\nCampaignId\nRequired\nint\nThe Campaign Id that you want get details about",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Umail/Campaign/Get",
                  "RequestId": ",,Abh5mclRnbp5yZul2ZhR3cuEjMkV3bsN2Z0NXPl1WYOR3cvhkJyATQzUyNzE0MlATMrEjMtYDMtIjMwITPw1WY0NVZtlGVmQzM4QDMwETPklkclNXV",
                  "Data": {
                    "id": 30000809,
                    "name": "בדיקה (7)",
                    "created": "2022-05-31 15:23:31",
                    "status": "completed",
                    "sent": 4,
                    "opened": 3,
                    "clicks": 2,
                    "returned": "0",
                    "blocked": "0",
                    "url": "https://uclicks.inforustg.com/?page=webview&show=body&message=%2CQTM4ADMwAzM"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get Campaign": {
                  "value": {
                    "Data": {
                      "CampaignId": "30000809"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Umail/Campaign/Update": {
      "post": {
        "tags": [
          "מיילים (Email)"
        ],
        "summary": "Mail › Campaign › Update Campaign",
        "description": "The function use for duplicate and update an existing Campaign\n\nParameterRequired\\OptionaltypeValue\nDuplicateFromCampaignIdRequiredintcampaignId that will serve as a template for creating a new campaign in draft mode\nCampaignNameRequiredstringThe name of the new campaign\nFromAddressRequiredboolThe mail address that you send from this address have to be in white list in the system\nSubjectRequiredstringThe email subject\nBodyRequiredstringThe email content\nStringReplace-FieldsOptionalstringThe object where you want to make the replacement -\nSubject/Body\nStringReplace-SearchOptionalstringThe current value you want to replace\nStringReplace-ReplaceOptionalstringThe new value",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Umail/Campaign/Update",
                  "RequestId": ",,Abh5mclRnbp5yZul2ZhR3cuEjMkV3bsN2Z0NXPl1WYOR3cvhkJwITQzUCOwE0MlETMrEjMtYDMtIjMwITPw1WY0NVZtlGVmQzM4QDMwETPklkclNXV",
                  "Data": {
                    "StatusId": 1,
                    "StatusDescription": "Success",
                    "CampaignId": 30000824
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Update Campaign": {
                  "value": {
                    "Data": {
                      "DuplicateFromCampaignId": "30000810",
                      "StringReplace": [
                        {
                          "Field": "Subject",
                          "Search": "param1",
                          "Replace": "param2"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Umail/Campaign/Job": {
      "post": {
        "tags": [
          "מיילים (Email)"
        ],
        "summary": "Mail › Utilities › Get job status",
        "description": "The function return the campaign status after sending a campaign\nThe optional statuses are: New, Pending, Ready , Progress, Success, Failed.\n\nParameter\nRequired\\Optional\ntype\nValue\n\nJobToken\nRequired\nstring\nThe token from the campaign sending response\n\nResponse Parameter\n\nAction:\nDsn\nOpen\nClick\nReturn\nUnsubscribe\n\nValues\n2.0.0/4.0.0/ 5.0.0\ndesktop / mobile\nhttp://www.example.com/\nCustomer Request \n24/06/2015 14:54\nrequest\n\nMoreInfo\nMoreInfo Sent/ deferred",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Umail/Campaign/Job",
                  "RequestId": ",,Abh5mclRnbp5yZul2ZhR3cuEjMkV3bsN2Z0NXPl1WYOR3cvhkJ5QTQzUyMxE0MlETMrEjMtYDMtIjMwITPw1WY0NVZtlGVmQzM4QDMwETPklkclNXV",
                  "Data": {
                    "status": "pending",
                    "description": ""
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get job status": {
                  "value": {
                    "Data": {
                      "JobToken": "715fzq90yzsi"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Umail/GetMailNotification": {
      "post": {
        "tags": [
          "מיילים (Email)"
        ],
        "summary": "Mail › Utilities › Get Mail Notification",
        "description": "This function is used to receive information about recipients that received/not recived the email (DSN) and the recipients that opened / clicked on the email.\nrequired to pre-set the settings in the system to store the data.\nAfter pulling the data they are deleted from the queue.\n\nParameter\nRequired\\Optional\nType\nValue\n\nBatchSize\nRequired\nstring\nThe number of Messages transferred\n\nResponse Parameter\n\nAction\nDsn\nOpen\nClick\nReturn\nUnsubscribe\nCustomerMessageId\n\nValues\n2.0.0/4.0.0/5.0.0\ndesktop \\mobile\nhttp://www.example.com\nCustomer Request 24/06/2015 14:54\nrequest\nCan be displayd if the parmeter sent in the sent email reques and the mail bodu conatin this parameter \n[#CustomerMessageId#]\n\nMoreInfo\nSent/ deferred",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Umail/GetMailNotification",
                  "RequestId": ",wWYuJXZ05WauUncvZmbp5CMxkGchNWPl1WYOR3cvhkJxUTQzUSOwE0MlUTMrYDMtcDMtIjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "List": [
                      {
                        "Datetime": "2022-07-04 09:35:47",
                        "CampaignId": 69042121,
                        "Email": "ariel.l@mesergo.co.il",
                        "Action": "open",
                        "Value": "desktop",
                        "CustomerMessageId": 1234
                      },
                      {
                        "Datetime": "2022-07-03 22:14:05",
                        "CampaignId": 69042121,
                        "Email": "ariel.l@mesergo.co.il",
                        "Action": "dsn",
                        "Value": "2.0.0",
                        "MoreInfo": "sent",
                        "AdditionalInformation": "250 2.0.0 OK  1656875494 ",
                        "CustomerMessageId": 12345
                      },
                      {
                        "Datetime": "2022-07-03 22:11:39",
                        "CampaignId": 69042121,
                        "Email": "ariel.l@mesergo.co.il",
                        "Action": "open",
                        "Value": "desktop",
                        "CustomerMessageId": 12346
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get Mail Notification": {
                  "value": {
                    "Data": {
                      "BatchSize": "200"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/demo.aspx": {
      "post": {
        "tags": [
          "מיילים (Email)"
        ],
        "summary": "Mail › Utilities › Notification On Unsubscribe",
        "description": "If you are interested to receiving an update at the time of Unsubscribe of the recipient, please contact our customer\nservice and provide us the URL It sends an update.",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "servers": [
          {
            "url": "http://www.clienturl.co.il"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Notification On Unsubscribe": {
                  "value": "<InfoMailClient>\r\n<ContactsRemoved>\r\n    <contact email=\"email@mesergo.co.il\" UserId=\"1\" Username=\"test\" CustomerId=\"1\" ProjectId=\"1\"/>\r\n</ContactsRemoved>\r\n</InfoMailClient>"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Umail/Campaign/Stop": {
      "post": {
        "tags": [
          "מיילים (Email)"
        ],
        "summary": "Mail › Utilities › Stop Future Campaign",
        "description": "The function stop future Campaign by Campaign ID\n\nParameter\nRequired\\Optional\ntype\nValue\n\nCampaignId\nRequired\nstring\nThe Campaign ID to stop. \nThe Campaign to stop should be future Campaign",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Umail/Campaign/Stop",
                  "RequestId": ",wWYuJXZ05WauUncvZmbp5CMykGchNWPl1WYOR3cvhkJ4ITQzUyM0E0MlATMrEjMtMDMtQjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": null
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Stop Future Campaign": {
                  "value": {
                    "Data": {
                      "CampaignId": "91619263"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/CreateOrUpdateContacts": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Create or Update Contact",
        "description": "This function creates or updates contacts.\nYou can send up to 5000 items per request. (If you send up to 10 items, the response is final,\nif you send more, for final response use \"Check Status Token\" function).\nThe key for update is Email address, or Phone number, or both.\nEmail or Phone is mandatory all other fields are optional.\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nFirstName\n\nOptional\n\nstring\n\nThe first name of the contact\n\nLastName\n\nOptional\n\nstring\n\nThe last name of the contact\n\nPhoneNumber\n\nRequired\n\nstring\n\nThe phone number of the contact\n\nEmail\n\nRequired\n\nstring\n\nThe email of the contact\n\nContactRefId\n\nOptional\n\nstring\n\nThe Contact's unique ID in the calling system.\n\nFirebaseToken\n\nOptional\n\nstring\n\nUse for sending notifications to Google devices and apple.\nIf you send only FirebaseToken without Email or Phone, you should also send ContactRefId.\n\nPlatform\n\nOptional\n\nstring\n\n\"ANDROID\" / \"IOS\", If you use FirebaseToken you should also send Platform\"ANDROID\" / \"IOS\", If you use FirebaseToken you should also send Platform\n\nDevice1StatusId\n\nOptional\n\nint\n\nUse for sending notifications to Google devices and apple.\nThe parameter can set with an active or inactive contact token\n1 = active\n-3 = inactive\n\nGenderId\n\nOptional\n\nint\n\n1=Male , 2 = Female\n\nAddToGroupName\n\nOptional\n\nstring\n\nAdd to group by name, if the group does not exist it will be created automatically\n\nRemoveFromGroupName\n\nOptional\n\nstring\n\nRemove from group by name\n\nRegistrationCampaign\n\nOptional\n\nstr",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/CreateOrUpdateContacts",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJzETQzUyN1E0MlITMrETMtUDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "UploadToken": "BodyPart_a66bcef1-8b5a-4578-84ed-43bdb0a3402e",
                    "Rows": 1,
                    "ContactsUpdates": 0,
                    "ContactsNew": 0,
                    "ContactsExisting": 1,
                    "RowsFailed": 0,
                    "CountErrors": 0,
                    "Errors": []
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Create or Update Contact": {
                  "value": {
                    "Data": {
                      "List": [
                        {
                          "FirstName": "string",
                          "LastName": "string",
                          "PhoneNumber": "string",
                          "Email": "string",
                          "AddToGroupName": "string"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/CheckJobStatusByToken": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Check Status Token",
        "description": "This function checks the final result received in answer to your request (in the case you have created more than 10 contacts).\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nRequestToken\n\nRequired\n\nstring\n\nupload token from the response of the create contact request",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/CheckJobStatusByToken",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJyUTQzUyNxE0MlETMrEzMtUDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "UploadToken": "BodyPart_a90e0d80-5653-4c33-ba1a-41ca86bae650",
                    "Rows": 1,
                    "ContactsUpdates": 0,
                    "ContactsNew": 0,
                    "ContactsExisting": 1,
                    "RowsFailed": 0,
                    "CountErrors": 1,
                    "Errors": [
                      {
                        "RowNumber": 1,
                        "ErrorCode": -92,
                        "FieldName": "Email",
                        "ActualFieldName": "Email",
                        "ErrorValue": "Cohen@test ",
                        "ErrorMessage": "UploadError.InvalidValueForFieldEmail"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Check Status Token": {
                  "value": {
                    "Data": {
                      "RequestToken": "BodyPart_a90e0d80-5653-4c33-ba1a-41ca86bae650"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/DeleteContacts": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Delete Contact",
        "description": "This function deletes contacts by Phone/Email/ContactRefId/ContactId.\nThe contacts that t you delete removed from all groups.\nYou can send up to 100 items per request.\nThe request should be POST\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nType\n\nRequired\n\nstring\n\nPhone/ Email/ ContactRefId/ ContactId\n\nValue\n\nRequired\n\nstring\n\nThe value of the type\n\nAdvanced options\n\nhttps://capi.mesergo.co.il/api/v2/Contact/DeleteContacts?view=json",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/DeleteContacts",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJ0UTQzUCNzE0MlATMrEzMtUDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "DeletedCount": 1
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Delete Contact": {
                  "value": {
                    "Data": {
                      "List": [
                        {
                          "Type": "Phone",
                          "Value": "0541234567"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/GetContact": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › GetContact",
        "description": "This function finds contacts by Phone/Email/ContactRefId/ContactId.\nYou can find more than one contact at a time if there is more than one contact based on your search.\nThe request should be POST\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nType\n\nRequired\n\nstring\n\nPhone/Email/ContactRefId/ContactId\n\nValue\n\nRequired\n\nstring\n\nValue of the type\n\nConfiguration\n\nRequired\n\nstring\n\nWithGroups/WithoutGroups\n\nResponse fieldes:\nContactId - (int) The system contact number.\nContactRefId - (string) The ID you provided for the contact (could be null).\nEmailStatusId / PhoneStatusId - (int) The Phone / Email status.\n• 1 - Active\n• -2 - Unsubscribe\n• 0 - WithOutStatus (if Email or Phone is empty)",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/GetContact",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJzATQzUCN1E0MlETMrEzMtUDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Contacts": {
                      "Count": 1,
                      "List": [
                        {
                          "ContactId": 585578002,
                          "ContactRefId": "",
                          "Email": "cohen@test.com",
                          "EmailStatusId": 1,
                          "PhoneNumber": "0541234567",
                          "PhoneStatusId": 1,
                          "DateCreated": "2021-05-31 11:08:31",
                          "UpdateDate": "2021-05-31 11:08:31",
                          "FirstName": "David",
                          "LastName": "Cohen",
                          "GenderId": null,
                          "BirthDate": "",
                          "AdditionalDate": "",
                          "Text1": "",
                          "Text2": "",
                          "Text3": "",
                          "Text4": "",
                          "Text5": "",
                          "Text6": "",
                          "Text7": "",
                          "Text8": "",
                          "Text9": "",
                          "Text10": "",
                          "Text11": "",
                          "Text12": "",
                          "Text13": "",
                          "Text14": "",
                          "Text15": "",
                          "Text16": "",
                          "Text17": "",
                          "Text18": "",
                          "Text19": "",
                          "Text20": "",
                          "Number1": null,
                          "Number2": null,
                          "Number3": null,
                          "Number4": null,
                          "Date1": null,
                          "Date2": null,
                          "Date3": null,
                          "Date4": null,
                          "Date5": null,
                          "Date6": null,
                          "Date7": null,
                          "Date8": null
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "GetContact": {
                  "value": {
                    "Data": {
                      "Type": "Phone",
                      "Value": "string",
                      "Configuration": "WithoutGroups"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/GetContactList": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Get contact list",
        "description": "This function Gets the list of contacts.\nThe request is to be by POST.\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nFilterBy\n\nRequired\n\nstring\n\nCreatedDate/UpdatedDate\n\nFromDate\n\nRequired\n\nDate\n\nFrom Date includes this date\n\nToDate\n\nRequired\n\nDate\n\nTo Date include this date\n\nOnlyForGroupId\n\nOptional\n\nint\n\nIf you want to get contacts on specific group\n\nLastFetchedId\n\nOptional\n\nint\n\nGet batch starting with ID larger than xxx(if a first request is made use 0 or null)",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/GetContactList",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJ1QTQzUCO0E0MlMTMrEzMtUDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "LastFetchedId": 578674342,
                    "Count": 1,
                    "List": [
                      {
                        "ContactId": 578674342,
                        "ContactRefId": null,
                        "Email": null,
                        "EmailStatusId": 0,
                        "PhoneNumber": "0732224536",
                        "PhoneStatusId": 1,
                        "DateCreated": "2021-05-18 09:25:55",
                        "UpdateDate": "2021-05-24 09:48:03",
                        "FirstName": "אריאל",
                        "LastName": "Levi",
                        "GenderId": null,
                        "BirthDate": "",
                        "AdditionalDate": "",
                        "Text1": "",
                        "Text2": null,
                        "Text3": null,
                        "Text4": null,
                        "Text5": null,
                        "Text6": null,
                        "Text7": null,
                        "Text8": null,
                        "Text9": null,
                        "Text10": null,
                        "Text11": null,
                        "Text12": null,
                        "Text13": null,
                        "Text14": null,
                        "Text15": null,
                        "Text16": null,
                        "Text17": null,
                        "Text18": null,
                        "Text19": null,
                        "Text20": null,
                        "Number1": null,
                        "Number2": null,
                        "Number3": null,
                        "Number4": null,
                        "Date1": null,
                        "Date2": null,
                        "Date3": null,
                        "Date4": null,
                        "Date5": null,
                        "Date6": null,
                        "Date7": null,
                        "Date8": null
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get contact list": {
                  "value": {
                    "Data": {
                      "FilterBy": "CreatedDate",
                      "FromDate": "2021/05/15",
                      "ToDate": "2021/05/30",
                      "OnlyForGroupId": "300226604",
                      "LastFetchedId": 0
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/CreateOrUpdateGroup": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Create or Update Group",
        "description": "This function creates or update group.\nThe request should be POST\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nGroupName\n\nRequired\n\nstring\n\nThe name of new/existing group\n\nGroupId\n\nRequired\n\nint\n\nuse 0 or null for new group,\nnumber for update exist group.\n\nAdvanced Options\n\nhttps://capi.mesergo.co.il/api/v2/Contact/CreateOrUpdateGroup?view=json",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/CreateOrUpdateGroup",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJwITQzUyN1E0MlQTMrEzMtUDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "GroupId": 300230515,
                    "GroupTypeId": 1,
                    "GroupNumber": 15,
                    "GroupName": "New Groupe",
                    "Description": "",
                    "CountActiveContacts": null,
                    "CountActiveContactsMail": null,
                    "CountActiveContactsSms": null,
                    "CountActiveContactsDevice1": null,
                    "CountActiveContactsDevice2": null,
                    "DateCreated": "2021-05-31 14:57:21",
                    "UpdateDate": "2021-05-31 14:57:21"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Create or Update Group": {
                  "value": {
                    "Data": {
                      "GroupName": "New Groupe",
                      "GroupId": 300230515
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/DeleteGroup": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Delete Group",
        "description": "This function delete group by name or id.\nIf you delete by name, multiple groups may be deleted\nThe request should be POST\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nDeleteGroupBy\n\nRequired\n\nstring\n\nGroupId /GroupNumber /GroupName\n\nValue\n\nRequired\n\nint\n\nThe value of the delete group by\n\nConfiguration\n\nOptional\n\nstring\n\nWithoutDeleteContacts/ WithDeleteContacts/ EmptyGroupOnly\n\nDeleteBy – key for delete group. (if you choose by GroupName, can delete Capel groups) .\n\nAdvanced Options\n\nhttps://capi.mesergo.co.il/api/v2/Contact/DeleteGroup?view=json",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/DeleteGroup",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJwMTQzUSOwE0MlATMrEDMtYDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Count": 1,
                    "Configuration": "WithoutDeleteContacts",
                    "List": [
                      {
                        "GroupId": 300230716,
                        "GroupNumber": 16,
                        "GroupName": "group"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Delete Group": {
                  "value": {
                    "Data": {
                      "DeleteGroupBy": "GroupName",
                      "Value": "group",
                      "Configuration": "WithoutDeleteContacts"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/GetGroup": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Get Group",
        "description": "This function finds group by GroupId/GroupNumber/GroupName.\nYou can find more than one Group at a time if you use by GroupName.\nThe request should be POST\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nGetGroupBy\n\nRequired\n\nstring\n\nGroupId/GroupNumber/GroupName\n\nValue\n\nRequired\n\nint\n\nThe value of the get group by",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/GetGroup",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJ2UTQzUSNxE0MlATMrEDMtYDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Count": 1,
                    "List": [
                      {
                        "GroupId": 300226604,
                        "GroupTypeId": 1,
                        "GroupNumber": 7,
                        "GroupName": 1805,
                        "Description": "",
                        "CountActiveContacts": 1,
                        "CountActiveContactsMail": 0,
                        "CountActiveContactsSms": 1,
                        "CountActiveContactsDevice1": 0,
                        "CountActiveContactsDevice2": 0,
                        "DateCreated": "2021-05-18 09:25:37",
                        "UpdateDate": "2021-05-18 09:29:48"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get Group": {
                  "value": {
                    "Data": {
                      "GetGroupBy": "GroupNumber",
                      "Value": "7"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/GetGroupList": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Get group list",
        "description": "This function Gets the list of Groups.\nThe request is to be by POST.\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nFromDate\n\nOptional\n\ndate\n\nFrom Date includes this date\n\nToDate\n\nOptional\n\ndate\n\nTo Date include this date\n\nType\n\nOptional\n\nstring\n\nCan be Regular/Dynamic/All\n\nLastFetchedId\n\nOptional\n\nint\n\nGet batch starting with ID larger than X (if a first request is made use 0 or null).\n\nAdvanced Options\n\nhttps://capi.mesergo.co.il/api/v2/Contact/GetGroupList?view=json",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/GetGroupList",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJwITQzUiNyE0MlATMrEDMtYDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "LastFetchedId": 300230515,
                    "Count": 7,
                    "List": [
                      {
                        "GroupId": 300222716,
                        "GroupNumber": 1,
                        "GroupName": "בדיקה",
                        "GroupTypeId": 1,
                        "Description": "",
                        "CountActiveContactsMail": 7,
                        "CountActiveContactsSms": 7,
                        "CountActiveContactsDevice1": 0,
                        "CountActiveContactsDevice2": 0,
                        "DateCreated": "2021-05-03 10:40:03",
                        "UpdateDate": "2021-05-10 10:33:24"
                      },
                      {
                        "GroupId": 300224145,
                        "GroupNumber": 3,
                        "GroupName": "תמיכה",
                        "GroupTypeId": 1,
                        "Description": null,
                        "CountActiveContactsMail": 3,
                        "CountActiveContactsSms": 3,
                        "CountActiveContactsDevice1": 0,
                        "CountActiveContactsDevice2": 0,
                        "DateCreated": "2021-05-09 10:09:19",
                        "UpdateDate": "2021-05-09 10:09:19"
                      },
                      {
                        "GroupId": 300226604,
                        "GroupNumber": 7,
                        "GroupName": 1805,
                        "GroupTypeId": 1,
                        "Description": "",
                        "CountActiveContactsMail": 0,
                        "CountActiveContactsSms": 1,
                        "CountActiveContactsDevice1": 0,
                        "CountActiveContactsDevice2": 0,
                        "DateCreated": "2021-05-18 09:25:37",
                        "UpdateDate": "2021-05-18 09:29:48"
                      },
                      {
                        "GroupId": 300228339,
                        "GroupNumber": 11,
                        "GroupName": "TEST123456",
                        "GroupTypeId": 1,
                        "Description": "",
                        "CountActiveContactsMail": 29143,
                        "CountActiveContactsSms": 0,
                        "CountActiveContactsDevice1": 0,
                        "CountActiveContactsDevice2": 0,
                        "DateCreated": "2021-05-24 10:37:09",
                        "UpdateDate": "2021-05-24 10:37:09"
                      },
                      {
                        "GroupId": 300228432,
                        "GroupNumber": 12,
                        "GroupName": "cxz",
                        "GroupTypeId": 1,
                        "Description": "",
                        "CountActiveContactsMail": 0,
                        "CountActiveContactsSms": 0,
                        "CountActiveContactsDevice1": 0,
                        "CountActiveContactsDevice2": 0,
                        "DateCreated": "2021-05-24 12:03:20",
                        "UpdateDate": "2021-05-24 12:03:20"
                      },
                      {
                        "GroupId": 300230511,
                        "GroupNumber": 14,
                        "GroupName": "test",
                        "GroupTypeId": 1,
                        "Description": null,
                        "CountActiveContactsMail": 0,
                        "CountActiveContactsSms": 0,
                        "CountActiveContactsDevice1": 0,
                        "CountActiveContactsDevice2": 0,
                        "DateCreated": "2021-05-31 14:42:02",
                        "UpdateDate": "2021-05-31 14:42:02"
                      },
                      {
                        "GroupId": 300230515,
                        "GroupNumber": 15,
                        "GroupName": "New Groupe",
                        "GroupTypeId": 1,
                        "Description": null,
                        "CountActiveContactsMail": 0,
                        "CountActiveContactsSms": 0,
                        "CountActiveContactsDevice1": 0,
                        "CountActiveContactsDevice2": 0,
                        "DateCreated": "2021-05-31 14:57:21",
                        "UpdateDate": "2021-05-31 14:57:21"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get group list": {
                  "value": {
                    "Data": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/V2/Contact/Unsubscribe": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Unsubscribe",
        "description": "This function unsubscribes Phones and Emails.\nYou may send up to 100 communication items per request.\nThe request is to be by POST.\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nUnsubscribeReason\n\nRequired\n\nstring\n\nThe reason for which you request the communication items to be unsubscribed\n\nUnsubscribeName\n\nOptional\n\nstring\n\nThe system name which executes the request (optional - default API).\n\nType\n\nRequired\n\nstring\n\nCan be Email / Phone.\n\nValue\n\nRequired\n\nstring\n\nThe Email / Phone.\n\nAdvanced Options\n\nhttps://capi.mesergo.co.il/api/v2/Contact/Unsubscribe?view=json",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/V2/Contact/Unsubscribe",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJzATQzUyM0E0MlATMrEDMtYDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Success": {
                      "Count": 1
                    },
                    "Failed": {
                      "Count": 0,
                      "List": []
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Unsubscribe": {
                  "value": {
                    "Data": {
                      "UnsubscribeReason": "Customer request",
                      "List": [
                        {
                          "Type": "Phone",
                          "Value": "0541234567"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/ReactivateUnsubscribe": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Reactivate Unsubscribe",
        "description": "This function reactivates unsubscribed items.\nYou may send up to 100 items (Phones or Emails) per request.\nThe request is to by POST.\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nReactivationReason\n\nRequired\n\nstring\n\n– The reason for which you wish to reactivate the unsubscribed\n\nUnsubscribeName\n\nOptional\n\nstring\n\nThe system name which executes the request (optional - default API).\n\nType\n\nRequired\n\nstring\n\nCan be Email / Phone.\n\nValue\n\nRequired\n\nstring\n\nThe Email / Phone.\n\nAdvanced Options\n\nhttps://capi.mesergo.co.il/api/v2/Contact/ReactivateUnsubscribe?view=json",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/ReactivateUnsubscribe",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJ3ITQzUSOyE0MlQTMrEDMtYDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Success": {
                      "Count": 1
                    },
                    "Failed": {
                      "Count": 0,
                      "List": []
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Reactivate Unsubscribe": {
                  "value": {
                    "Data": {
                      "ReactivationReason": "Customer request",
                      "List": [
                        {
                          "Type": "Phone",
                          "Value": "0541234567"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/GetUnsubscribeList": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Get Unsubscribe List",
        "description": "This function Gets the list of Unsubscribed.\nThe request is to be by POST.\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nFromDate\n\nRequired\n\ndate\n\nFrom Date includes this date\n\nToDate\n\nRequired\n\ndate\n\nTo Date include this date\n\nType\n\nRequired\n\nstring\n\nCan be Email / Phone.\n\nLastFetchedId\n\nOptional\n\nint\n\nGet batch starting with ID larger than X (if a first request is made use 0 or null).\n\nAdvanced Options\n\nhttps://capi.mesergo.co.il/api/v2/Contact/GetUnsubscribeList?view=json",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/GetUnsubscribeList",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJ5UTQzUCNzE0MlcTMrEDMtYDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "LastFetchedId": 35709398,
                    "Count": 1,
                    "List": [
                      {
                        "Type": "Phone",
                        "Value": "0541234567",
                        "UnsubscribeDatetime": "2021-06-01 17:34:38"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get Unsubscribe List": {
                  "value": {
                    "Data": {
                      "FromDate": "2021/06/01",
                      "ToDate": "2021/06/01",
                      "Type": "Phone",
                      "LastFetchedId": 0
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/GetUnsubscribeHistory": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › GetUnsubscribeHistory",
        "description": "This function get unsubscribed or Reactivated history for Phone/Emails.\nThe request is to by POST.\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nType\n\nRequired\n\nstring\n\nPhone /Email /ContactRefId /ContactId\n\nValue\n\nRequired\n\nstring\n\nValue of the type",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/GetUnsubscribeHistory",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJwETQzUSNyE0MlETMrMDMtYDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Count": 10,
                    "List": [
                      {
                        "Type": "Phone",
                        "Value": "0541234567",
                        "Action": "Reactivate",
                        "ActionDatetime": "2021-06-01 17:31:55",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0541234567",
                        "Action": "Optout",
                        "ActionDatetime": "2021-06-01 17:31:12",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Reactivate",
                        "ActionDatetime": "2021-06-01 14:29:27",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Optout",
                        "ActionDatetime": "2021-06-01 10:43:03",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0541234567",
                        "Action": "Reactivate",
                        "ActionDatetime": "2021-05-18 14:41:23",
                        "ActionSource": "manual",
                        "ActionReason": "test",
                        "DoActionName": "ariel"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Optout",
                        "ActionDatetime": "2021-05-09 14:27:37",
                        "ActionSource": "InforuContacts",
                        "ActionReason": "test -",
                        "DoActionName": "ariel"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Reactivate",
                        "ActionDatetime": "2021-05-09 14:23:03",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Optout",
                        "ActionDatetime": "2021-05-09 14:22:07",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Reactivate",
                        "ActionDatetime": "2021-05-09 14:21:01",
                        "ActionSource": "manual",
                        "ActionReason": "tesy",
                        "DoActionName": "ariel"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Optout",
                        "ActionDatetime": "2021-05-09 14:20:36",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "GetUnsubscribeHistory": {
                  "value": {
                    "Data": {
                      "Type": "Phone",
                      "Value": "0541234567"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/GetUnsubscribeHistoryList": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Get Unsubscribe History List",
        "description": "This function get unsubscribed history List for all Phones / Emails.\nThe request is to by POST.\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nType\n\nRequired\n\nstring\n\nPhone/Email\n\nFromDate\n\nRequired\n\nDate\n\nFrom Date includes this date\n\nToDate\n\nRequired\n\nDate\n\nTo Date include this date\n\nAction\n\nRequired\n\nstring\n\nUnsubscribe/Reactivate/All\n\nLastFetchedId\n\nOptional\n\nint\n\nGet batch starting with ID larger than X",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/GetUnsubscribeHistoryList",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJ5MTQzUyMzE0MlkDMrIDMtYDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "LastFetchedId": 94121250,
                    "Count": 11,
                    "List": [
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Unsubscribe",
                        "ActionDateTime": "2021-05-09 14:20:36",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Reactivate",
                        "ActionDateTime": "2021-05-09 14:21:01",
                        "ActionSource": "manual",
                        "ActionReason": "tesy",
                        "DoActionName": "ariel"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Unsubscribe",
                        "ActionDateTime": "2021-05-09 14:22:07",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Reactivate",
                        "ActionDateTime": "2021-05-09 14:23:03",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Unsubscribe",
                        "ActionDateTime": "2021-05-09 14:27:37",
                        "ActionSource": "InforuContacts",
                        "ActionReason": "test -",
                        "DoActionName": "ariel"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Reactivate",
                        "ActionDateTime": "2021-05-18 14:41:23",
                        "ActionSource": "manual",
                        "ActionReason": "test",
                        "DoActionName": "ariel"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Unsubscribe",
                        "ActionDateTime": "2021-06-01 10:43:03",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Reactivate",
                        "ActionDateTime": "2021-06-01 14:29:27",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Unsubscribe",
                        "ActionDateTime": "2021-06-01 17:31:12",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0543266290",
                        "Action": "Reactivate",
                        "ActionDateTime": "2021-06-01 17:31:55",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      },
                      {
                        "Type": "Phone",
                        "Value": "0541234567",
                        "Action": "Unsubscribe",
                        "ActionDateTime": "2021-06-01 17:34:38",
                        "ActionSource": "api",
                        "ActionReason": "Customer request",
                        "DoActionName": "API"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get Unsubscribe History List": {
                  "value": {
                    "Data": {
                      "Type": "Phone",
                      "FromDate": "2021/05/08",
                      "ToDate": "2021/06/10",
                      "Action": "All",
                      "LastFetchedId": 0
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/CheckIfUnsubscribe": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Check if Unsubscribed",
        "description": "This function checks if list is Unsubscribe.\nYou can send up to 100 items per request.\nThe request is to be by POST.\n\nParameters\n\nKey\n\nRequired\\Optional\n\ntype\n\nValue\n\nType\n\nRequired\n\nstring\n\nPhone /Email/ ContactRefId/ ContactId\n\nValue\n\nRequired\n\nstring\n\nthe value of the type",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/CheckIfUnsubscribe",
                  "RequestId": ",,Abh5mclRnbp5Sdy9mZulmLkV3bsNWPl1WYOR3cvhkJ1QTQzUiM1E0MlITMrcDMtYDMtEjMwITPw1WY0NVZtlGVmQDNyQDNwETPklkclNXV",
                  "Data": {
                    "Unsubscribe": {
                      "Count": 0,
                      "List": []
                    },
                    "NotUnsubscribe": {
                      "Count": 1,
                      "List": [
                        {
                          "Type": "Phone",
                          "Value": "0541234567"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Check if Unsubscribed": {
                  "value": {
                    "Data": {
                      "List": [
                        {
                          "Type": "Phone",
                          "Value": "0541234567"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/Contact/GetFields/": {
      "post": {
        "tags": [
          "אנשי קשר (Contacts)"
        ],
        "summary": "Contacts Interface › Get Fields",
        "description": "This function Gets the list of contact fields\nThe request is to be by POST\n\nResponse Parameters\n\nParameter\n\ntype\n\nDescription\n\nFieldId\n\nint\n\nThe filed ID in MesserGo system\n\nActualFieldName\n\nstring\n\nThe API Filed Name\n\nCaption\n\nstring\n\nThe filed name in MesserGo system\n\nFieldType\n\nstring\n\nThe filed type",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "StatusId": 1,
                  "StatusDescription": "Success",
                  "DetailedDescription": "",
                  "FunctionName": "api/v2/Contact/GetFields",
                  "RequestId": ",wWYuJXZ05WauUncvZmbp5CMykGchNWPl1WYOR3cvhkJwATQzUyNzE0MlkDMrAzMtcDMtQjMwITPw1WY0NVZtlGVmcjNzQjNwETPklkclNXV",
                  "Data": {
                    "Count": 21,
                    "List": [
                      {
                        "FieldId": 1,
                        "ActualFieldName": "FirstName",
                        "Caption": "שם פרטי",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 2,
                        "ActualFieldName": "LastName",
                        "Caption": "שם משפחה",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 3,
                        "ActualFieldName": "PhoneNumber",
                        "Caption": "טלפון",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 5,
                        "ActualFieldName": "Email",
                        "Caption": "אימייל",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 42,
                        "ActualFieldName": "BirthDate",
                        "Caption": "תאריך לידה",
                        "FieldType": "date"
                      },
                      {
                        "FieldId": 46,
                        "ActualFieldName": "GenderId",
                        "Caption": "מגדר",
                        "FieldType": "gender"
                      },
                      {
                        "FieldId": 48,
                        "ActualFieldName": "AdditionalDate",
                        "Caption": "תאריך נוסף",
                        "FieldType": "date"
                      },
                      {
                        "FieldId": 153,
                        "ActualFieldName": "ContactRefId",
                        "Caption": "מספר אסמכתא",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 162,
                        "ActualFieldName": "Device1Id",
                        "Caption": "מזהה מכשיר 1",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 164,
                        "ActualFieldName": "Device2Id",
                        "Caption": "מזהה מכשיר 2",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 166,
                        "ActualFieldName": "Device1Type",
                        "Caption": "סוג מכשיר 1",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 168,
                        "ActualFieldName": "Device2Type",
                        "Caption": "סוג מכשיר 2",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 170,
                        "ActualFieldName": "Device1StatusId",
                        "Caption": "סטטוס מכשיר 1",
                        "FieldType": "int"
                      },
                      {
                        "FieldId": 172,
                        "ActualFieldName": "Device2StatusId",
                        "Caption": "סטטוס מכשיר 2",
                        "FieldType": "int"
                      },
                      {
                        "FieldId": 183,
                        "ActualFieldName": "ContactScoring",
                        "Caption": "דירוג",
                        "FieldType": "int"
                      },
                      {
                        "FieldId": 16522,
                        "ActualFieldName": "Text1",
                        "Caption": "קישור",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 16907,
                        "ActualFieldName": "Text25",
                        "Caption": "טקסט חדש",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 16908,
                        "ActualFieldName": "Text26",
                        "Caption": "מספר חדש",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 16909,
                        "ActualFieldName": "Text27",
                        "Caption": "תאריך חדש",
                        "FieldType": "string"
                      },
                      {
                        "FieldId": 16910,
                        "ActualFieldName": "Date25",
                        "Caption": "תאריך",
                        "FieldType": "date"
                      },
                      {
                        "FieldId": 17765,
                        "ActualFieldName": "Number25",
                        "Caption": "מספרי",
                        "FieldType": "int"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "examples": {
                "Get Fields": {
                  "value": {}
                }
              }
            }
          }
        }
      }
    },
    "/api/360/{endpoint}/send": {
      "get": {
        "tags": [
          "WhatsApp"
        ],
        "summary": "שליחת הודעת תבנית (WhatsApp Template)",
        "description": "שליחת הודעה מבוססת תבנית מאושרת דרך מערכת הווטסאפ של מסר גו. כל הפרמטרים (כולל הטוקן) עוברים ב-query string. מזהה ה-endpoint והטוקן מתקבלים מהתמיכה.",
        "servers": [
          {
            "url": "https://wa.message.co.il"
          }
        ],
        "security": [
          {
            "waToken": []
          }
        ],
        "parameters": [
          {
            "name": "endpoint",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "מזהה ה-Endpoint שלכם (ייחודי ללקוח, מהתמיכה)."
          },
          {
            "name": "phone",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "972585050000",
            "description": "מספר הנמען בפורמט בינלאומי ללא +."
          },
          {
            "name": "template",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "שם התבנית כפי שאושרה."
          },
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "טוקן האימות (מהתמיכה)."
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "he",
            "description": "קוד שפת התבנית. ברירת מחדל: עברית (he) אם לא נשלח."
          },
          {
            "name": "params[0]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ערך למשתנה {{1}} בגוף התבנית (וכן params[1], params[2]...)."
          },
          {
            "name": "header[0][0][link]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "קישור למדיה בכותרת (תמונה/וידאו/מסמך)."
          },
          {
            "name": "header[0][1]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "image",
            "description": "סוג המדיה בכותרת: image / video / document."
          },
          {
            "name": "ns",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "טוקן 360 פנימי — רק לחבילת 360."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "messaging_product": "whatsapp",
                  "contacts": [
                    {
                      "input": "972585050000",
                      "wa_id": "972585050000"
                    }
                  ],
                  "messages": [
                    {
                      "id": "wamid.XXXX==",
                      "message_status": "accepted"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — טוקן חסר או שגוי (מוחזר כטקסט, לא JSON)."
          }
        }
      }
    }
  }
}