send_whats_app_call_event
async
¶
send_whats_app_call_event(
origination_phone_number_id: WhatsAppPhoneNumberId,
meta_api_version: str,
call_event: WhatsAppCallEventBlob,
*,
config_overrides: Optional[AsyncSocialMessagingClientConfig] = None,
) -> SendWhatsAppCallEventOutput
Sends a WhatsApp calling event, such as connecting or terminating a call, for a business phone number. This operation passes the event through to Meta. To use this operation, the origination phone number must belong to a WhatsApp Business Account that is linked to your Amazon Web Services account.
Parameters:
-
origination_phone_number_id(WhatsAppPhoneNumberId) –The unique identifier of the origination phone number for the call. The phone number identifiers are formatted as
phone-number-id-01234567890123456789012345678901. UseGetLinkedWhatsAppBusinessAccountto find a phone number's ID. -
meta_api_version(str) –The version of the Meta Graph API to use for the request.
-
call_event(WhatsAppCallEventBlob) –The call event payload to send, as a JSON blob in the format defined by the Meta calling API.
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.
-
ConflictException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
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.