You can retrieve the phone numbers that you can send messages to by using the get_supported_numbers method provided by the Pinnacle class in the SDK.

get_supported_numbers() -> str

Returns:

supportedPhoneNumbers
list[str]
required

Returns a list of phone numbers that are supported for messaging by your account. The phone numbers are in E.164 format (e.g., +14155552671).

Example Usage

get_supported_numbers.py
from rcs import Pinnacle

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

supported_numbers = pinn.get_supported_numbers()
print(f"Supported phone numbers: {supported_numbers}")