Nichts gefunden

Verifizierung des Einmalpassworts (OTP)

API-URL

URL, an die HTTP-Anfragen gesendet werden:

https://portal.bulkgate.com/api/1.0/otp/verify
Hinweis

Erreicht die Anfrage ihr Ziel nicht, wiederholen Sie sie auf dem Backup-Server backup1.bulkgate.com.

Unterstützte HTTP-Methoden

  • POST - application/json
POST /api/1.0/otp/verify HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json

Parametertabelle

PARAMETERNAME WERT PFLICHT STANDARDWERT
application_id Anwendungs-ID Ja -
application_token Anwendungstoken Ja -
id ID, die Sie beim Senden des Einmalpassworts erhalten haben Ja -
code Zu verifizierender Code Ja -

Beispielanfrage

POST /api/1.0/otp/verify HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json { "application_id": 451, "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj", "id": "otp-id", "code": "0000" }

Antwort

Bei Erfolg:

{ "data": { "id": "otp-id", "verified": true } }

Bei ungültigem Code:

{ "data": { "id": "otp-id", "verified": false } }

Bei einem Fehler:

{ "type": "unknown_identity", "code": 400, "error": "Unknown identity", "detail": null } { "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
  • code ist der HTTP-Fehlercode
  • detail enthält zusätzliche Informationen zum Fehler
War diese Seite hilfreich?