Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage sub-accounts for reseller and enterprise scenarios. This skill provides Python SDK examples.
.claude/skills/team-telnyx-telnyx-account-management-python/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 112% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 176% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 76% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 132% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashpip install telnyx
pythonimport 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.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
pythonimport telnyx try: result = client.messages.send(to="+13125550001", from_="+13125550002", text="Hello") except telnyx.APIConnectionError: print("Network error — check connectivity and retry") except telnyx.RateLimitError: # 429: rate limited — wait and retry with exponential backoff 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).
for item in page_result: to iterate through all pages automatically.Lists the accounts managed by the current user. Users need to be explictly approved by Telnyx in order to become manager accounts.
GET /managed_accounts
pythonpage = client.managed_accounts.list() page = page.data[0] print(page.id)
Returns: api_user (string), created_at (string), email (email), id (uuid), managed_account_allow_custom_pricing (boolean), manager_account_id (string), organization_name (string), record_type (enum: managed_account), rollup_billing (boolean), updated_at (string)
Create a new managed account owned by the authenticated user. You need to be explictly approved by Telnyx in order to become a manager account.
POST /managed_accounts — Required: business_name
Optional: email (string), managed_account_allow_custom_pricing (boolean), password (string), rollup_billing (boolean)
pythonmanaged_account = client.managed_accounts.create( business_name="Larry's Cat Food Inc", ) print(managed_account.data)
Returns: api_key (string), api_token (string), api_user (string), balance (object), created_at (string), email (email), id (uuid), managed_account_allow_custom_pricing (boolean), manager_account_id (string), organization_name (string), record_type (enum: managed_account), rollup_billing (boolean), updated_at (string)
Display information about allocatable global outbound channels for the current user. Only usable by account managers.
GET /managed_accounts/allocatable_global_outbound_channels
pythonresponse = client.managed_accounts.get_allocatable_global_outbound_channels() print(response.data)
Returns: allocatable_global_outbound_channels (integer), managed_account_allow_custom_pricing (boolean), record_type (string), total_global_channels_allocated (integer)
Retrieves the details of a single managed account.
GET /managed_accounts/{id}
pythonmanaged_account = client.managed_accounts.retrieve( "id", ) print(managed_account.data)
Returns: api_key (string), api_token (string), api_user (string), balance (object), created_at (string), email (email), id (uuid), managed_account_allow_custom_pricing (boolean), manager_account_id (string), organization_name (string), record_type (enum: managed_account), rollup_billing (boolean), updated_at (string)
Update a single managed account.
PATCH /managed_accounts/{id}
Optional: managed_account_allow_custom_pricing (boolean)
pythonmanaged_account = client.managed_accounts.update( id="550e8400-e29b-41d4-a716-446655440000", ) print(managed_account.data)
Returns: api_key (string), api_token (string), api_user (string), balance (object), created_at (string), email (email), id (uuid), managed_account_allow_custom_pricing (boolean), manager_account_id (string), organization_name (string), record_type (enum: managed_account), rollup_billing (boolean), updated_at (string)
Disables a managed account, forbidding it to use Telnyx services, including sending or receiving phone calls and SMS messages. Ongoing phone calls will not be affected. The managed account and its sub-users will no longer be able to log in via the mission control portal.
POST /managed_accounts/{id}/actions/disable
pythonresponse = client.managed_accounts.actions.disable( "id", ) print(response.data)
Returns: api_key (string), api_token (string), api_user (string), balance (object), created_at (string), email (email), id (uuid), managed_account_allow_custom_pricing (boolean), manager_account_id (string), organization_name (string), record_type (enum: managed_account), rollup_billing (boolean), updated_at (string)
Enables a managed account and its sub-users to use Telnyx services.
POST /managed_accounts/{id}/actions/enable
Optional: reenable_all_connections (boolean)
pythonresponse = client.managed_accounts.actions.enable( id="550e8400-e29b-41d4-a716-446655440000", ) print(response.data)
Returns: api_key (string), api_token (string), api_user (string), balance (object), created_at (string), email (email), id (uuid), managed_account_allow_custom_pricing (boolean), manager_account_id (string), organization_name (string), record_type (enum: managed_account), rollup_billing (boolean), updated_at (string)
PATCH /managed_accounts/{id}/update_global_channel_limit
Optional: channel_limit (integer)
pythonresponse = client.managed_accounts.update_global_channel_limit( id="550e8400-e29b-41d4-a716-446655440000", ) print(response.data)
Returns: channel_limit (integer), email (string), id (string), manager_account_id (string), record_type (string)
Returns a list of the users in your organization.
GET /organizations/users
pythonpage = client.organizations.users.list() page = page.data[0] print(page.id)
Returns: created_at (string), email (email), groups (arrayobject]), id (string), last_sign_in_at (string | null), organization_user_bypasses_sso (boolean), record_type (string), user_status (enum: enabled, disabled, blocked)
Returns a report of all users in your organization with their group memberships. This endpoint returns all users without pagination and always includes group information. The report can be retrieved in JSON or CSV format by sending specific content-type headers.
GET /organizations/users/users_groups_report
pythonresponse = client.organizations.users.get_groups_report() print(response.data)
Returns: created_at (string), email (email), groups (arrayobject]), id (string), last_sign_in_at (string | null), organization_user_bypasses_sso (boolean), record_type (string), user_status (enum: enabled, disabled, blocked)
Returns a user in your organization.
GET /organizations/users/{id}
pythonuser = client.organizations.users.retrieve( id="550e8400-e29b-41d4-a716-446655440000", ) print(user.data)
Returns: created_at (string), email (email), groups (arrayobject]), id (string), last_sign_in_at (string | null), organization_user_bypasses_sso (boolean), record_type (string), user_status (enum: enabled, disabled, blocked)
Deletes a user in your organization.
POST /organizations/users/{id}/actions/remove
pythonaction = client.organizations.users.actions.remove( "id", ) print(action.data)
Returns: created_at (string), email (email), groups (arrayobject]), id (string), last_sign_in_at (string | null), organization_user_bypasses_sso (boolean), record_type (string), user_status (enum: enabled, disabled, blocked)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-06 | fail→pass | 15,302 | 4,210 | -72% | 1 | 1 | 0% | 2,657 | 3,379 | +27% | 0 | 0 | — |
case-07 | fail→pass | 8,084 | 3,460 | -57% | 1 | 1 | 0% | 1,565 | 3,314 | +112% | 0 | 0 | — |
case-08 | fail→pass | 6,664 | 3,469 | -48% | 1 | 1 | 0% | 1,243 | 3,428 | +176% | 0 | 0 | — |
case-09 | fail→pass | 10,884 | 4,826 | -56% | 1 | 1 | 0% | 2,008 | 3,535 | +76% | 0 | 0 | — |
case-10 | fail→pass | 9,088 | 6,164 | -32% | 1 | 1 | 0% | 1,692 | 3,923 | +132% | 0 | 0 | — |
case-11 | fail→pass | 8,051 | 2,960 | -63% | 1 | 1 | 0% | 1,447 | 3,152 | +118% | 0 | 0 | — |
case-12 | pass→pass | 7,547 | 4,049 | -46% | 1 | 1 | 0% | 1,627 | 3,351 | +106% | 0 | 0 | — |
case-13 | fail→pass | 8,219 | 4,578 | -44% | 1 | 1 | 0% | 1,424 | 3,496 | +146% | 0 | 0 | — |
case-14 | fail→pass | 7,325 | 4,201 | -43% | 1 | 1 | 0% | 1,323 | 3,481 | +163% | 0 | 0 | — |
case-01 | fail→pass | 16,862 | 7,404 | -56% | 1 | 1 | 0% | 3,222 | 4,175 | +30% | 0 | 0 | — |
case-02 | fail→pass | 9,148 | 7,781 | -15% | 1 | 1 | 0% | 1,766 | 4,280 | +142% | 0 | 0 | — |
case-03 | fail→pass | 14,064 | 6,603 | -53% | 1 | 1 | 0% | 2,603 | 3,959 | +52% | 0 | 0 | — |
case-04 | fail→pass | 31,389 | 4,556 | -85% | 1 | 1 | 0% | 3,031 | 3,477 | +15% | 0 | 0 | — |
case-05 | fail→pass | 14,116 | 3,403 | -76% | 1 | 1 | 0% | 2,164 | 3,192 | +48% | 0 | 0 | — |
case-15 | pass→pass | 6,103 | 4,118 | -33% | 1 | 1 | 0% | 1,187 | 3,427 | +189% | 0 | 0 | — |
case-16 | fail→pass | 10,086 | 7,202 | -29% | 1 | 1 | 0% | 1,872 | 4,054 | +117% | 0 | 0 | — |
case-17 | fail→pass | 8,038 | 4,424 | -45% | 1 | 1 | 0% | 1,477 | 3,411 | +131% | 0 | 0 | — |
case-18 | fail→pass | 11,239 | 4,263 | -62% | 1 | 1 | 0% | 1,857 | 3,474 | +87% | 0 | 0 | — |
case-19 | pass→pass | 9,630 | 3,304 | -66% | 1 | 1 | 0% | 1,573 | 3,209 | +104% | 0 | 0 | — |
case-20 | fail→pass | 6,636 | 4,134 | -38% | 1 | 1 | 0% | 1,312 | 3,429 | +161% | 0 | 0 | — |
case-21 | fail→pass | 9,818 | 6,412 | -35% | 1 | 1 | 0% | 1,878 | 3,871 | +106% | 0 | 0 | — |
case-22 | fail→pass | 5,051 | 4,637 | -8% | 1 | 1 | 0% | 970 | 3,532 | +264% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +86 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.