Endpoint
Authentication
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
dest | string | Yes | Recipient phone number in international format. |
src | string | Yes | Sender Name used to deliver the OTP. |
purpose | string | Yes | Business purpose associated with the OTP request. |
messageTemplate | string | No | Custom SMS template used for OTP delivery. |
Supported Purposes
Example Request
Successful Response
Response Fields
| Field | Description |
|---|---|
sessionId | Unique OTP session identifier. |
expiresInSeconds | Remaining OTP validity period in seconds. |
attemptsLeft | Remaining verification attempts available. |
reused | Indicates whether an existing OTP session was reused. |
OTP Reuse
When OTP reuse is enabled, Zeckta may reuse an active OTP session if a valid OTP already exists for the same destination and purpose. In this scenario:- No new OTP is generated
- No additional SMS is sent
- The existing OTP remains valid until expiration
When
reused is true, clients should continue using the existing OTP and session identifier.Validation Rules
Destination Number
Must be supplied in international E.164 format. Example:Sender Name
Must be a valid Sender Name available to your workspace. Example:Message Template
Optional custom message template. If omitted, Zeckta uses the default OTP template.Default Configuration
Workspace Isolation
OTP sessions are isolated by workspace. A workspace can only:- Request OTPs using its own API key
- Verify OTPs generated within its own workspace
- Access sessions associated with its own credentials
Next Step
Verify OTP
Validate a received OTP using the session identifier returned from this endpoint.