Start caller-ID verification for a customer-brought number
Customer-brought (BYO) WhatsApp numbers cannot present themselves as
caller ID on tel: call forwards until verified (carrier
anti-spoofing); until then forwarded calls show a Zernio number
(callerIdMode: platform on the calling config). This sends a
one-time code to the number by SMS or voice call. Re-POST to resend.
Zernio-purchased numbers never need this and get a 400.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Phone number record ID (from GET /v1/phone-numbers).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
{ "verified": true, "codeSent": true, "method": "sms"}Get a call recording
Resolves a fresh, playable MP3 URL for the call's recording. Provider-signed recording URLs expire ~10 minutes after signing, so the `recordingUrl` stored on the call is usually stale by the time it is played; this endpoint re-signs on demand. Default responds `302 Found` redirecting to the fresh URL (point an `<audio>` element or a link straight at this endpoint); pass `as=json` to receive `{ url }` instead.
Confirm the caller-ID verification code
Submits the one-time code the number received. On success, `tel:` call forwards present the business number itself as caller ID (`callerIdMode: business`).