Skip to content

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.

[key: string]: unknown

Additional Graph fields not explicitly typed above.

optional code_verification_status?: string

Defined in: src/types/phone-numbers.ts:25

Status of the display-name/code verification flow.


optional display_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.


optional name_status?: string

Defined in: src/types/phone-numbers.ts:27

Status of the display-name review.


optional quality_rating?: string

Defined in: src/types/phone-numbers.ts:23

Current messaging quality rating, e.g. GREEN.


optional status?: string

Defined in: src/types/phone-numbers.ts:29

Connection/registration status of the number.


optional verified_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.