/request endpoint initiates the 2FA handshake. It generates a unique 6-digit code, creates a secure session, and dispatches the message to the user’s mobile device.
Request Flow
When you call this endpoint, Zeckta:- Validates the destination number format
- Verifies your approved Sender ID
- Calculates billing
- Generates a secure OTP session
- Queues the SMS for immediate delivery
Endpoint
Method:POSTPath:
/v1/messaging/otp/request
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
dest | string | Yes | Recipient phone number in E.164 format (e.g., +233240000000). |
src | string | Yes | Approved alphanumeric Sender ID (e.g., ZECKTA). |
messageTemplate | string | No | Custom message text. Must include the <OTP> placeholder. |
purpose | string | No | Label for audit trail (e.g., LOGIN, PASSWORD_RESET). |
Implementation Example
Successful Response
Security Considerations
- OTP codes expire automatically.
- Each session is single-use.
- Rate limits apply to prevent brute-force attempts.
- Always use HTTPS.