1MSG

Get business encryption public key

GET
/whatsapp_business_encryption

Return the business public key and signature status for this channel's phone number.

Read business_public_key and business_public_key_signature_status. The provider usually nests them in data[0].

  • VALID — the stored key matches its signature. The upload succeeded. This does not test your endpointUri.
  • MISMATCH — the stored key and the signature do not match. Upload the public key again with POST /whatsapp_business_encryption.

Authorization

JWT token
querytoken<token>

Response Body

Business encryption key status

application/json
  1. response
business_public_key?string

Stored 2048-bit RSA public key (PEM).

business_public_key_signature_status?string

VALID if the signature matches the stored key, otherwise MISMATCH.

Value in"VALID""MISMATCH"
data?array<>

Provider list. Read the key and status from the first item when this array is present.

[key: string]?any
curl -X GET 'https://api.1msg.io/123/whatsapp_business_encryption'
{  "data": [    {      "business_public_key": "-----BEGIN PUBLIC KEY-----\nYOUR_PUBLIC_KEY\n-----END PUBLIC KEY-----",      "business_public_key_signature_status": "VALID"    }  ]}