## URL de l'API
URL utilisée pour envoyer les requêtes HTTP :
```url
https://portal.bulkgate.com/api/1.0/integration/check-phone-numbers
```

> [!NOTE]
> Si la requête n'atteint pas sa destination, renvoyez-la sur le [serveur de secours](https://www.bulkgate.com/fr/documentation/administration-api-et-tokens/serveur-de-secours/) `backup1.bulkgate.com`.

```http
POST /api/1.0/integration/check-phone-numbers HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
```

### Tableau des paramètres

| NOM DU PARAMÈTRE    | VALEUR                                                                  | OBLIGATOIRE | VALEUR PAR DÉFAUT |
|:------------------|:-----------------------------------------------------------------------|:---------:|:-------------:|
| application_id    | [ID de l'application](https://www.bulkgate.com/fr/documentation/administration-api-et-tokens/administration-api/)                          |  **Oui**  |       -       | 
| application_token | [Token d'authentification de l'application](https://www.bulkgate.com/fr/documentation/administration-api-et-tokens/tokens-d-api/)                |  **Oui**  |       -       |
| numbers           | Liste des structures de numéros de téléphone à vérifier, voir [Numéros](#numeros) |    Non     |       -       |

#### Numéros

| NOM DU PARAMÈTRE | VALEUR                                                                                                                | OBLIGATOIRE |           VALEUR PAR DÉFAUT           |
|:---------------|:---------------------------------------------------------------------------------------------------------------------|:---------:|:---------------------------------:|
| phone_number   | Numéro de téléphone                                                                                                  | **Oui**   |                 -                 |
| country        | [Code pays](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) du numéro de téléphone |   Non      |                 -                 |



**Exemple de requête complète :**
```http-json
POST /api/1.0/integration/check-phone-numbers HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json

{
  "application_id": 451,
  "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj",
  "numbers": [
        {
            "phone_number": "420777777777",
            "country": "cz"
        },
        {
            "phone_number": "7777",
            "country": "cz"
        }
    ]
}
```


## La réponse à cette commande peut être :

**En cas de succès**
```json
{
    "data": {
        "420777777777": {
            "phone_number": "420777777777",
            "valid": true,
            "country": "cz",
            "call_prefix": 420,
            "network_code": "23003",
            "network_name": "Vodafone"
        },
        "7777": {
            "phone_number": "7777",
            "valid": false,
            "country": null,
            "call_prefix": null,
            "network_code": null,
            "network_name": "unknown"
        }
    }
}
```
