Number Verification

API operation of Number Verification API.


Parameters

Name In Type Required Description
org_id path string true ‘none’
body body NumberVerificationVerifyRequest true ‘none’

Request body - instance of NumberVerificationVerifyRequest

1
2
3
4
5
6
7
{
  "referenceMsisdn": "+123456789",
  "evidence": {
    "type": "PLAIN",
    "value": "string"
  }
}
Name Type Required Description
referenceMsisdn string true The MSISDN assigned by the network and extracted from the authentication token. A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number). In order to be globally unique it has to be formatted in international format, according to E.164 standard, prefixed with ‘+’.
evidence object true none
» type string true Type of evidence provided:
- PLAIN: The MSISDN is provided in plain text.
- HASHED_SHA256: The MSISDN is provided as a hashed value. SHA-256 (in hexadecimal representation) of the mobile phone number in E.164 format (starting with country code). Prefixed with ‘+’.
» value string true A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number).
In order to be globally unique, it has to be formatted in international format, according to the E.164 standard, prefixed with ‘+’.
Property Values
type one of [PLAIN, HASHED_SHA256]

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

curl -X POST https://opengateway.masstack.com/v1/orgs/{org_id}/number-verification/verify \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'referenceMsisdn': '+123456789',
  'evidence': {
    'type': 'PLAIN',
    'value': 'string'
  }
}" 

Responses

Code Meaning Description Schema
200 OK OK NumberVerificationMatchResponse
400 Bad Request Problem with the client request NumberVerificationApiError
401 Unauthorized Unauthorized NumberVerificationApiError
403 Forbidden Client does not have sufficient permission. NumberVerificationApiError
500 Internal Server Error Server error NumberVerificationApiError
503 Service Unavailable Service unavailable. Typically the server is down. NumberVerificationApiError
504 Gateway Time-out Request time exceeded. If it happens repeatedly, consider reducing the request complexity NumberVerificationApiError

Endpoints

Consents

    Number Verification

      Sim Swap

        Applications