PhoneNumber
Defined in: src/types/phone-numbers.ts:15
A WhatsApp phone number as returned by the Graph API. Only the commonly used fields are typed; an index signature allows any additional Graph fields.
Indexable
Section titled “Indexable”[
key:string]:unknown
Additional Graph fields not explicitly typed above.
Properties
Section titled “Properties”code_verification_status?
Section titled “code_verification_status?”
optionalcode_verification_status?:string
Defined in: src/types/phone-numbers.ts:25
Status of the display-name/code verification flow.
display_phone_number?
Section titled “display_phone_number?”
optionaldisplay_phone_number?:string
Defined in: src/types/phone-numbers.ts:19
Human-readable display phone number, e.g. +1 555-555-5555.
id:
string
Defined in: src/types/phone-numbers.ts:17
The phone number id used in {PHONE_NUMBER_ID} paths.
name_status?
Section titled “name_status?”
optionalname_status?:string
Defined in: src/types/phone-numbers.ts:27
Status of the display-name review.
quality_rating?
Section titled “quality_rating?”
optionalquality_rating?:string
Defined in: src/types/phone-numbers.ts:23
Current messaging quality rating, e.g. GREEN.
status?
Section titled “status?”
optionalstatus?:string
Defined in: src/types/phone-numbers.ts:29
Connection/registration status of the number.
verified_name?
Section titled “verified_name?”
optionalverified_name?:string
Defined in: src/types/phone-numbers.ts:21
The approved display name for the number.
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.