Submit Number Draft
curl --request POST \
--url https://api.tracklysms.com/api/v2/number-requests/{request_id}/submit \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.tracklysms.com/api/v2/number-requests/{request_id}/submit"
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/{request_id}/submit', 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/{request_id}/submit",
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/{request_id}/submit"
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/{request_id}/submit")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tracklysms.com/api/v2/number-requests/{request_id}/submit")
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)
Submit Number Draft
Submit the saved request after business verification and required request fields are ready.
POST
/
v2
/
number-requests
/
{request_id}
/
submit
Submit Number Draft
curl --request POST \
--url https://api.tracklysms.com/api/v2/number-requests/{request_id}/submit \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.tracklysms.com/api/v2/number-requests/{request_id}/submit"
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/{request_id}/submit', 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/{request_id}/submit",
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/{request_id}/submit"
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/{request_id}/submit")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tracklysms.com/api/v2/number-requests/{request_id}/submit")
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_bodyRequires an account-owned live API key with an associated user. Send an empty JSON object
{}. The request must be a customer-owned editable draft; agent-prepared or hosted-site drafts require owner completion in Trackly.
New submissions require a paid account or an approved billing bypass, plus a current API-key owner with a verified email. Free accounts and owners awaiting email verification can still save and confirm inert drafts. Ineligible submission returns 403 paid_plan_required or 403 email_verification_required; a missing or deleted key owner returns 403 api_key_has_no_owner.
The server validates all request fields and atomically rechecks the exact business binding, current revision, accepted evidence, expiry, and account holds before admitting submission. A successful response is 200 with the same request id and status: "pending".
Repeated submission of that same already-pending request returns 200 without sending duplicate pending-review notifications, even if the plan or owner email status has since changed. The key must still have a current associated user. Other statuses do not silently start a replacement request.
Recovering from an error
Incomplete request fields return422. A business that is pending, expired, stale, unproven, or no longer matches the request returns its specific verification code and message; read the current request and business, complete verification, and reconfirm if required.
An active operation or stale save can return 409. An uncertain submission acknowledgement returns 503 with requestId: fetch that request to reconcile its state, then retry submission on the same id if still a draft. Keep the draft id throughout this process.
The one-shot create endpoint uses the same checks for clients that already have complete data and explicit customer confirmation.