Aller au contenu
Documentation

WhatsApp Business et OTP

Developer docs for the OTP API

The API guide inside Kauthar: send, verify and status, copy-ready examples in four programming languages, sandbox keys, idempotency, callbacks, limits and error codes.

Sur cette page

Vue d’ensemble#

The Kauthar OTP API page: the base URL and authentication (server-side only), Who sends the codes (your own number and how it is billed), Examples with cURL, Node.js, PHP and Python tabs and a Copy button, an explanation of POST /send (fields: phone, lang, code_length, ttl_seconds, app_ref, your own code, and the Idempotency-Key header), POST /verify and GET /status/:request_id, Sandbox (test) keys, Idempotency, signed Delivery-status callbacks, Limits and protection, and the Error codes table. The page is available before activation too.

Pour qui ?
Developer / technical team
Où le trouver ?
Sidebar → WhatsApp Business → OTP verification codes → Developer docs

Pas à pas#

  1. Read the base URL and the authentication method.
  2. Pick your programming language from the Examples tabs.
  3. Click Copy to copy the example and replace the key with your sandbox key.
  4. Check the Error codes table to handle each case in your app.
Developer docs for the OTP API — Écran d’ordinateur
Écran d’ordinateur · les numéros correspondent aux étapes
Developer docs for the OTP API — Écran de téléphone
Écran de téléphone · les numéros correspondent aux étapes

Astuces#

Bon à savoir#

Questions fréquentes#

Can I send a code I generated myself?

Yes, with the optional code field (4 to 15 letters or digits), and you can still verify it through Kauthar.

Cette page vous a-t-elle aidé ?