Add a verified caller-ID number
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/VerifiedPhoneNumbers';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"acc_id":"AC000000000000000001","created_time":"2026-11-20T10:15:00Z","modified_by":"jane@example.com","phone_number":"+15555550123","status":"verified","updated_time":"2026-11-21T09:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siprtc.io/v1/Accounts/AC000000000000000000/VerifiedPhoneNumbers \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "acc_id": "AC000000000000000001", "created_time": "2026-11-20T10:15:00Z", "modified_by": "jane@example.com", "phone_number": "+15555550123", "status": "verified", "updated_time": "2026-11-21T09:00:00Z" }'Adds a number to the verified caller-ID list of the account in the path, with status verified, so it can be used as the From of outbound calls. The service stores the number exactly as sent; it does not itself call or text the number to prove ownership, so confirm ownership first (for example with the Verify API) before adding it. The service answers HTTP 400 both on success (status success, message “Verified Number Successfully Added”) and when the number could not be saved (status failed, message “Bad Request”); check the status field.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your Auth ID (or a direct child’s).
Example
AC000000000000000000Request Bodyrequired
Section titled “ Request Bodyrequired ”The number to add; only phone_number and modified_by are read
object
Auth ID of the account the entry belongs to. Set by the service; any value you send is ignored.
Example
AC000000000000000001When the entry was created (RFC 3339).
Example
2026-11-20T10:15:00ZOptional name of the person making the change, recorded in the audit log.
Example
jane@example.comThe verified number or sender ID, stored exactly as it was submitted.
Example
+15555550123Verification status. Entries created through the API are stored as verified.
Example
verifiedWhen the entry was last updated (RFC 3339), if ever.
Example
2026-11-21T09:00:00ZResponses
Section titled “ Responses ”Added (status success) or not saved (status failed); see the description
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}Missing or invalid credentials (returned by the API gateway)
Example generated
exampleBody not valid JSON, or phone_number missing
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}