telnyx-10dlc-python
Solid10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
AI & Automation 190 stars
20 forks Updated today MIT
Install
Quality Score: 87/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
# Telnyx 10DLC - Python
## Installation
```bash
pip install telnyx
```
## Setup
```python
import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
```
All examples below assume `client` is already initialized as shown above.
## Error Handling
All API calls can fail with network errors, rate limits (429), validation errors (422),
or authentication errors (401). Always handle errors in production code:
```python
import telnyx
try:
telnyx_brand = client.messaging_10dlc.brand.create(
country="US",
display_name="ABC Mobile",
email="support@example.com",
entity_type="PRIVATE_PROFIT",
vertical="TECHNOLOGY",
)
except telnyx.APIConnectionError:
print("Network error — check connectivity and retry")
except telnyx.RateLimitError:
import time
time.sleep(1) # Check Retry-After header for actual delay
except telnyx.APIStatusError as e:
print(f"API error {e.status_code}: {e.message}")
if e.status_code == 422:
print("Validation error — check required fields and formats")
```
Common error codes: `401` invalid API key, `403` insufficient permissions,
`404` resource not found, `422` validation error (check field formats),
`429` rate limited (retry with exponential backoff).
## Important Notes
- **Pagination:** List methods return an auto-paginating iterator. ...
Details
- Author
- team-telnyx
- Repository
- team-telnyx/ai
- Created
- 5 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
telnyx-10dlc-javascript
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
190 Updated today
team-telnyx AI & Automation Solid
telnyx-10dlc-curl
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
190 Updated today
team-telnyx AI & Automation Solid
telnyx-10dlc-ruby
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
190 Updated today
team-telnyx