OTP API

Create OTP to sign your users into Vudy via a limited API key.

Overview

The Vudy OTP API allows third-party providers to generate temporary API keys for users through email-based one-time password authentication. This enables secure, time-limited access to Vudy's payment request creation endpoints.

Authentication

All API requests require a valid API key in the x-api-key header. Contact Vudy support to obtain your API key.

x-api-key: your-api-key-here

Endpoints

1. Send OTP

POST https://vudy.tech/api/v1/user/send-otp

Sends a 9-character OTP code to the user's email address.

Request Body:

{
    "email": "user@example.com"
}

Response (Success):

{
    "success": true,
    "message": "OTP sent successfully",
    "code": "SOTP-005"
}

Response (Error):

2. Validate OTP

POST https://vudy.tech/api/v1/user/validate-otp

Validates the OTP code and returns a temporary API key.

Request:

Response (Success):

Response (Error):

Usage Example

OTP Specifications

  • Format: 9 characters (A-Z, 0-9)

  • Expiration: 5 minutes

  • Single use: OTP is invalidated after successful validation

  • Case sensitive: OTPs should be entered exactly as received

Temporary API Key

  • Expiration: 15 minutes from creation

  • Permissions: CREATE_REQUEST only

  • Rate limit: 1 request per 5 seconds

  • Single user: Tied to the validated user's account

Error Codes

Code
Description

SOTP-001

Invalid request data

SOTP-002

User not found

SOTP-004

Email delivery failed

SOTP-006

Server error

VOTP-001

Invalid email/OTP combination

VOTP-003

OTP expired or not found

VOTP-004

OTP doesn't match user

VOTP-005

Server error

Requirements

  • User must have a valid Vudy account

  • User must have access to the provided email address

  • Valid third-party API key for accessing endpoints

Support

For API key requests or technical support, contact:

  • Email: support@vudy.me

  • Documentation: https://docs.vudy.me

Rate Limits

  • OTP requests: Contact support for rate limit information

  • Temporary API keys: 1 request per 5 seconds per key

Last updated