Resource: PhoneNumber
Represents a phone number. PhoneNumber
resources enable phone calls to be answered by Dialogflow services and are added to a project through a PhoneNumberOrder
.
| JSON representation |
|---|
{
"name"
:
string
,
"phoneNumber"
:
string
,
"conversationProfile"
:
string
,
"lifecycleState"
:
enum (
|
| Fields | |
|---|---|
name
|
Optional. The unique identifier of this phone number. Required for |
phoneNumber
|
Output only. Phone number in E.164 format. An example of a correctly formatted phone number: +15556767888. |
conversationProfile
|
Optional. The conversation profile calls to this |
lifecycleState
|
Output only. The state of the |
LifecycleState
The states that a PhoneNumber
can be in.
| Enums | |
|---|---|
LIFECYCLE_STATE_UNSPECIFIED
|
This value is never used. |
ACTIVE
|
Number is active and can receive phone calls. |
DELETE_REQUESTED
|
Number is pending deletion, and cannot receive calls. |
Methods |
|
|---|---|
|
Requests deletion of a PhoneNumber
. |
|
Returns the list of all phone numbers in the specified project. |
|
Updates the specified PhoneNumber
. |
|
Cancels the deletion request for a PhoneNumber
. |

