Generate and send an OTP

Generates a one-time password and sends it to the specified destination number within the given message text. The OTP placeholder in the message is represented by %m.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

Account username.

string
required

Account password.

string
required

Destination number to receive the OTP, in international format.

string
required

Message template containing the %m placeholder, which is replaced by the generated OTP (e.g. "Your one time OTP is %m"). Must be URL-encoded.

string
required

Sender ID assigned to the user.

integer
required

Length of the generated OTP.

integer
required

OTP validity period, in seconds.

string

Identifier name for this batch (optional).

Responses

400

Malformed request — one or more query parameters are missing or invalid.

401

Authentication failed.

500

Unexpected server error.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain