Purchase a dedicated IP
Purchase a dedicated sending IP. Requires a verified, enterprise, or legacy account, and an Idempotency-Key header: a request without the header returns 400 (code 10015) and allocates nothing. Telnyx allocates the next available IP from stock. The optional region and ip_version fields each restrict which stock IP is allocated; they never change the allocated IP’s metadata. An omitted field applies no restriction for that field, and omitting the body applies neither restriction. An unsupported selector value returns 422; a supported value that matches no available IP returns 429 and records the request on the waitlist. Billing: $14/month/IP, charged as a monthly recurring charge (MRC) from purchase. The IP is returned in provisioning status with a Telnyx-managed PTR hostname and carries no mail until you call start_warmup and add it to a pool that routes mail.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const DedicatedIpShow = await client.email.dedicatedIps.create({
'Idempotency-Key': '8e03978e-40d5-43e8-bc93-6894a57f9326',
});
console.log(DedicatedIpShow.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
dedicated_ip_show = client.email.dedicated_ips.create(
idempotency_key="8e03978e-40d5-43e8-bc93-6894a57f9326",
)
print(dedicated_ip_show.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
dedicatedIP, err := client.Email.DedicatedIps.New(
context.TODO(),
telnyx.EmailDedicatedIPNewParams{
IdempotencyKey: "8e03978e-40d5-43e8-bc93-6894a57f9326",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", dedicatedIP.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.email.dedicatedIps.DedicatedIpCreateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
DedicatedIpCreateParams params = DedicatedIpCreateParams.builder()
.idempotencyKey("8e03978e-40d5-43e8-bc93-6894a57f9326")
.build();
var response = client.email().dedicatedIps().create(params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
dedicated_ip_show = telnyx.email.dedicated_ips.create(idempotency_key: "8e03978e-40d5-43e8-bc93-6894a57f9326")
puts(dedicated_ip_show)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$dedicated_ip_show = $client->email->dedicatedIps->create(
idempotencyKey: '8e03978e-40d5-43e8-bc93-6894a57f9326',
);
var_dump($dedicated_ip_show);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx email:dedicated-ips create \
--api-key 'My API Key' \
--idempotency-key 8e03978e-40d5-43e8-bc93-6894a57f9326curl --request POST \
--url https://api.telnyx.com/v2/email/dedicated_ips \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"region": "ewr-nj1",
"ip_version": "ipv4"
}
'{
"data": {
"id": "6a7f9a30-1234-4b5c-8d9e-0f1a2b3c4d5e",
"record_type": "dedicated_ip",
"ip_address": "64.16.239.170",
"ip_version": "ipv4",
"pool_id": null,
"region": "ewr-nj1",
"status": "provisioning",
"warmup": {
"started_at": null,
"progress": 0,
"daily_cap": null,
"paused": false,
"paused_at": null,
"today": null
},
"billing": {
"status": "pending",
"charged": false
},
"provisioning_status": "dns_confirmed",
"provisioning": {
"dns_status": "dns_confirmed",
"ptr_request_state": "confirmed",
"ptr_request_pr_url": null,
"checklist": {
"ptr_requested": true,
"ptr_authored": false,
"ptr_merged": true,
"forward_confirmed": true
}
},
"ptr_hostname": "mta-64-16-239-170.msgtelnyx.com",
"dns_confirmed_at": "2026-10-14T20:12:41.552310Z",
"quarantine_until": null,
"released_at": null,
"suspension_reason": null,
"created_at": "2026-09-30T02:03:09.474123Z",
"updated_at": "2026-10-14T20:30:00.000000Z"
}
}Authorizations
Headers
Required. Opaque, unquoted key for safely retrying the same purchase. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores. Generate a unique UUID v4 for each purchase and reuse it only when retrying that purchase with the same request. A missing header, or an invalid one —including duplicate, empty, malformed, or overlong values—returns 400 with error code 10015. A request already in progress with the same key returns 409; reusing the key with a different request returns 422. Only successful responses are replayed, for up to 24 hours. Do not include sensitive data in the key.
1 - 255^[A-Za-z0-9_-]{1,255}$Body
Optional purchase selectors. Each supplied field restricts which stock IP is allocated; neither field is written to the IP. Omit the body or a field to apply no restriction for it. Other fields are ignored.
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const DedicatedIpShow = await client.email.dedicatedIps.create({
'Idempotency-Key': '8e03978e-40d5-43e8-bc93-6894a57f9326',
});
console.log(DedicatedIpShow.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
dedicated_ip_show = client.email.dedicated_ips.create(
idempotency_key="8e03978e-40d5-43e8-bc93-6894a57f9326",
)
print(dedicated_ip_show.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
dedicatedIP, err := client.Email.DedicatedIps.New(
context.TODO(),
telnyx.EmailDedicatedIPNewParams{
IdempotencyKey: "8e03978e-40d5-43e8-bc93-6894a57f9326",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", dedicatedIP.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.email.dedicatedIps.DedicatedIpCreateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
DedicatedIpCreateParams params = DedicatedIpCreateParams.builder()
.idempotencyKey("8e03978e-40d5-43e8-bc93-6894a57f9326")
.build();
var response = client.email().dedicatedIps().create(params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
dedicated_ip_show = telnyx.email.dedicated_ips.create(idempotency_key: "8e03978e-40d5-43e8-bc93-6894a57f9326")
puts(dedicated_ip_show)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$dedicated_ip_show = $client->email->dedicatedIps->create(
idempotencyKey: '8e03978e-40d5-43e8-bc93-6894a57f9326',
);
var_dump($dedicated_ip_show);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx email:dedicated-ips create \
--api-key 'My API Key' \
--idempotency-key 8e03978e-40d5-43e8-bc93-6894a57f9326curl --request POST \
--url https://api.telnyx.com/v2/email/dedicated_ips \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"region": "ewr-nj1",
"ip_version": "ipv4"
}
'{
"data": {
"id": "6a7f9a30-1234-4b5c-8d9e-0f1a2b3c4d5e",
"record_type": "dedicated_ip",
"ip_address": "64.16.239.170",
"ip_version": "ipv4",
"pool_id": null,
"region": "ewr-nj1",
"status": "provisioning",
"warmup": {
"started_at": null,
"progress": 0,
"daily_cap": null,
"paused": false,
"paused_at": null,
"today": null
},
"billing": {
"status": "pending",
"charged": false
},
"provisioning_status": "dns_confirmed",
"provisioning": {
"dns_status": "dns_confirmed",
"ptr_request_state": "confirmed",
"ptr_request_pr_url": null,
"checklist": {
"ptr_requested": true,
"ptr_authored": false,
"ptr_merged": true,
"forward_confirmed": true
}
},
"ptr_hostname": "mta-64-16-239-170.msgtelnyx.com",
"dns_confirmed_at": "2026-10-14T20:12:41.552310Z",
"quarantine_until": null,
"released_at": null,
"suspension_reason": null,
"created_at": "2026-09-30T02:03:09.474123Z",
"updated_at": "2026-10-14T20:30:00.000000Z"
}
}