Install any skill in seconds. Free to start, no credit card required.
Get Started Free →team-telnyx/telnyx-porting-out-javascript
Manage port-out requests when numbers are being ported away from Telnyx. List, view, and update port-out status. This skill provides JavaScript SDK examples.
Passed 22 of 22 test cases with the skill, and 4 of 22 without it.
and 20 more in the full report
18 fixed4 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 18 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write a JS snippet using the Telnyx SDK to update a port-out request status to rejected for request ID '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' with reason 'Invalid account number'.
| Checked | Without skill | With skill |
|---|---|---|
| Calls client.portouts.updateStatus with rejected as the status string parameter. | Missed | Passed |
| Passes an object containing reason set to 'Invalid account number'. | Missed | Passed |
The instructions your model reads when the skill loads.
npm install [email protected]
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.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
try {
const result = await client.messages.send({ to: '+13125550001', from: '+13125550002', text: 'Hello' });
} catch (err) {
if (err instanceof Telnyx.APIConnectionError) {
console.error('Network error — check connectivity and retry');
} else if (err instanceof Telnyx.RateLimitError) {
// 429: rate limited — wait and retry with exponential backoff
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) {
test cases passed, vs 4 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.