Create a domain
curl --request POST \
--url https://api.linkutm.com/api/v1/domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "go.acme.com"
}
'import requests
url = "https://api.linkutm.com/api/v1/domains"
payload = { "domain": "go.acme.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: 'go.acme.com'})
};
fetch('https://api.linkutm.com/api/v1/domains', 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.linkutm.com/api/v1/domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain' => 'go.acme.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkutm.com/api/v1/domains"
payload := strings.NewReader("{\n \"domain\": \"go.acme.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.linkutm.com/api/v1/domains")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"go.acme.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkutm.com/api/v1/domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"go.acme.com\"\n}"
response = http.request(request)
puts response.read_body{
"id": "6d40c0a2-5b1e-4f7a-9a43-2f1c8e9b7d10",
"domain": "go.acme.com",
"verified": false,
"primary": false,
"createdAt": "2026-10-02T09:09:35.000Z",
"updatedAt": "2026-10-02T09:09:35.000Z",
"workspaceId": "0b8f3c1e-7d2a-4e6b-9c5d-1a2b3c4d5e6f",
"canDelete": true,
"canUpdate": true,
"status": "pending",
"enabled": true,
"createdById": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"updatedById": null,
"cnameTarget": "cname.linkutm.com"
}{
"statusCode": 400,
"message": [
"Enter a valid domain such as links.example.com"
],
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid or expired API key",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Domain limit reached. Used 3 of 3. Please upgrade your plan.",
"error": "Forbidden"
}{
"statusCode": 409,
"message": "This domain is already in use by another account or workspace",
"error": "Conflict"
}{
"statusCode": 500,
"message": "Internal server error"
}Domains
Create a domain
Create a custom domain for the workspace.
POST
/
domains
Create a domain
curl --request POST \
--url https://api.linkutm.com/api/v1/domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "go.acme.com"
}
'import requests
url = "https://api.linkutm.com/api/v1/domains"
payload = { "domain": "go.acme.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: 'go.acme.com'})
};
fetch('https://api.linkutm.com/api/v1/domains', 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.linkutm.com/api/v1/domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain' => 'go.acme.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkutm.com/api/v1/domains"
payload := strings.NewReader("{\n \"domain\": \"go.acme.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.linkutm.com/api/v1/domains")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"go.acme.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkutm.com/api/v1/domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"go.acme.com\"\n}"
response = http.request(request)
puts response.read_body{
"id": "6d40c0a2-5b1e-4f7a-9a43-2f1c8e9b7d10",
"domain": "go.acme.com",
"verified": false,
"primary": false,
"createdAt": "2026-10-02T09:09:35.000Z",
"updatedAt": "2026-10-02T09:09:35.000Z",
"workspaceId": "0b8f3c1e-7d2a-4e6b-9c5d-1a2b3c4d5e6f",
"canDelete": true,
"canUpdate": true,
"status": "pending",
"enabled": true,
"createdById": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"updatedById": null,
"cnameTarget": "cname.linkutm.com"
}{
"statusCode": 400,
"message": [
"Enter a valid domain such as links.example.com"
],
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid or expired API key",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Domain limit reached. Used 3 of 3. Please upgrade your plan.",
"error": "Forbidden"
}{
"statusCode": 409,
"message": "This domain is already in use by another account or workspace",
"error": "Conflict"
}{
"statusCode": 500,
"message": "Internal server error"
}Authorizations
ApiKeyAuthBearerAuth
Workspace API key, sent as Authorization: Bearer lk_live_….
Body
application/json
Name of the domain, without https:// or a path.
Maximum string length:
253Example:
"go.acme.com"
Response
The domain was created.
Example:
"go.acme.com"
true once the CNAME record has been confirmed.
pending until the CNAME is verified, then active. No other value is used.
Available options:
pending, active Example:
"active"
false when a plan downgrade disabled the domain. Disabled domains do not serve links.
false for system domains.
false for system domains.
null for shared system domains such as telzi.com.
Point the domain's CNAME record here, then verify the domain.
Example:
"cname.linkutm.com"