Skip to main content
Telnyx SIP connections support multiple authentication methods based on network topology and security requirements.

Methods

MethodDescriptionDetails
Credential-basedUsername/password for SIP registrationSee below
IP + TokenX-Telnyx-Token header with IP validationSeparate page
IP + Tech Prefix4-digit prefix prepended to dial stringSeparate page
IP + P-Charge-InfoPhone number in P-Charge-Info headerSee below
FQDNHostname-based inbound routingSee below

Credential-based authentication

Username and password for SIP registration. POST /v2/credential_connections
{
  "connection_name": "my-connection",
  "user_name": "username",
  "password": "secure-password"
}
For WebRTC applications requiring dynamic credentials or JWT tokens, see WebRTC Authentication.

P-Charge-Info authentication

SIP header containing a phone number associated with the connection.
P-Charge-Info: <sip:[email protected]>
Requires E.164 format. The number must be assigned to the connection.

FQDN authentication

Hostname-based inbound routing combined with credentials or IP authentication for outbound.
InboundOutbound
FQDNCredentials
FQDNIP address

Comparison

MethodInboundOutboundDynamic IPStatic IP
Credentials
IP + Tech prefix-
IP + Token-
IP + P-Charge-Info-
FQDN + Credentials
FQDN + IP-