Official Sinch API skills for AI coding agents — SMS, Voice, Verification, Numbers, Mailgun email, and more.
71
89%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Advisory
Suggest reviewing before use
pip install sinch (v2.0.0+)
SDK uses snake_case attributes mapping to camelCase JSON (e.g., phone_number ↔ phoneNumber).
Response models are Pydantic instances with typed fields.
import os
from sinch import SinchClient
sinch_client = SinchClient(
project_id=os.environ["SINCH_PROJECT_ID"],
key_id=os.environ["SINCH_KEY_ID"],
key_secret=os.environ["SINCH_KEY_SECRET"]
)response = sinch_client.numbers.search_for_available_numbers(
region_code="US",
number_type="LOCAL",
)
for number in response.iterator():
print(number.phone_number)result = sinch_client.numbers.check_availability(
phone_number="+12025550134"
)rented = sinch_client.numbers.rent(
phone_number="+12025550134",
sms_configuration={"service_plan_id": "YOUR_SERVICE_PLAN_ID"}
)rented = sinch_client.numbers.rent_any(
region_code="US",
number_type="LOCAL",
sms_configuration={"service_plan_id": "YOUR_SERVICE_PLAN_ID"}
)response = sinch_client.numbers.list(
region_code="US",
number_type="LOCAL",
)all_numbers = []
response = sinch_client.numbers.list(
region_code="US",
number_type="LOCAL",
)
for number in response.iterator():
all_numbers.append(number)Or page-by-page:
page = sinch_client.numbers.list(region_code="US", number_type="LOCAL")
while True:
print(page)
if not page.has_next_page:
break
page = page.next_page()number = sinch_client.numbers.get(phone_number="+12025550134")sinch_client.numbers.update(
phone_number="+12025550134",
display_name="Updated Name",
sms_configuration={"service_plan_id": "NEW_SERVICE_PLAN_ID"}
)sinch_client.numbers.release(phone_number="+12025550134")# Get current config
config = sinch_client.numbers.event_destinations.get()
# Update HMAC secret
sinch_client.numbers.event_destinations.update(hmac_secret="YOUR_HMAC_SECRET")skills
sinch-10dlc
references
sinch-authentication
sinch-conversation-api
sinch-elastic-sip-trunking
references
sinch-fax-api
sinch-imported-numbers-hosting-orders
references
sinch-in-app-calling
sinch-mailgun
references
sinch-mailgun-inspect
references
sinch-mailgun-optimize
references
sinch-mailgun-validate
sinch-number-lookup-api
sinch-number-order-api
sinch-numbers-api
references
sinch-porting-api
sinch-provisioning-api
sinch-sdks
sinch-verification-api