team-telnyx/ai/telnyx-voice-java
Claude Code and agent skill by team-telnyx/ai
- community
Checking that the SKILL.md file is still in the repository.
Programmatic call control: make/receive calls, transfer, bridge, gather DTMF, stream audio. Real-time call events via webhooks.
Install
npx vskill@latest install team-telnyx/ai/telnyx-voice-javaSKILL.md
The same SKILL.md was published earlier as team-telnyx/ai/telnyx-voice-java.
Telnyx Voice - Java
Installation
Setup
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:
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
- Phone numbers must be in E.164 format (e.g.,
+13125550001). Include the+prefix and country code. No spaces, dashes, or parentheses. - Pagination: List methods return a page. Use
.autoPager()for automatic iteration:for (var item : page.autoPager()) { ... }. For manual control, use.hasNextPage()and.nextPage().
Operational Caveats
- Call Control is event-driven. After
dial()or an inbound webhook, issue follow-up commands from webhook handlers using thecall_control_idin the event payload. - Outbound and inbound flows are different: outbound calls start with
dial(), while inbound calls must be answered from the incoming webhook before other commands run. - A publicly reachable webhook endpoint is required for real call control. Without it, calls may connect but your application cannot drive the live call state.
Reference Use Rules
Do not invent Telnyx parameters, enums, response fields, or webhook fields.
- If the parameter, enum, or response field you need is not shown inline in this skill, read references/api-details.md before writing code.
- Before using any operation in
## Additional Operations, read the optional-parameters section and the response-schemas section. - Before reading or matching webhook fields beyond the inline examples, read the webhook payload reference.
Core Tasks
Dial an outbound call
Primary voice entrypoint. Agents need the async call-control identifiers returned here.
client.calls().dial() — POST /calls
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
to | string (E.164) | Yes | The DID or SIP URI to dial out to. | |
from | string (E.164) | Yes | The from number to be used as the caller id presented to t... | |
connectionId | string (UUID) | Yes | The ID of the Call Control App (formerly ID of the connectio... | |
timeoutSecs | integer | No | The number of seconds that Telnyx will wait for the call to ... | |
billingGroupId | string (UUID) | No | Use this field to set the Billing Group ID for the call. | |
clientState | string | No | Use this field to add state to every subsequent webhook. | |
| ... | +59 optional params in references/api-details.md |
Primary response fields:
response.data.callControlIdresponse.data.callLegIdresponse.data.callSessionIdresponse.data.isAliveresponse.data.recordingIdresponse.data.callDuration
Answer an inbound call
Primary inbound call-control command.
client.calls().actions().answer() — POST /calls/{call_control_id}/actions/answer
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
callControlId | string (UUID) | Yes | Unique identifier and token for controlling the call | |
billingGroupId | string (UUID) | No | Use this field to set the Billing Group ID for the call. | |
clientState | string | No | Use this field to add state to every subsequent webhook. | |
webhookUrl | string (URL) | No | Use this field to override the URL for which Telnyx will sen... | |
| ... | +29 optional params in references/api-details.md |
Primary response fields:
response.data.resultresponse.data.recordingId
Transfer a live call
Common post-answer control path with downstream webhook implications.
client.calls().actions().transfer() — POST /calls/{call_control_id}/actions/transfer
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
to | string (E.164) | Yes | The DID or SIP URI to dial out to. | |
callControlId | string (UUID) | Yes | Unique identifier and token for controlling the call | |
timeoutSecs | integer | No | The number of seconds that Telnyx will wait for the call to ... | |
clientState | string | No | Use this field to add state to every subsequent webhook. | |
webhookUrl | string (URL) | No | Use this field to override the URL for which Telnyx will sen... | |
| ... | +37 optional params in references/api-details.md |
Primary response fields:
response.data.result
Webhook Verification
Telnyx signs webhooks with Ed25519. Each request includes telnyx-signature-ed25519 and telnyx-timestamp headers. Always verify signatures in production:
Verification needs your account's public key (Mission Control Portal → API Keys → Public Key). The SDK reads it from TELNYX_PUBLIC_KEY (the ## Setup block above passes it explicitly); without it every valid webhook fails verification and the handler below returns 400.
Webhooks
These webhook payload fields are inline because they are part of the primary integration path.
Call Answered
| Field | Type | Description | |
|---|---|---|---|
data.record_type | enum: event | Identifies the type of the resource. | |
data.event_type | enum: call.answered | The type of event being delivered. | |
data.id | uuid | Identifies the type of resource. | |
data.occurred_at | date-time | ISO 8601 datetime of when the event occurred. | |
data.payload.call_control_id | string | Call ID used to issue commands via Call Control API. | |
data.payload.connection_id | string | Call Control App ID (formerly Telnyx connection ID) used in the call. | |
data.payload.call_leg_id | string | ID that is unique to the call and can be used to correlate webhook events. | |
data.payload.call_session_id | string | ID that is unique to the call session and can be used to correlate webhook ev... |
Call Hangup
| Field | Type | Description | |
|---|---|---|---|
data.record_type | enum: event | Identifies the type of the resource. | |
data.event_type | enum: call.hangup | The type of event being delivered. | |
data.id | uuid | Identifies the type of resource. | |
data.occurred_at | date-time | ISO 8601 datetime of when the event occurred. | |
data.payload.call_control_id | string | Call ID used to issue commands via Call Control API. | |
data.payload.connection_id | string | Call Control App ID (formerly Telnyx connection ID) used in the call. | |
data.payload.call_leg_id | string | ID that is unique to the call and can be used to correlate webhook events. | |
data.payload.call_session_id | string | ID that is unique to the call session and can be used to correlate webhook ev... |
Call Initiated
| Field | Type | Description | |
|---|---|---|---|
data.record_type | enum: event | Identifies the type of the resource. | |
data.event_type | enum: call.initiated | The type of event being delivered. | |
data.id | uuid | Identifies the type of resource. | |
data.occurred_at | date-time | ISO 8601 datetime of when the event occurred. | |
data.payload.call_control_id | string | Call ID used to issue commands via Call Control API. | |
data.payload.connection_id | string | Call Control App ID (formerly Telnyx connection ID) used in the call. | |
data.payload.connection_codecs | string | The list of comma-separated codecs enabled for the connection. | |
data.payload.offered_codecs | string | The list of comma-separated codecs offered by caller. |
If you need webhook fields that are not listed inline here, read the webhook payload reference before writing the handler.
Important Supporting Operations
Use these when the core tasks above are close to your flow, but you need a common variation or follow-up step.
Hangup call
End a live call from your webhook-driven control flow.
client.calls().actions().hangup() — POST /calls/{call_control_id}/actions/hangup
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/telnyx-voice-java/SKILL.md
Popularity
- Repository stars
- 220
- Repository forks
- 21
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Sep 2026, 2 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/team-telnyx/ai/telnyx-voice-java)