← Back to Productivity & Business

OTPLY

Email OTP authentication service

https://hub.toolweb.in/tools/otply/

Endpoints

GET /

Root

GET /health

Health Check

POST /api/v1/register

Register

Request Body (JSON)

{
  "email": "<string>",
  "password": "<string>",
  "company_name": "<string>"
}
POST /api/v1/login

Login

Request Body (JSON)

{
  "email": "<string>",
  "password": "<string>"
}
POST /api/v1/send-otp

Send Otp

Parameters

NameInTypeRequiredDescription
X-API-Key header string X-Api-Key
X-API-Secret header string X-Api-Secret

Request Body (JSON)

{
  "email": "<string>",
  "purpose": "verification",
  "template": "default",
  "expiry_minutes": 10
}
POST /api/v1/verify-otp

Verify Otp

Parameters

NameInTypeRequiredDescription
X-API-Key header string X-Api-Key
X-API-Secret header string X-Api-Secret

Request Body (JSON)

{
  "email": "<string>",
  "otp": "<string>",
  "purpose": "verification"
}
GET /api/v1/usage

Get Usage

Parameters

NameInTypeRequiredDescription
X-API-Key header string X-Api-Key
X-API-Secret header string X-Api-Secret

Quick Start

# cURL
curl -H "X-API-Key: YOUR_API_KEY" \
  https://hub.toolweb.in/tools/otply/
# Python
import requests
r = requests.get("https://hub.toolweb.in/tools/otply/",
    headers={"X-API-Key": "YOUR_API_KEY"})
print(r.json())
# JavaScript
fetch("https://hub.toolweb.in/tools/otply/", {
  headers: { "X-API-Key": "YOUR_API_KEY" }
}).then(r => r.json()).then(console.log)

Sign up free to get your API key auto-filled.