# Sandbox

We also offer a sandbox environment where you can test our endpoints with some example responses that may occur while using the Number Validation API.

The URL for the sandbox environment is `https://api.cm.com/number-validation-sandbox/v1` followed by the endpoint. The authentication is the same as the regular service, for more information see [Authentication](https://developers.cm.com/verification/docs/number-validation#authentication).

To get started using the sandbox environment, [contact us](https://www.cm.com/contact/) requesting sandbox credentials.

## Number Check

Depending on the phone number you use from the options in the table below, you can get one of the responses described. For more information regarding the number check endpoint, see [Number Check](https://developers.cm.com/verification/docs/number-check).

`connectionType` needs to be set to `hlr` in the request, regardless of the response's `source`.

[block:parameters]
{
  "data": {
    "h-0": "phoneNumber",
    "h-1": "operator",
    "h-2": "mcc",
    "h-3": "mnc",
    "h-4": "source",
    "h-5": "roaming",
    "h-6": "isActive",
    "h-7": "isPorted",
    "0-0": "`+31610000001`",
    "0-1": "KPN",
    "0-2": "204",
    "0-3": "08",
    "0-4": "hlr",
    "0-5": "null",
    "0-6": "false",
    "0-7": "null",
    "1-0": "`+31610000002`",
    "1-1": "KPN",
    "1-2": "204",
    "1-3": "08",
    "1-4": "hlr",
    "1-5": "null",
    "1-6": "true",
    "1-7": "null",
    "2-0": "`+31610000003`",
    "2-1": "Odido",
    "2-2": "204",
    "2-3": "16",
    "2-4": "mnp",
    "2-5": "null",
    "2-6": "false",
    "2-7": "true",
    "3-0": "`+31610000004`",
    "3-1": "KPN",
    "3-2": "204",
    "3-3": "08",
    "3-4": "hlr",
    "3-5": "{  \n    \"country\": \"Germany\",  \n    \"callingCode\": 49,  \n    \"regionCode\": \"de\",  \n    \"operator\": \"T-Mobile DE\",  \n    \"mcc\": \"262\",  \n    \"mnc\": \"01\"  \n}",
    "3-6": "true",
    "3-7": "null",
    "4-0": "`+31610000005`",
    "4-1": "KPN",
    "4-2": "204",
    "4-3": "08",
    "4-4": "prefix",
    "4-5": "null",
    "4-6": "false",
    "4-7": "false",
    "5-0": "`+31610000006`",
    "5-1": "KPN",
    "5-2": "null",
    "5-3": "null",
    "5-4": "static",
    "5-5": "null",
    "5-6": "null",
    "5-7": "null"
  },
  "cols": 8,
  "rows": 6,
  "align": [
    "left",
    "left",
    "left",
    "left",
    "left",
    "left",
    "left",
    "left"
  ]
}
[/block]

`+31610000006` is an example response for when there is an issue with our supplier.

### Example

**Request URL**

```
POST https://api.cm.com/number-validation-sandbox/v1/number/check
```

**Request headers**

```
Content-Type: application/json
Authorization: Bearer GENERATED_TOKEN_HERE
```

**Request body**

```json
{
  "phoneNumber": "+31610000002",
  "connectionType": "hlr"
}
```

**Response**

```json
{
  "format": {
    "e164": "+31610000002",
    "international": "+31 6 10000002",
    "national": "06 10000002",
    "rfc3966": "tel:+31-6-10000002"
  },
  "type": "mobile",
  "country": "Netherlands",
  "callingCode": 31,
  "regionCode": "nl",
  "operator": "KPN",
  "mcc": "204",
  "mnc": "08",
  "source": "hlr",
  "roaming": null,
  "isValid": true,
  "isActive": true,
  "isPorted": null
}
```