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 
required
expiry
integer 
optional
otpLength
string 
optional
Header Params
clientId
string 
required
Example:
{Your clientId code}
clientSecret
string 
required
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
success
boolean 
required
message
string 
required
data
object 
required
isTried
integer 
required
isSent
integer 
required
results
array [object {7}] 
required
Example
{
    "success": true,
    "message": "submited successfully",
    "data": {
        "isTried": 1,
        "isSent": 1,
        "results": [
            {
                "success": true,
                "message": "message submitted successfully",
                "to": "919898******",
                "authtype": "SMS",
                "maskId": "56adc8eb1AaA4a0889599a8bbdf32a95",
                "createdTime": 1747310475,
                "expiretime": 1747310535
            }
        ]
    }
}
Modified at 2025-05-15 06:42:23
Previous
About Pricing
Next
Send OTP
Built with