telnyx-10dlc-javascript

Solid

10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.

AI & Automation 190 stars 20 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
76
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. --> # Telnyx 10DLC - JavaScript ## Installation ```bash npm install telnyx@6.74.2 ``` ## Setup ```javascript import Telnyx from 'telnyx'; const client = new Telnyx({ apiKey: process.env['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: ```javascript try { const telnyxBrand = await client.messaging10dlc.brand.create({ country: 'US', displayName: 'ABC Mobile', email: 'support@example.com', entityType: 'PRIVATE_PROFIT', vertical: 'TECHNOLOGY', }); } catch (err) { if (err instanceof Telnyx.APIConnectionError) { console.error('Network error — check connectivity and retry'); } else if (err instanceof Telnyx.RateLimitError) { const retryAfter = err.headers?.['retry-after'] || 1; await new Promise(r => setTimeout(r, retryAfter * 1000)); } else if (err instanceof Telnyx.APIError) { console.error(`API error ${err.status}: ${err.message}`); if (err.status === 422) { console.error('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...

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