get_whats_app_call_permission
async
¶
get_whats_app_call_permission(
origination_phone_number_id: WhatsAppPhoneNumberId,
*,
config_overrides: Optional[AsyncSocialMessagingClientConfig] = None,
destination_phone_number: Optional[WhatsAppDestinationPhoneNumber] = None,
end_user_bsuid: Optional[WhatsAppBusinessScopedUserId] = None,
) -> GetWhatsAppCallPermissionOutput
Retrieves the current calling permission for a WhatsApp end user, along with the calling actions the business is allowed to take with that user. Provide the destination phone number or the business-scoped user ID to identify the end user.
Parameters:
-
origination_phone_number_id(WhatsAppPhoneNumberId) –The unique identifier of the business phone number for which to retrieve the calling permission. The phone number identifiers are formatted as
phone-number-id-01234567890123456789012345678901. -
destination_phone_number(Optional[WhatsAppDestinationPhoneNumber], default:None) –The end user's phone number, in E.164 format, for which to retrieve the calling permission.
-
end_user_bsuid(Optional[WhatsAppBusinessScopedUserId], default:None) –The business-scoped user identifier (BSUID) of the end user for which to retrieve the calling permission.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ValidationException–The request contains an invalid parameter value.
-
AccessDeniedByMetaException–You do not have sufficient access to perform this action.
-
DependencyException–Thrown when performing an action because a dependency would be broken.
-
InternalServiceException–The request processing has failed because of an unknown error, exception, or failure.
-
InvalidParametersException–One or more parameters provided to the action are not valid.
-
ResourceNotFoundException–The resource was not found.
-
ThrottledRequestException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.