## API-URL
URL, an die HTTP-Anfragen gesendet werden:
```url
https://portal.bulkgate.com/api/1.0/otp/resend
```

> [!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`.

## Unterstützte HTTP-Methoden

- `POST` - `application/json`

```http
POST /api/1.0/otp/resend HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
```

> [!IMPORTANT]
> Zwischen zwei erneuten Versendungen derselben Anfrage müssen **60 Sekunden** liegen. Ein früherer Versuch gibt `the_quota_of_one_additional_resend_per_minute_has_been_exceeded` zurück. Die Anzahl der erneuten Versendungen ist zusätzlich durch `trials_available_resend` aus der Anfrage [SEND](https://www.bulkgate.com/de/dokumentation/otp-api/einmalpasswort-senden/) begrenzt.

## Parametertabelle

| PARAMETERNAME | WERT | PFLICHT | STANDARDWERT |
|:--- |:--- |:--- |:--- |
|application_id| [Anwendungs-ID](https://www.bulkgate.com/de/dokumentation/api-verwaltung-und-tokens/api-verwaltung/) |**Ja**|-|
|application_token| [Anwendungstoken](https://www.bulkgate.com/de/dokumentation/api-verwaltung-und-tokens/api-tokens/) |**Ja**|-|
|id| ID, die Sie beim Senden des Einmalpassworts erhalten haben |**Ja**|-|


## Beispielanfrage

```http-json
POST /api/1.0/otp/resend HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json

{
    "application_id": 451,
    "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj",
    "id": "otp-id"
}
```

## Antwort

**Bei Erfolg:**
```json
{
    "data": {
        "id": "otp-65cca8b4b6a6a2.24308291",
        "message": {
          "status": "accepted",
          "message_id": "cascade-xjyjzh7thor3",
          "part_id": [
            "cascade-xjyjzh7thor3"  
          ],
          "number": "420777777777",
          "channel": "whatsapp"
        }
    }
}
```

**Bei einem Fehler:**
```json
{
    "type": "invalid_id_provided",
    "code": 400,
    "error": "Invalid id provided",
    "detail": null
}
```

```json
{
    "type": "unknown_identity",
    "code": 400,
    "error": "Unknown identity",
    "detail": null
}
```

```json
{
    "type": "invalid_input_parameters",
    "code": 400,
    "error": "Invalid input parameters",
    "detail": null
}
```

Dabei gilt:

- **type** und **error** (Beschreibung des Fehlers) finden Sie in der [Tabelle der Fehlertypen](https://www.bulkgate.com/de/dokumentation/api-verwaltung-und-tokens/api-fehlertypen/)
- **code** ist der HTTP-Fehlercode
- **detail** enthält zusätzliche Informationen zum Fehler
