Request Parameters
Authentication key for your SMS verification service.
Secret credential paired with the access key.
End-user phone number in E.164 format (e.g.
+1XXXXXXXXXX). Invalid formatting returns 400 invalid_recipient.ID of the verification service. If the ID is missing or invalid the API responds with
401 invalid_request.Successful Response
410 otp_expired.
Error Scenarios
- 401 invalid credentials – incorrect
accessKey/secretKey - 400 invalid_recipient –
tomissing or improperly formatted - 409 otp_pending – a previous OTP for this number is still valid
- 429 rate_limited – verification attempts exceed the allowed limit
- 401 invalid_request – provided
serviceIdis invalid or not associated with the account - 500 provider_unavailable – temporary outage at the SMS gateway
Invalid Service ID Example
Each OTP remains valid for five minutes (
expiresIn: 300). Surface the countdown in your UX and throttle resend requests to avoid otp_pending errors.
