telnyx-ai-assistants-c…
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Send and receive SMS/MMS, handle opt-outs and delivery webhooks. Use for notifications, 2FA, or messaging apps.
Claude Code
$ npx -y skills add team-telnyx/ai --skill telnyx-messaging-java --agent claude-code
Codex
$ npx skills add team-telnyx/ai --skill telnyx-messaging-java -a codex -y
Cursor
$ npx skills add team-telnyx/ai --skill telnyx-messaging-java -a cursor -y
Gemini CLI
$ npx skills add team-telnyx/ai --skill telnyx-messaging-java -a gemini-cli -y
GitHub Copilot
$ npx skills add team-telnyx/ai --skill telnyx-messaging-java -a github-copilot -y
OpenCode
$ npx skills add team-telnyx/ai --skill telnyx-messaging-java -a opencode -y
Windsurf
$ npx skills add team-telnyx/ai --skill telnyx-messaging-java -a windsurf -y
name: telnyx-messaging-java description: >- Send and receive SMS/MMS, handle opt-outs and delivery webhooks. Use for notifications, 2FA, or messaging apps. metadata: author: telnyx product: messaging language: java generated_by: telnyx-openapi-pipeline contract: v2
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
<!-- Maven -->
<dependency>
<groupId>com.telnyx.sdk</groupId>
<artifactId>telnyx</artifactId>
<version>6.95.0</version>
</dependency>
// Gradle
implementation("com.telnyx.sdk:telnyx:6.95.0")import com.telnyx.sdk.client.TelnyxClient; import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient; // fromEnv() reads TELNYX_API_KEY and TELNYX_PUBLIC_KEY (the public key is required for // client.webhooks().unwrap() — webhook verification) TelnyxClient client = TelnyxOkHttpClient.fromEnv();
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:
import com.telnyx.sdk.models.messages.MessageSendParams;
import com.telnyx.sdk.models.messages.MessageSendResponse;
import com.telnyx.sdk.errors.TelnyxServiceException;
try {
MessageSendParams params = MessageSendParams.builder()
.to("+18445550001")
.from("+18005550101")
.text("Hello from Telnyx!")
.build();
MessageSendResponse response = client.messages().send(params);
} catch (TelnyxServiceException e) {
System.err.println("API error " + e.statusCode() + ": " + e.getMessage());
if (e.statusCode() == 422) {
System.err.println("Validation error — check required fields and formats");
} else if (e.statusCode() == 429) {
// Rate limited — wait, then retry the request (bounded exponential backoff)
Thread.sleep(1000);
// ...retry the call here (give up after a few attempts)
}
throw e; // Re-throw: a failed request must never look like success to the caller
}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).
Do not invent Telnyx parameters, enums, response fields, or webhook fields.
Primary outbound messaging flow. Agents need exact request fields and delivery-related response fields.
`client.messages().send()` — `POST /messages`
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `to` | string (E.164) | Yes | Receiving address (+E.164 formatted phone number or short co... | | `from` | string (E.164) | Yes | Sending address (+E.164 formatted phone number, alphanumeric... | | `text` | string | Yes | Message body (i.e., content) as a non-empty string. | | `messagingProfileId` | string (UUID) | No | Unique identifier for a messaging profile. | | `mediaUrls` | array[string] | No | A list of media URLs. | | `webhookUrl` | string (URL) | No | The URL where webhooks related to this message will be sent. | | ... | | | +8 optional params in [references/api-details.md](references/api-details.md) |
import com.telnyx.sdk.models.messages.MessageSendParams;
import com.telnyx.sdk.models.messages.MessageSendResponse;
MessageSendParams params = MessageSendParams.builder()
.to("+18445550001")
.from("+18005550101")
.text("Hello from Telnyx!")
.build();
MessageSendResponse response = client.messages().send(params);Primary response fields:
Common sender variant that requires different request shape.
`client.messages().sendWithAlphanumericSender()` — `POST /messages/alphanumeric_sender_id`
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `from` | string | Yes | A valid alphanumeric sender ID on the user's account. | | `to` | string (E.164) | Yes | Receiving address (+E.164 formatted phone number or short co... | | `text` | string | Yes | The message body. | | `messagingProfileId` | string (UUID) | Yes | The messaging profile ID to use. | | `webhookUrl` | string (URL) | No | Callback URL for delivery status updates. | | `webhookFailoverUrl` | string (URL) | No | Failover callback URL for delivery status updates. | | `useProfileWebhooks` | boolean | No |
This repo is the one-stop shop for AI Agents and AI-first developers building with Telnyx — everything an agent needs to build production-grade applications and manage its account, from signup to funding.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.