Query single names or entire lists of second‑level domains and get instant availability with alternative suggestions.
Create new domains or extend existing ones with transparent pricing.
Move domains individually or in bulk and track each stage.
Update delegation and edit A, AAAA, MX, TXT, CNAME, and other records.
Bring live info on long-running tasks like transfers or large renewals.
Search, register, or renew dozens of domains in one call. Ideal for portfolios with hundreds of names.
Endpoints accept large payloads and return structured JSON responses with predictable codes.
Error messages arrive as JSON objects with clear codes and fields rather than generic HTML pages, making it easy to handle failures.
Bulk search returns close alternatives and trending choices to help with brand protection.
Test your domain operations in a safe environment at no cost.
Receive expiry reminders and query endpoints for registration or transfer status.
Transfer domains from multiple registrars and manage them in one account.
Detailed records of who did what and when, ready for your SIEM.
The API and infrastructure are externally pentested and audited.
Set renewal logic to ensure domains never lapse.
Competitive pricing, strong security, and transparent policies underpin the API. It offers:
Keys tied to whitelisted IPs with signed requests; supports two-factor authentication and locks.
Built on the same platform that powers the SpaceLama domain portal, with DNSSEC and automatic renewal options.
Direct access to technical staff who understand API integrations.
Clear cost per operation and the same transparency found in SpaceLama's pricing.
import requests
# DNS zone details; requires logged-in WHMCS client cookie
url = "https://spacelama.com/spacelama/api/domains/dns/index.php"
params = {"domain": "example.net", "zone_id": 42}
headers = {"Cookie": "PHPSESSID=YOUR_SESSION"} # WHMCS client session cookie
response = requests.get(url, params=params, headers=headers)
response.raise_for_status()
zone_payload = response.json()
// DNS zone GET; sends WHMCS client session cookies on same origin
const params = new URLSearchParams({
domain: "example.net",
zone_id: "42",
});
const baseUrl = "https://spacelama.com/";
const url =
baseUrl + "spacelama/api/domains/dns/index.php?" + params.toString();
const res = await fetch(url, { credentials: "same-origin" });
const zonePayload = await res.json();
using System;
using System.Net.Http;
// DNS zone GET; paste Cookie copied from logged-in WHMCS client browser
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Cookie", "PHPSESSID=YOUR_SESSION");
var url =
"https://spacelama.com/spacelama/api/domains/dns/index.php?domain="
+ Uri.EscapeDataString("example.net")
+ "&zone_id=42";
var response = await client.GetAsync(url);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
// DNS zone GET
HttpClient http = HttpClient.newHttpClient();
URI uri =
URI.create(
"https://spacelama.com/spacelama/api/domains/dns/index.php?domain=example.net&zone_id=42");
HttpRequest req =
HttpRequest.newBuilder(uri)
.header("Cookie", "PHPSESSID=YOUR_SESSION")
.GET()
.build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
<?php
// DNS zone GET; only works with an authenticated WHMCS client session
$url = 'https://spacelama.com/spacelama/api/domains/dns/index.php';
$query = http_build_query([
'domain' => 'example.net',
'zone_id' => 42,
]);
$context =
stream_context_create([
'http' => [
'header' => 'Cookie: PHPSESSID=YOUR_SESSION',
],
]);
$response =
file_get_contents($url . '?' . $query, false, $context);
$data = json_decode($response, true);
require "net/http"
require "uri"
require "json"
# DNS zone GET; Cookie from logged-in WHMCS client session
uri = URI("https://spacelama.com/spacelama/api/domains/dns/index.php")
uri.query =
URI.encode_www_form([["domain", "example.net"],
["zone_id", "42"]])
req = Net::HTTP::Get.new(uri)
req["Cookie"] = "PHPSESSID=YOUR_SESSION"
res =
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") do |http|
http.request(req)
end
data = JSON.parse(res.body)
# DNS zone GET — replace Cookie values from authenticated WHMCS client session
curl -G "https://spacelama.com/spacelama/api/domains/dns/index.php" \
--cookie "PHPSESSID=YOUR_SESSION" \
--data-urlencode "domain=example.net" \
--data-urlencode "zone_id=42"
Use the form below to outline your use case and expected domain volume; no login is required to view docs.
Our team reviews your request, sets up API keys, and configures IP whitelists.
Call the staging environment immediately, then switch to production when ready.
Request an API key, and we’ll send it to your email within 48 hours.
We’ll send your API key to your email within 48 hours. If you don’t receive it by then or experience any issues using it, please contact support.
To get an API key, please sign in to your account or create a new one.