v1

latestOpenAPI 3.0.02026-07-224537337.5 KB

Send Verification Code

Send an OTP code to a customer's contact information.

post/v2/customer/{id}/otp-send

Path parameters

idstring required
Example:customer_f31121c389624d3697cbf3ea8830b7a4

Customer ID

Request body

type'phone' | 'email' required

Type of verification code to send

Example request

{
  "type": "email"
}

Response

customerIdstring required

Customer ID

expiresAtstring required

ISO 8601 formatted date and time of the verification code expiration

Example response

{
  "customerId": "customer_f31121c389624d3697cbf3ea8830b7a4",
  "expiresAt": "2026-03-09T20:46:31.305Z"
}