GET
/
apps
/
{appId}
/
extensions
/
data-masking
/
v1
/
settings
Data masking Get Settings
curl --request GET \
  --url https://apimgmt.cometchat.io/apps/{appId}/extensions/data-masking/v1/settings \
  --header 'key: <key>' \
  --header 'secret: <secret>'
{
  "data": {
    "statusCode": 200,
    "success": true,
    "responseTime": 3.061743974685669,
    "body": {
      "data": {
        "settings": {
          "appId": "10419c7658224",
          "dropMessage": false,
          "customregexData": [],
          "defaultRegexData": [
            {
              "enableFlag": false,
              "id": "2",
              "name": "Emails",
              "regex": "\\\\w+([.-]?\\\\w+)*@\\\\w+([.-]?\\\\w+)*(\\\\.\\\\w{2,10})+"
            },
            {
              "enableFlag": false,
              "id": "1",
              "name": "US Phone numbers",
              "regex": "[2-9]\\\\d{2}-\\\\d{3}-\\\\d{4}"
            },
            {
              "enableFlag": false,
              "id": "3",
              "name": "SSN",
              "regex": "\\\\d{3}-\\\\d{2}-\\\\d{4}"
            }
          ]
        }
      }
    }
  }
}

Headers

key
string
required

Authorization Key

secret
string
required

Authorization Secret

Path Parameters

appId
string
required

AppID in which the extension has to be enabled/disabled

Response

200 - application/json

Get Data-Maksing Settings

The response is of type object.