Azure.ProgrammableConnectivity (preview:2024-02-09)

2025/03/04 • 5 updated methods

DeviceLocation_Verify (updated)
Description Verifies whether a device is within a specified location area, defined as an accuracy (radius) around a point, specified by longitude and latitude.
Reference Link ¶

⚶ Changes

{
  "#id": "DeviceLocation_Verify",
  "$parameters": {
    "body": {
      "$properties": {
        "networkIdentifier": [
          {
            "#name": "identifierType",
            "Description": {
              "new": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'MSISDN', 'NetworkCode'",
              "old": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'NetworkCode'"
            }
          },
          {
            "#name": "identifier",
            "Description": {
              "new": "The network identifier, based on the identifierType: an IPv4 address, an IPv6 address, an MSISDN, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint.",
              "old": "The network identifier, based on the identifierType: an IPv4 address, and IPv6 address, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint."
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /device-location/location:verify
{
api-version: string ,
x-ms-client-request-id: string ,
apc-gateway-id: string ,
body:
{
networkIdentifier:
{
identifierType: string ,
identifier: string ,
}
,
latitude: number ,
longitude: number ,
accuracy: integer ,
device:
{
networkAccessIdentifier: string ,
phoneNumber: string ,
ipv4Address:
{
ipv4: string ,
port: integer ,
}
,
ipv6Address:
{
ipv6: string ,
port: integer ,
}
,
}
,
}
,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
x-ms-request-id: string ,
}
,
$schema:
{
verificationResult: boolean ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DeviceNetwork_Retrieve (updated)
Description Retrieves the network a given device is on. Returns network in a networkCode format that can be used for other APIs.
Reference Link ¶

⚶ Changes

{
  "#id": "DeviceNetwork_Retrieve",
  "$parameters": {
    "body": {
      "$properties": [
        {
          "#name": "identifierType",
          "Description": {
            "new": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'MSISDN', 'NetworkCode'",
            "old": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'NetworkCode'"
          }
        },
        {
          "#name": "identifier",
          "Description": {
            "new": "The network identifier, based on the identifierType: an IPv4 address, an IPv6 address, an MSISDN, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint.",
            "old": "The network identifier, based on the identifierType: an IPv4 address, and IPv6 address, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint."
          }
        }
      ]
    }
  }
}

⚼ Request

POST:  /device-network/network:retrieve
{
api-version: string ,
x-ms-client-request-id: string ,
apc-gateway-id: string ,
body:
{
identifierType: string ,
identifier: string ,
}
,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
x-ms-request-id: string ,
}
,
$schema:
{
networkCode: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
NumberVerification_VerifyWithoutCode (updated)
Description Verifies the phone number (MSISDN) associated with a device. As part of the frontend authorization flow, the device is redirected to the operator network to authenticate directly.
Reference Link ¶

⚶ Changes

{
  "#id": "NumberVerification_VerifyWithoutCode",
  "$parameters": {
    "body": {
      "$properties": {
        "networkIdentifier": [
          {
            "#name": "identifierType",
            "Description": {
              "new": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'MSISDN', 'NetworkCode'",
              "old": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'NetworkCode'"
            }
          },
          {
            "#name": "identifier",
            "Description": {
              "new": "The network identifier, based on the identifierType: an IPv4 address, an IPv6 address, an MSISDN, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint.",
              "old": "The network identifier, based on the identifierType: an IPv4 address, and IPv6 address, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint."
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /number-verification/number:verify
{
api-version: string ,
x-ms-client-request-id: string ,
apc-gateway-id: string ,
body:
{
networkIdentifier:
{
identifierType: string ,
identifier: string ,
}
,
phoneNumber: string ,
hashedPhoneNumber: string ,
redirectUri: string ,
}
,
}

⚐ Response (302)

{
location: string ,
x-ms-client-request-id: string ,
x-ms-request-id: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SimSwap_Retrieve (updated)
Description Provides timestamp of latest SIM swap
Reference Link ¶

⚶ Changes

{
  "#id": "SimSwap_Retrieve",
  "$parameters": {
    "body": {
      "$properties": {
        "networkIdentifier": [
          {
            "#name": "identifierType",
            "Description": {
              "new": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'MSISDN', 'NetworkCode'",
              "old": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'NetworkCode'"
            }
          },
          {
            "#name": "identifier",
            "Description": {
              "new": "The network identifier, based on the identifierType: an IPv4 address, an IPv6 address, an MSISDN, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint.",
              "old": "The network identifier, based on the identifierType: an IPv4 address, and IPv6 address, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint."
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /sim-swap/sim-swap:retrieve
{
api-version: string ,
x-ms-client-request-id: string ,
apc-gateway-id: string ,
body:
{
phoneNumber: string ,
networkIdentifier:
{
identifierType: string ,
identifier: string ,
}
,
}
,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
x-ms-request-id: string ,
}
,
$schema:
{
date: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SimSwap_Verify (updated)
Description Verifies if a SIM swap has been performed during a past period (defined in the request with 'maxAgeHours' attribute). Returns 'True' if a SIM swap has occured.
Reference Link ¶

⚶ Changes

{
  "#id": "SimSwap_Verify",
  "$parameters": {
    "body": {
      "$properties": {
        "networkIdentifier": [
          {
            "#name": "identifierType",
            "Description": {
              "new": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'MSISDN', 'NetworkCode'",
              "old": "The type of identifier for the network. one of: 'IPv4', 'IPv6', 'NetworkCode'"
            }
          },
          {
            "#name": "identifier",
            "Description": {
              "new": "The network identifier, based on the identifierType: an IPv4 address, an IPv6 address, an MSISDN, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint.",
              "old": "The network identifier, based on the identifierType: an IPv4 address, and IPv6 address, or a Network Code.\nA Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint."
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /sim-swap/sim-swap:verify
{
api-version: string ,
x-ms-client-request-id: string ,
apc-gateway-id: string ,
body:
{
phoneNumber: string ,
maxAgeHours: integer ,
networkIdentifier:
{
identifierType: string ,
identifier: string ,
}
,
}
,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
x-ms-request-id: string ,
}
,
$schema:
{
verificationResult: boolean ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}