Request OTP code

Request a one-time password (OTP) code to be sent to the user's email or phone number. This endpoint is used for multi-factor authentication and account security verification.

POST
/auth/otp

Request Body

application/json

Request OTP code payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api-testnet.dual.network/auth/otp" \  -H "Content-Type: application/json" \  -d '{}'
{}
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}