Binds a phone number or merchant account ID to a flow.
Operation description
-
You can call this operation to bind a phone number or merchant account ID to a flow, or manually bind them in the Flow Builder > Settings page.
-
Before calling this operation, make sure that you have a successfully created flow and a successfully created message channel that corresponds to the flow type.
-
For the WhatsApp channel type, you must have completed WABA registration and bindng and adding a phone number.
-
For the Messenger channel type, you must have completed connecting a public page account.
-
For the Instagram channel type, you must have completed connecting a professional account.
-
For the Viber channel type, you must have completed applying for a service ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:FlowBindPhone |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FlowCode |
string |
Yes |
The flow code. You can view the flow code in the Flow Builder page. |
9ccc41************************** |
| ChannelCode |
string |
Yes |
The message channel code, which is the channel ID. You can view the channel ID in the Channel Management page. |
cams-8c8********* |
| ChannelType |
string |
Yes |
The message channel type. Valid values:
|
|
| PhoneNumbers |
array |
No |
The list of phone numbers, PageIds, or AccountIds, or ServiceIds under the channel instance. |
|
|
string |
No |
A single phone number, PageId, or AccountId, or ServiceId.
|
86188******** |
|
| WabaId |
string |
Yes |
The WABA account ID, PageId, or AccountId, or ServiceId.
|
1952************ |
| FlowVersion |
string |
No |
The flow version. You can view the flow version by clicking the flow name in the Flow Builder page to enter the flow builder canvas. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The details about the access denial. |
None |
| Message |
string |
The error message. |
None |
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A94866411B2O |
| Model |
boolean |
Indicates whether the operation is successful. Valid values:
|
false |
| Code |
string |
The status code. |
OK |
| Success |
boolean |
Indicates whether the operation is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "None",
"Message": "None",
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O",
"Model": false,
"Code": "OK",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.