## API-URL
URL for sending av HTTP-forespørsler:
```url
https://portal.bulkgate.com/api/1.0/integration/check-phone-numbers
```

> [!NOTE]
> Hvis forespørselen ikke kommer frem, kan du gjenta den på [reserveserveren](https://www.bulkgate.com/no/dokumentasjon/api-administrasjon/api-reserveserver/) `backup1.bulkgate.com`.

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

### Parametertabell

| PARAMETERNAVN     | VERDI                                                                  | OBLIGATORISK | STANDARDVERDI |
|:------------------|:-----------------------------------------------------------------------|:---------:|:-------------:|
| application_id    | [Applikasjons-ID](https://www.bulkgate.com/no/dokumentasjon/api-administrasjon/administrasjon-av-api/)                         |  **Ja**   |       -       | 
| application_token | [Autentiseringstoken for applikasjonen](https://www.bulkgate.com/no/dokumentasjon/api-administrasjon/api-token/)           |  **Ja**   |       -       |
| numbers           | Liste over strukturer med telefonnumre som skal sjekkes, se [Numre](#numre) |    Nei    |       -       |

#### Numre

| PARAMETERNAVN  | VERDI                                                                                                                | OBLIGATORISK |           STANDARDVERDI           |
|:---------------|:---------------------------------------------------------------------------------------------------------------------|:---------:|:---------------------------------:|
| phone_number   | Telefonnummer                                                                                                        | **Ja**    |                 -                 |
| country        | [Landskoden](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) for telefonnummeret |   Nei     |                 -                 |



**Eksempel på en fullstendig forespørsel:**
```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"
        }
    ]
}
```


## Svaret på denne forespørselen kan være:

**Ved suksess**
```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"
        }
    }
}
```
