api/go/telnyx-fax-go/SKILL.md
Send and receive faxes programmatically. Manage fax applications and media. This skill provides Go SDK examples.
npx skillsauth add team-telnyx/telnyx-toolkit telnyx-fax-goInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
go get github.com/team-telnyx/telnyx-go
import (
"context"
"fmt"
"os"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
client := telnyx.NewClient(
option.WithAPIKey(os.Getenv("TELNYX_API_KEY")),
)
All examples below assume client is already initialized as shown above.
This endpoint returns a list of your Fax Applications inside the 'data' attribute of the response.
GET /fax_applications
page, err := client.FaxApplications.List(context.TODO(), telnyx.FaxApplicationListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
Creates a new Fax Application based on the parameters sent in the request.
POST /fax_applications — Required: application_name, webhook_event_url
faxApplication, err := client.FaxApplications.New(context.TODO(), telnyx.FaxApplicationNewParams{
ApplicationName: "fax-router",
WebhookEventURL: "https://example.com",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", faxApplication.Data)
Return the details of an existing Fax Application inside the 'data' attribute of the response.
GET /fax_applications/{id}
faxApplication, err := client.FaxApplications.Get(context.TODO(), "1293384261075731499")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", faxApplication.Data)
Updates settings of an existing Fax Application based on the parameters of the request.
PATCH /fax_applications/{id} — Required: application_name, webhook_event_url
faxApplication, err := client.FaxApplications.Update(
context.TODO(),
"1293384261075731499",
telnyx.FaxApplicationUpdateParams{
ApplicationName: "fax-router",
WebhookEventURL: "https://example.com",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", faxApplication.Data)
Permanently deletes a Fax Application.
DELETE /fax_applications/{id}
faxApplication, err := client.FaxApplications.Delete(context.TODO(), "1293384261075731499")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", faxApplication.Data)
GET /faxes
page, err := client.Faxes.List(context.TODO(), telnyx.FaxListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
Send a fax.
POST /faxes — Required: connection_id, from, to
fax, err := client.Faxes.New(context.TODO(), telnyx.FaxNewParams{
ConnectionID: "234423",
From: "+13125790015",
To: "+13127367276",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", fax.Data)
GET /faxes/{id}
fax, err := client.Faxes.Get(context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", fax.Data)
DELETE /faxes/{id}
err := client.Faxes.Delete(context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
if err != nil {
panic(err.Error())
}
Cancel the outbound fax that is in one of the following states: queued, media.processed, originated or sending
POST /faxes/{id}/actions/cancel
response, err := client.Faxes.Actions.Cancel(context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
Refreshes the inbound fax's media_url when it has expired
POST /faxes/{id}/actions/refresh
response, err := client.Faxes.Actions.Refresh(context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
The following webhook events are sent to your configured webhook URL.
All webhooks include telnyx-timestamp and telnyx-signature-ed25519 headers for verification (Standard Webhooks compatible).
| Event | Description |
|-------|-------------|
| fax.delivered | Fax Delivered |
| fax.failed | Fax Failed |
| fax.media.processed | Fax Media Processed |
| fax.queued | Fax Queued |
| fax.sending.started | Fax Sending Started |
tools
Build cross-platform VoIP calling apps with React Native using Telnyx Voice SDK. High-level reactive API with automatic lifecycle management, CallKit/ConnectionService integration, and push notifications. Use for mobile VoIP apps with minimal setup.
tools
Build browser-based VoIP calling apps using Telnyx WebRTC JavaScript SDK. Covers authentication, voice calls, events, debugging, call quality metrics, and AI Agent integration. Use for web-based real-time communication.
tools
Build VoIP calling apps on iOS using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, CallKit integration, PushKit/APNS push notifications, call quality metrics, and AI Agent integration. Use when implementing real-time voice communication on iOS.
tools
Build cross-platform VoIP calling apps with Flutter using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, push notifications (FCM + APNS), call quality metrics, and AI Agent integration. Works on Android, iOS, and Web.