---
title: Sim Swap Detection
slug: api/sim-swap-detection
icon: {"faIcon":"fa-solid fa-mobile-retro"}
createdAt: 2024-02-24T07:38:03.174Z
---

# SIM Swap Detection API

The **SIM Swap API** detects whether a SIM swap has occurred on a mobile number, helping identify potential account takeover attempts. It returns real-time information, including the timestamp of the most recent SIM swap event, as reported by the Mobile Network Operator (MNO).

This API can be integrated directly into fraud detection and customer verification workflows, enabling businesses to assess SIM swap risk during authentication or onboarding. A SIM swap status check is performed with each request, allowing for immediate risk evaluation and response.

### Country Coverage for SIM Swap Detection

The SIM Swap Detection service is currently available in the following countries:

- **United States**
- **United Kingdom**
- **Germany**
- **France**
- **Canada**

***



:::ApiMethodV2
```json
{
  "name": "Sim Swap Detection",
  "method": "POST",
  "url": "https://idu-test.datazoo.com/api/v2/verify",
  "description": "* Verification Outcome – Risk signals\n* Consumer Consent – N/A\n* Mandatory Input – Phone number\n* Verifies – Phone number\n* Returned Data - Sim swap date and Risk indicator",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "f2jMy98sIuBrop0Bgc788",
        "language": "curl",
        "code": "curl --location 'https://idu-test.datazoo.com/api/v2/verify' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImMtbVZlMl9KRFhMcnkzaEhQWEN4TyJ9.eyJ1aWQiOiIzMDMiLCJvaWQiOiI2MiIsImlzcyI6Imh0dHBzOi8vZGF0YXpvby10ZXN0LnVzLmF1dGgwLmNvbS8iLCJzdWIiOiJhdXRoMHwzMDMiLCJhdWQiOiJodHRwczovL2t5Yy10ZXN0LmRhdGF6b28uY29tIiwiaWF0IjoxNzQ5MTY2OTgyLCJleHAiOjE3NDkyMDI5ODIsImd0eSI6InBhc3N3b3JkIiwiYXpwIjoiSWxVdURJNTF1QXpuVnE2VGVoRXAyOXBrbEhBSjFtYnkifQ.LbyT0pbe6IKlonH9PRm0sV-hxofZfoFgG57r2urDTN_joZvMGWquJntnpZ6DMj2DSgg9op5A8IH0K-tRBTey87dub_-95GvIRvdEE8FhnyfCKVPvOEtK3MPLmgXpC5o5ivv9ORWrum9TnII8CEQ97RlqZPdLGMDjgOhJbQrSx6x1CTWsBK8BnfBH0kcCBu5awhwUlGh_b8sw6gqSmztrZWt326iGymqQwu59Te4UKCMBqdIqm8mFRmpH9kkRodPh81teYDg-3GA5jVk8fWMay8tTkDAZQwtgBrhJkFEiFhIsbpX50XCC--mjFTfT-zZElraIXnIZkqi5SEjecwPBWQ' \\\n--data '{\n    \"countryCode\": \"Global\",\n    \"service\": [\n        \"Sim Swap Detection\"\n    ],\n    \"clientReference\": \"Test_0001\",\n    \"identityVariables\": {\n        \"phoneNo\": \"12042028575\"\n    }\n}'",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "f2jMy98sIuBrop0Bgc788"
  },
  "results": {
    "languages": [
      {
        "id": "-KLLvb-_jXQIuU-WuWQAF",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"countryCode\": \"Global\",\n    \"clientReference\": \"Test_0001\",\n    \"reportingReference\": \"DZ-e07d35f2-13b0-4e49-a380-c614d305de7c\",\n    \"matchStatus\": \"No Match\",\n    \"searchErrorMessage\": \"\",\n    \"safeHarbour\": false,\n    \"searchStatus\": \"Successful\",\n    \"serviceResponses\": {\n        \"Sim Swap Detection\": {\n            \"status\": 0,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"N/A\",\n            \"addressMatchScore\": \"N/A\",\n            \"verifications\": {\n                \"phoneNo\": true\n            },\n            \"returnedData\": {\n                \"Sim Swap Detection\": {\n                    \"SimSwapDate\": \"2024-12-14 23:12:59 UTC\",\n                    \"SimSwapRisk\": \"Medium Risk\"\n                }\n            }\n        }\n    },\n    \"remarks\": []\n}"
      },
      {
        "id": "AS5tJ4glQVhlG7b69Q21J",
        "language": "404",
        "customLabel": "",
        "code": "{\n  \"message\": \"Ain't no cake like that.\"\n}"
      }
    ],
    "selectedLanguageId": "-KLLvb-_jXQIuU-WuWQAF"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "Authorization",
        "kind": "required",
        "type": "string",
        "description": "sessionToken obtained via the Authentication call",
        "": "sessionToken obtained via the Authentication call"
      }
    ],
    "bodyDataParameters": [
      {
        "name": "data",
        "kind": "required",
        "type": "object",
        "description": "request body sent to the API",
        "": "object",
        "children": [
          {
            "name": "countryCode",
            "kind": "required",
            "type": "string",
            "description": "Global"
          },
          {
            "name": "service",
            "kind": "required",
            "type": "array",
            "description": "Sim Swap Detection"
          },
          {
            "name": "clientReference",
            "kind": "optional",
            "type": "string",
            "description": "a client reference field"
          },
          {
            "name": "identityVariables",
            "kind": "required",
            "type": "object",
            "description": "element to be verified",
            "children": [
              {
                "name": "phoneNo",
                "kind": "required",
                "type": "string",
                "description": "country code followed by the phone number"
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "countryCode",
            "kind": "required",
            "type": "string",
            "description": "Global"
          },
          {
            "name": "service",
            "kind": "required",
            "type": "array",
            "description": "Sim Swap Detection"
          },
          {
            "name": "clientReference",
            "kind": "optional",
            "type": "string",
            "description": "a client reference field"
          },
          {
            "name": "identityVariables",
            "kind": "required",
            "type": "object",
            "description": "element to be verified",
            "children": [
              {
                "name": "phoneNo",
                "kind": "required",
                "type": "string",
                "description": "country code followed by the phone number"
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "response": [
    {
      "name": "countryCode",
      "kind": "optional",
      "type": "string",
      "description": "Global",
      "children": []
    },
    {
      "name": "clientReference",
      "kind": "optional",
      "type": "string",
      "description": "the client reference (if given as input) ",
      "children": []
    },
    {
      "name": "reportingReference",
      "kind": "optional",
      "type": "string",
      "description": "a reference number generated which is unique to each transaction. ",
      "children": []
    },
    {
      "name": "validationErrors",
      "kind": "optional",
      "type": "string",
      "description": "Returned with HTTP status code 400 when the request contains invalid or improperly formatted input data.",
      "children": []
    },
    {
      "name": "matchStatus",
      "kind": "optional",
      "type": "string",
      "description": "\"No Match\"\n* ignore this field for Watchlist as it is used for KYC verification"
    },
    {
      "name": "searchErrorMessage",
      "kind": "optional",
      "type": "string",
      "description": "error message returned querying the data source",
      "children": []
    },
    {
      "name": "safeHarbour",
      "kind": "optional",
      "type": "boolean",
      "description": "false",
      "children": []
    },
    {
      "name": "searchStatus",
      "kind": "optional",
      "type": "string",
      "description": "\"Successful\" \n\"Not Successful\"",
      "children": []
    },
    {
      "name": "serviceResponses",
      "kind": "optional",
      "type": "object",
      "description": "Verification Details with \"Sim Swap Detection\" returned as the Service Identifier. ",
      "children": [
        {
          "name": "status",
          "kind": "optional",
          "type": "integer",
          "description": "0 - identityVerified TRUE - element verifications all TRUE\n2 - identityVerified FALSE - sourceStatus SUCCESSFUL\n3 - identityVerified FALSE - sourceStatus NOT SUCCESSFUL"
        },
        {
          "name": "sourceStatus",
          "kind": "optional",
          "type": "string",
          "description": "\"Successful\"\n\"Not Successful\""
        },
        {
          "name": "errorMessage",
          "kind": "optional",
          "type": "string",
          "description": "error message(s) from the data source.  Example, \"Not allowed destination\"."
        },
        {
          "name": "identityVerified",
          "kind": "optional",
          "type": "boolean",
          "description": "true or false"
        },
        {
          "name": "safeHarbourScore",
          "kind": "optional",
          "type": "string",
          "description": "\"none\""
        },
        {
          "name": "nameMatchScore",
          "kind": "optional",
          "type": "string",
          "description": "\"N/A\""
        },
        {
          "name": "addressMatchScore",
          "kind": "optional",
          "type": "string",
          "description": "\"N/A\""
        },
        {
          "name": "verifications",
          "kind": "optional",
          "type": "object",
          "description": "element level verification returned as true",
          "children": [
            {
              "name": "phoneNo",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            }
          ]
        },
        {
          "name": "returnedData",
          "kind": "optional",
          "type": "object",
          "description": "returns additional data from the data source.",
          "children": [
            {
              "name": "Sim Swap Detection",
              "kind": "optional",
              "type": "object",
              "description": "",
              "children": [
                {
                  "name": "SimSwapDate",
                  "kind": "optional",
                  "type": "string",
                  "description": ""
                },
                {
                  "name": "SimSwapRisk",
                  "kind": "optional",
                  "type": "string",
                  "description": ""
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "remarks",
      "kind": "optional",
      "type": "array",
      "description": "Null",
      "children": []
    }
  ],
  "autoGeneratedAnchorSlug": "sim-swap-detection",
  "legacyHash": "1GyOZgr-zqPE_yqQfVtUw"
}
```
:::

***

:::Changelog{title="Change History"}
::ChangelogItem{type="added" description="Last updated - 6 June, 2025"}
:::

