What it is
The Voice API places an automated call and reads a 4-to-6 digit verification code to the recipient. Use it as a direct voice-code channel or as a fallback when another verification channel is unavailable.Before you begin
- Activate Voice for your YCloud account.
- Collect the recipient’s phone number in E.164 format.
- Generate a short-lived 4-to-6 digit code.
- Choose a supported language.
- Decide whether status arrives through a callback URL or configured webhook.
How it works
- Generate and securely store the verification challenge.
- Send the code through the Voice API.
- Store the returned voice record ID and your
externalId. - Receive delivery updates through the callback or webhook.
- Validate the code in your application and expire the challenge.
Request
POST /voices
externalId that helps your system correlate the delivery
without exposing the verification code.
Response
Delivery status
Use delivery updates or list voice records to distinguish accepted, completed, and failed calls. Keep delivery status separate from verification approval: hearing a code does not prove that the correct user submitted it.Protect the verification flow
- Expire codes quickly.
- Limit send and check attempts by user, destination, IP, and device.
- Never log the verification code.
- Prevent a code from being reused after approval.
- Avoid revealing whether a phone number belongs to an account.
Limits and troubleshooting
verificationCodemust contain 4 to 6 digits.- Phone numbers must use E.164 format.
- Language availability can vary by country or region.
- Use
externalIdand the YCloud record ID to investigate delivery. - Prefer the Verify API when you want YCloud to manage both delivery and code checking as one verification lifecycle.
Send voice code API
Inspect language, callback, and response fields.

