TryVox

Submit OTP

Complete caller ID verification by submitting the 6-digit OTP.

Submit OTP

Complete a pending caller ID verification by submitting the OTP that was delivered via voice or SMS. On success the entry flips from pending to verified and is immediately usable as the from field on outbound calls.

Endpoint

POST https://api.tryvox.io/v1/voice/accounts/{auth_id}/verified-caller-ids/{phone_number}/verify

{phone_number} must be the E.164-formatted number you previously initiated verification for.

Request body

ParameterTypeRequiredDescription
otpstringyesThe 6-digit code TryVox delivered to the number.

Example request

curl -X POST https://api.tryvox.io/v1/voice/accounts/$TRYVOX_AUTH_ID/verified-caller-ids/+919876543210/verify \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
  -H "Content-Type: application/json" \
  -d '{"otp": "123456"}'

Response

200 OK:

{
  "id": "8f7a4b2e-91c2-4f3d-9a1e-2c4b6d8f0a1c",
  "account_id": "TJab12cd34",
  "phone_number": "+919876543210",
  "alias": "Office line",
  "verification_status": "verified",
  "verified_at": "2026-04-09T10:35:12Z",
  "created_at": "2026-04-09T10:30:00Z"
}

The number can now be used as from on outbound calls. The verification doesn't expire — it persists until you delete the entry or rotate to a new API key.

Errors

StatusCodeReason
400VALIDATION_FAILEDotp missing or empty
401INVALID_CREDENTIALSAuth ID / Auth Token bad
403FORBIDDENAuth ID in URL doesn't match the authenticated key
404CALLER_ID_NOT_FOUNDNo pending verification exists for this phone_number on this account. Call Initiate first.
409ALREADY_VERIFIEDNumber is already verified — no OTP submission needed.
422INVALID_OTPOTP didn't match. Re-initiate to get a fresh code.

Notes

  • No retry counter on the OTP itself. A wrong OTP returns 422 but doesn't lock the entry — you can retry, or re-initiate to get a fresh code.
  • Stable phone-number key. The phone number (E.164) is the addressable key for all manage operations. Don't lose it; the id field is informational.

Next steps

On this page