ReferenceWhatsApp Business API
Get business encryption public key
GET
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 yourendpointUri.MISMATCH— the stored key and the signature do not match. Upload the public key again withPOST /whatsapp_business_encryption.
JWT tokenquery
token<token>Business encryption key status
application/json- response
business_public_key?stringStored 2048-bit RSA public key (PEM).
business_public_key_signature_status?stringVALID 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]?anycurl -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" } ]}