You can check if a recipient’s device is compatible with RCS messaging by using the check_rcs_status method provided by the Pinnacle class in the SDK.

check_rcs_status(phone_number: str) -> bool

Parameters:

phone_number
string
required

The phone number of the recipient you want to check for RCS compatibility. It should be in E.164 format (e.g., +14155552671).

Returns:

rcsEnabled
boolean
required

Returns True if the recipient’s device is compatible with RCS messaging, otherwise returns False.

Example Usage

check_rcs_status.py
from rcs import Pinnacle

pinn = Pinnacle(
    api_key=YOUR_API_KEY,
    webhook_url=YOUR_WEBHOOK_URL,
)

status = pinn.check_rcs_status(phone_number)
print(f"RCS status for {phone_number}: {status}")