Microsoft Azure SIM Swap API

The SIM Swap API from Microsoft Azure, for sim swap.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /sim-swap/sim-swap:retrieve Get the latest SIM swap date for a phone number · Microsoft Azure Post Sim Swap Sim Swap:retrieve #
Ask an LLM
“When was the SIM last swapped for a given phone number?”
“Can I get the timestamp of the most recent SIM swap from the network operator?”
Tell an agent
Get the latest SIM swap time for {phone} on network {network} via gateway {gateway}.
Retrieve when the SIM for {phone} was last changed.
POST /sim-swap/sim-swap:verify Verify whether a SIM swap happened recently · Microsoft Azure Post Sim Swap Sim Swap:verify #
Ask an LLM
“Has the SIM for this phone number been swapped in the last few hours?”
“Can I check for a SIM swap within a specific number of hours before approving a transaction?”
Tell an agent
Verify whether {phone} on network {network} had a SIM swap in the last {hours} hours via gateway {gateway}.
Check if the SIM for {phone} was swapped within {hours} hours.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-sim-swap-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-sim-swap-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Programmable Connectivity Sim Swap API
  version: 2024-02-09-preview
  description: Azure Programmable Connectivity (APC) provides a unified interface to the Network APIs of multiple Telecom Operators. Note that Operators may deprecate a Network API with less advance notice than the Azure standard, in which case APC will also deprecate that Network API.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- OAuth2Auth:
  - https://management.azure.com//.default
tags:
- name: SIM Swap
paths:
  /sim-swap/sim-swap:retrieve:
    post:
      operationId: microsoftAzureSimswapRetrieve
      description: Provides timestamp of latest SIM swap
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - $ref: '#/components/parameters/ApcGatewayIdHeader'
      responses:
        '200':
          description: The request has succeeded.
          headers:
            x-ms-client-request-id:
              description: An opaque, globally-unique, client-generated string identifier for the request.
              schema:
                type: string
                format: uuid
            x-ms-request-id:
              description: An opaque, globally-unique, server-generated string identifier for the request.
              schema:
                type: string
                format: uuid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimSwapRetrievalResult'
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        SimSwap_Retrieve:
          $ref: ./examples/SimSwap_Retrieve_MaximumSet_Gen.json
      summary: Microsoft Azure Post Sim Swap Sim Swap:retrieve
      tags:
      - SIM Swap
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimSwapRetrievalContent'
        required: true
  /sim-swap/sim-swap:verify:
    post:
      operationId: microsoftAzureSimswapVerify
      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.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - $ref: '#/components/parameters/ApcGatewayIdHeader'
      responses:
        '200':
          description: The request has succeeded.
          headers:
            x-ms-client-request-id:
              description: An opaque, globally-unique, client-generated string identifier for the request.
              schema:
                type: string
                format: uuid
            x-ms-request-id:
              description: An opaque, globally-unique, server-generated string identifier for the request.
              schema:
                type: string
                format: uuid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimSwapVerificationResult'
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        SimSwap_Verify:
          $ref: ./examples/SimSwap_Verify_MaximumSet_Gen.json
      summary: Microsoft Azure Post Sim Swap Sim Swap:verify
      tags:
      - SIM Swap
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimSwapVerificationContent'
        required: true
components:
  schemas:
    SimSwapVerificationContent:
      type: object
      description: Request to verify SimSwap in period
      properties:
        phoneNumber:
          type: string
          description: Phone number in E.164 format (starting with country code), and optionally prefixed with '+'
          pattern: ^\+?[0-9]{5,15}$
        maxAgeHours:
          type: integer
          format: int32
          description: Maximum lookback for SimSwap verification
          default: 240
          minimum: 1
          maximum: 2400
        networkIdentifier:
          $ref: '#/components/schemas/NetworkIdentifier'
          description: Identifier for the network to query for this device.
      required:
      - networkIdentifier
    SimSwapVerificationResult:
      type: object
      description: Response verifying SimSwap in period
      properties:
        verificationResult:
          type: boolean
          description: True if the SIM has swapped in the specified period, False otherwise
      required:
      - verificationResult
    Azure.Core.Foundations.Error:
      type: object
      description: The error object.
      properties:
        code:
          type: string
          description: One of a server-defined set of error codes.
        message:
          type: string
          description: A human-readable representation of the error.
        target:
          type: string
          description: The target of the error.
        details:
          type: array
          description: An array of details about specific errors that led to this reported error.
          items:
            $ref: '#/components/schemas/Azure.Core.Foundations.Error'
          x-ms-identifiers: []
        innererror:
          $ref: '#/components/schemas/Azure.Core.Foundations.InnerError'
          description: An object containing more specific information than the current object about the error.
      required:
      - code
      - message
    Azure.Core.Foundations.InnerError:
      type: object
      description: An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
      properties:
        code:
          type: string
          description: One of a server-defined set of error codes.
        innererror:
          $ref: '#/components/schemas/Azure.Core.Foundations.InnerError'
          description: Inner error.
    SimSwapRetrievalContent:
      type: object
      description: Request to retrieve SimSwap date
      properties:
        phoneNumber:
          type: string
          description: Phone number in E.164 format (starting with country code), and optionally prefixed with '+'
          pattern: ^\+?[0-9]{5,15}$
        networkIdentifier:
          $ref: '#/components/schemas/NetworkIdentifier'
          description: Network to query for this device
      required:
      - networkIdentifier
    SimSwapRetrievalResult:
      type: object
      description: Response with SimSwap date
      properties:
        date:
          type: string
          format: date-time
          description: Datetime of most recent swap for SIM
    NetworkIdentifier:
      type: object
      description: Identifier for the network to be queried
      properties:
        identifierType:
          type: string
          description: 'The type of identifier for the network. one of: ''IPv4'', ''IPv6'', ''NetworkCode'''
        identifier:
          type: string
          description: 'The network identifier, based on the identifierType: an IPv4 address, and IPv6 address, or a Network Code.

            A Network Code may be obtained from APC documentation or from the APC /Network:retrieve endpoint.'
      required:
      - identifierType
      - identifier
    Azure.Core.Foundations.ErrorResponse:
      type: object
      description: A response containing error details.
      properties:
        error:
          $ref: '#/components/schemas/Azure.Core.Foundations.Error'
          description: The error object.
      required:
      - error
  parameters:
    Azure.Core.Foundations.ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apiVersion
      schema:
        type: string
        minLength: 1
    ApcGatewayIdHeader:
      name: apc-gateway-id
      in: header
      description: The identifier of the APC Gateway resource which should handle this request.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apcGatewayId
      schema:
        type: string
    Azure.Core.ClientRequestIdHeader:
      name: x-ms-client-request-id
      in: header
      description: An opaque, globally-unique, client-generated string identifier for the request.
      required: false
      x-ms-parameter-location: method
      x-ms-client-name: clientRequestId
      schema:
        type: string
        format: uuid
  securitySchemes:
    OAuth2Auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://management.azure.com//.default: ''
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
x-ms-parameterized-host:
  hostTemplate: '{endpoint}'
  useSchemePrefix: false
  parameters:
  - name: endpoint
    in: path
    description: An Azure Programmable Connectivity Endpoint providing access to Network APIs, for example https://{region}.apcgatewayapi.azure.com
    required: true
    type: string
x-ms-paths:
  /number-verification/number:verify?_overload=verifyWithCode:
    post:
      operationId: NumberVerification_VerifyWithCode
      description: Verifies the phone number (MSISDN) associated with a device.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - $ref: '#/components/parameters/ApcGatewayIdHeader'
      - name: body
        in: body
        required: true
        schema:
          $ref: '#/components/schemas/NumberVerificationWithCodeContent'
      responses:
        '200':
          description: The request has succeeded.
          schema:
            $ref: '#/components/schemas/NumberVerificationResult'
          headers:
            x-ms-client-request-id:
              type: string
              format: uuid
              description: An opaque, globally-unique, client-generated string identifier for the request.
            x-ms-request-id:
              type: string
              format: uuid
              description: An opaque, globally-unique, server-generated string identifier for the request.
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
          headers:
            x-ms-error-code:
              type: string
              description: String error code indicating what went wrong.
      x-ms-examples:
        NumberVerification_VerifyWithCode:
          $ref: ./examples/NumberVerification_VerifyWithCode_MaximumSet_Gen.json