# Validate Portability

## GET or POST Request <a href="#get-or-post-request" id="get-or-post-request"></a>

{% hint style="info" %}
<https://v1.api19.com/lnp/portability/check>
{% endhint %}

Send us a GET or POST request with your key and the numbers to validate.

We will validate the portability of numbers and reply with all numbers are valid or errors.

<table data-header-hidden><thead><tr><th width="152.09088134765625"></th><th width="136.72723388671875"></th><th></th></tr></thead><tbody><tr><td>Argument</td><td>Required</td><td>Type</td></tr><tr><td>numbers</td><td>yes</td><td>comma list of numbers</td></tr><tr><td>key</td><td>yes</td><td>api key</td></tr></tbody></table>

{% tabs %}
{% tab title="Curl Post" %}

```php
curl -X POST https://v1.api19.com/lnp/portability/check \
 -d "numbers=3038821111,3035551212,3332221111" \
 -d 'key=your-key'
```

{% endtab %}

{% tab title="JSON Response" %}

```php
{
  "status": "ok",
  "data": {
    "message": "3035551111 is unsupported",
    "errors": {
      "3035551111": "3035551111 is unsupported"
    }
  }
}

OR

{
  "status": "ok",
  "data": {
    "message": "All numbers are valid",
    "errors": []
  }
}
```

{% endtab %}
{% endtabs %}
