EndUserMessagingSocial / Client / get_whatsapp_business_public_key

get_whatsapp_business_public_key

EndUserMessagingSocial.Client.get_whatsapp_business_public_key(**kwargs)

Retrieves the business public key for a phone number and its signature status.

See also: AWS API Documentation

Request Syntax

response = client.get_whatsapp_business_public_key(
    originationPhoneNumberId='string'
)
Parameters:

originationPhoneNumberId (string) –

[REQUIRED]

The unique identifier of the phone number whose business public key to retrieve.

Return type:

dict

Returns:

Response Syntax

{
    'businessPublicKey': 'string',
    'businessPublicKeySignatureStatus': 'string'
}

Response Structure

  • (dict) –

    • businessPublicKey (string) –

      The stored RSA business public key (PEM), if present.

    • businessPublicKeySignatureStatus (string) –

      Meta’s signing status: “VALID” | “MISMATCH”.

Exceptions