Authyo Docs
  1. APIs
Authyo Docs
  • 🐶 Walk through Authyo
  • Error Codes
  • About Pricing
  • APIs
    • Send OTP
      GET
    • Send OTP
      POST
    • Verify OTP
      GET
  • Web SDKs
    • JavaScript
    • PHP
    • AngularJS Examples
    • TypeScript Examples
    • React JS
    • Vue JS Examples
  1. APIs

Send OTP

GET
https://authyo.io/api/v1/authyoapi/sendotp

Request

Query Params
to
string 
optional
expiry
integer 
optional
otpLength
string 
optional
Header Params
clientId
string 
optional
Example:
{Your clientId code}
clientSecret
string 
optional
Example:
{Your clientSecret code}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://authyo.io/api/v1/authyoapi/sendotp?to=&expiry=&otpLength' \
--header 'clientId: {Your clientId code}' \
--header 'clientSecret: {Your clientSecret code}'

Responses

🟢200Success
application/json
Body
status
string 
required
message
string 
required
to
string 
required
maskId
string 
required
createdTime
integer 
required
expiretime
integer 
required
Example
{
  "status": "success",
  "message": "Message submitted successfully.",
  "to": "919898978978",
  "maskId": "e0419e13c22e4dceab627e7ccbb1315a",
  "createdTime": 1736347341,
  "expiretime": 1736350941
}
Modified at 2025-04-24 05:54:11
Previous
About Pricing
Next
Send OTP
Built with