Create Number Draft
curl --request POST \
--url https://api.tracklysms.com/api/v2/number-requests/drafts \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.tracklysms.com/api/v2/number-requests/drafts"
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.tracklysms.com/api/v2/number-requests/drafts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tracklysms.com/api/v2/number-requests/drafts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tracklysms.com/api/v2/number-requests/drafts"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tracklysms.com/api/v2/number-requests/drafts")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tracklysms.com/api/v2/number-requests/drafts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyNumber Requests (v2)
Create Number Draft
Save partial number-request details and resume on the same request id.
POST
/
v2
/
number-requests
/
drafts
Create Number Draft
curl --request POST \
--url https://api.tracklysms.com/api/v2/number-requests/drafts \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.tracklysms.com/api/v2/number-requests/drafts"
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.tracklysms.com/api/v2/number-requests/drafts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tracklysms.com/api/v2/number-requests/drafts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tracklysms.com/api/v2/number-requests/drafts"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tracklysms.com/api/v2/number-requests/drafts")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tracklysms.com/api/v2/number-requests/drafts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyCreates an account-owned number request with
status: "draft". A live API key with an associated user is required. This operation does not start business verification, submit to a carrier, send a pending-review notification, or publish a website.
The body must be a JSON object. Send any subset of the request-owned fields documented on Create Number Request, except businessVerification; use the dedicated binding operation for explicit business confirmation. An empty object is accepted. Fields are type-checked and bounded when saved; full required-field and carrier validation runs at submission.
The public API supports customer-hosted opt-in URLs. Complete hosted-site previews and agent-prepared requests through owner review in Trackly.
Recognized US state and Canadian province names are saved as their two-letter codes. Incomplete state input remains editable until submission validation.
Use PATCH Number Request to save partial progress, GET to resume, and Submit Draft when complete.
Request
{
"brandName": "Acme Co",
"listName": "Acme Alerts",
"targetCountries": ["US"],
"phoneNumberType": "toll_free"
}
Response and retry
Returns201 with {"request": {...}}. Store request.id and retain it throughout verification and corrections. Send an Idempotency-Key for safe create retries; reuse with a different body returns 409 idempotency_conflict.
Invalid or unknown fields return a 400 error. Sandbox keys and keys without a user return 403. See the unified flow for verification and submission.