All Products
Search
Document Center

Chat App Message Service:FlowUnbindPhone

Last Updated:Sep 01, 2026

Dissociates a phone number or merchant account ID from a flow.

Operation description

  • Before calling this operation, make sure your flow is in the offline state. If your flow is in the online state, go to the Flow Builder page, click the flow name to enter the canvas orchestration page, and manually take it offline, or call the OfflineFlowVersion operation to take the flow offline.

  • You can call this operation to dissociate a phone number or merchant account ID from a flow, or manually dissociate them on the Flow Builder > Settings page.

  • Before calling this operation, make sure your successfully created flow has a phone number or merchant account ID associated with it.

  • If you have not associated a phone number or merchant account ID, you can manually associate one on the Flow Builder > Settings page, or call the FlowBindPhone operation to associate one.

  • After dissociating a phone number or merchant account ID from a flow, the flow cannot be published. You must re-associate a phone number or merchant account ID before the flow can be published.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cams:FlowUnbindPhone

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

FlowCode

string

Yes

The flow code. You can view the flow code on the Flow Builder page.

9ccc41**************************

PhoneNumbers

array

No

The list of phone numbers, PageIds, AccountIds,or ServiceIds under the channel instance.

string

No

A single phone number, PageId, AccountId,or ServiceId.

  • If the ChannelType parameter is set to WHATSAPP, specify the merchant phone number under the WhatsApp channel instance. You can view the merchant phone number on the Channel Management > Manage > WABA Management > Number Management page.

  • If the ChannelType parameter is set to MESSENGER, specify the PageId (public page ID) under the Messenger channel instance. You can view the page ID on the Channel Management > Manage > Public Pages page.

  • If the ChannelType parameter is set to INSTAGRAM, specify the AccountId (professional account ID) under the Instagram channel instance. You can view the account ID on the Channel Management > Manage > Professional Accounts page.

  • If the ChannelType parameter is set to VIBER, specify the ServiceId (service account ID) under the Viber channel instance. You can view the service account ID on the Channel Management > Manage > Service Account Management page.

86188********

FlowVersion

string

No

The flow version. You can view the flow version by going to the Flow Builder page, clicking the flow name, and entering the flow editor canvas page.

1

ChannelType

string

No

The message channel type. Valid values:

  • INSTAGRAM

  • WHATSAPP

  • MESSENGER

  • VIBER

WHATSAPP

Response elements

Element

Type

Description

Example

object

AccessDeniedDetail

string

The details about the access denial.

None

Message

string

The error message.

None

RequestId

string

Model

boolean

Indicates whether the operation is successful. Valid values:

  • true: The operation is successful.

  • false: The operation failed.

true

Code

string

The request status code.

OK

Success

boolean

Indicates whether the operation is successful. Valid values:

  • true: The operation is successful.

  • false: The operation failed.

true

Examples

Success response

JSON format

{
  "AccessDeniedDetail": "None",
  "Message": "None",
  "RequestId": "",
  "Model": true,
  "Code": "OK",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.