GetOTP API

The GetOTP API is an open-source public API that enables developers to generate and validate one-time passwords for authentication purposes. This API is suitable for adding secure OTP-based login systems to websites, mobile apps, or enterprise platforms. It offers fast response times and easy integration, making it a reliable tool for identity verification.

1

Endpoints

0

Views

Jul 20, 2025

Last Checked

100 requests/hour

Rate Limit

API Endpoints

Creates one-time passwords for authentication flows

Full URL

https://otp.dev/api/generate

Code Examples

curl -X POST 'https://otp.dev/api/generate' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

{
  "expiry": 300,
  "length": 6
}

Example Response

{
  "otp": "A3F9B7",
  "expires_at": "2023-07-18T15:30:00Z",
  "remaining_seconds": 300
}

Version

v1

Rate Limit

50 OTPs/hour
Tags
authenticationsecurity
Technical Details
Authentication
API Key
Response Formats
JSON
Availability
global
Status
Published
Rate Limits

100 requests/hour

Supported Languages
Any
Use Cases
2FA systems
user verification
https://otp.dev/api/

Related APIs

Discover similar APIs that might interest you

APIfreemium

Clerk Authentication

Clerk Authentication API offers develope...

Category
Authentication
Endpoints
1
authenticationusers
GetOTP API – Free Authentication Public API | Free API Hub