## API-URL
URL zum Senden von HTTP-Anfragen:
```url
https://portal.bulkgate.com/api/1.0/integration/check-phone-numbers
```

> [!NOTE]
> Erreicht die Anfrage ihr Ziel nicht, wiederholen Sie sie auf dem [Backup-Server](https://www.bulkgate.com/de/dokumentation/api-verwaltung-und-tokens/backup-server/) `backup1.bulkgate.com`.

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

### Parametertabelle

| PARAMETERNAME     | WERT                                                                   |  PFLICHT  | STANDARDWERT  |
|:------------------|:-----------------------------------------------------------------------|:---------:|:-------------:|
| application_id    | [Anwendungs-ID](https://www.bulkgate.com/de/dokumentation/api-verwaltung-und-tokens/api-verwaltung/)                           |  **Ja**   |       -       | 
| application_token | [Authentifizierungstoken der Anwendung](https://www.bulkgate.com/de/dokumentation/api-verwaltung-und-tokens/api-tokens/)           |  **Ja**   |       -       |
| numbers           | Liste der zu prüfenden Telefonnummernstrukturen, siehe [Nummern](#nummern) |   Nein    |       -       |

#### Nummern

| PARAMETERNAME  | WERT                                                                                                                 |  PFLICHT  |           STANDARDWERT            |
|:---------------|:---------------------------------------------------------------------------------------------------------------------|:---------:|:---------------------------------:|
| phone_number   | Telefonnummer                                                                                                        | **Ja**    |                 -                 |
| country        | [Ländercode](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) der Telefonnummer    |   Nein    |                 -                 |



**Beispiel einer vollständigen Anfrage:**
```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"
        }
    ]
}
```


## Mögliche Antworten auf diesen Befehl:

**Bei Erfolg**
```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"
        }
    }
}
```
