SIMUB
Integrate SIMUB SMS and temporary mail activations with documented authentication, lifecycle, error handling and safe server-side examples.
Protected requests use the API key associated with your verified SIMUB account. Send it only over HTTPS and keep it in a server-side secret store or environment variable; never embed it in client code, a public repository or a screenshot. The SMSHub-compatible handler receives action as a parameter, while SIMUB SMS routes put it in the path. Choose one interface and parse its documented response format.
Call getBalance for available funds, getServices or getServicesList for current service codes, and getCountries for supported country codes. Choose getPrices, getPricesV2 or getPricesV3 for the response shape your integration expects. Catalogs, counts and prices are provider snapshots: cache them briefly, display the returned price when relevant and revalidate before purchase. Never invent a code from a visible label.
A purchase and a status check are different operations. Persist the activation identifier immediately so an application timeout does not lose a reserved number.
SMSHub-compatible actions can return text tokens, while newer routes may return JSON. Correct or rotate a BAD_KEY credential instead of retrying. BAD_SERVICE means an action or service is unsupported. NO_BALANCE requires funding; NO_NUMBERS means no matching offer is currently available; BAD_STATUS marks an invalid transition. After a timeout, reset or server error on getNumber, reconcile through the stored activation or status before purchasing again. A blind retry can create a duplicate reservation.
Für E-Mail-Aktivierungen gelten separate Routen und JSON-Antworten. Rufen Sie getPriceRests, getPrices oder getRests für Dienste, Domains, Preise und Bestand auf. Speichern Sie nach getActivation die zurückgegebene mailId. Verwenden Sie getStatus für den Status und getCode für einen empfangenen Code. setStatus und requestRefund müssen dem aktuellen Status und den veröffentlichten Regeln entsprechen. Eine temporäre Mailbox ist kein dauerhaftes Postfach oder sicherer Wiederherstellungsweg.
Die folgenden Platzhalter sind absichtlich keine echten Zugangsdaten. Ersetzen Sie sie nur in Ihrer geschützten Serverumgebung. Die curl-Beispiele übergeben kodierte Parameter getrennt, statt sie manuell zu einer URL zusammenzufügen.
Setzen Sie endliche Timeouts, verwenden Sie begrenztes exponentielles Backoff bei Statusabfragen und stoppen Sie bei einem Endstatus. Entfernen Sie api_key, Telefonnummern, Adressen und empfangene Codes aus Protokollen. Validieren Sie Antworten und begrenzen Sie gleichzeitige Käufe. Bestand, Netze und Filter ändern sich; weder Verfügbarkeit noch Codezustellung sind garantiert.
In einem serverseitigen Secret-Manager oder einer geschützten Umgebungsvariable. Beschränken Sie den Zugriff und schreiben Sie den Schlüssel nie in Logs oder Clientcode.
Fragen Sie in einem moderaten Intervall mit begrenztem Backoff ab und stoppen Sie bei einer endgültigen Antwort.
Nein. Sie bestätigt nur die Zuweisung der Nummer; die Zustellung hängt von externen Netzen und Plattformregeln ab.
Prüfen Sie zuerst anhand gespeicherter IDs, Historie oder Status, ob bereits eine Aktivierung erstellt wurde, um doppelte Kosten zu vermeiden.