Download OpenAPI specification:Download
Thank you for choosing WithoutDNS! This documentation will guide you through everything you need to know to work with our API.
Purchase Plan With API Enabled
Make sure you have an active service with us. For details, check out our pricing page.
Activate Your API Token
To start using the API, you’ll need to activate an API token in your API Configuration settings.
Once your token is activated, you’re ready to integrate and explore the full capabilities of our API.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://withoutdns.com/api/services',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer your_api_token'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "status": "success",
- "message": null,
- "data": {
- "offset": 0,
- "fullDataLength": 1,
- "records": [
- {
- "id": 2,
- "orderid": 4,
- "regdate": "2024-11-28",
- "domain": "testdomain.com",
- "firstpaymantamount": "1640.00",
- "amount": "0.00",
- "nextduedate": "2024-11-28",
- "name": "Test name",
- "domainPunycode": "testdomain.com",
- "serviceProperties": [ ],
- "subrow": null
}
], - "sort": {
- "by": "",
- "dir": "ASC"
}
}
}
Returns sites table
service-id | integer <int64> ID of service |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://withoutdns.com/api/sites',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer your_api_token',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "status": "success",
- "message": null,
- "data": {
- "offset": 0,
- "fullDataLength": 1,
- "records": [
- {
- "id": 45,
- "target_domain": "domain.com",
- "target_ip": "-",
- "target_ip_raw": null,
- "target_port": "-",
- "target_port_raw": null,
- "source_domain": "eu1.withoutdns.com",
- "path": "domaincom.eu1.withoutdns.com",
- "path_raw": "domaincom",
- "allowed_ips": {
- "name": "without-dns-list-simple"
}, - "allowed_ips_raw": "\"192.168.6.86\"",
- "overlay": "<html>\r\n\r\n<h1> grevreverv</h1>\r\n</html>",
- "valid_until": "<span class='lu-text-black'>Expired</span>",
- "valid_until_raw": "2024-11-28 09:42:49",
- "subrow": null
}
], - "sort": {
- "by": "valid_until",
- "dir": "ASC"
}
}
}
Create site
service-id | integer <int64> |
target_domain required | string Your Site URL |
target_ip | string IP Address |
target_port | string Port |
source_domain | string Server |
path | string Custom URL |
allowed_ips | Array of strings[^(\d{1,3}\.){3}\d{1,3}$] Allowed IP Addresses |
string or string |
{- "service-id": 0,
- "target_domain": "string",
- "target_ip": "string",
- "target_port": "string",
- "source_domain": "string",
- "path": "string",
- "allowed_ips": [
- "string"
], - "valid_until": "Never"
}
{- "status": "success",
- "message": "create_success",
- "data": [ ]
}
Delete site
id | string ID of site that needs to be deleted. For mass delete use coma separeted ids. |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://withoutdns.com/api/sites?id=7',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer your_api_token'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "status": "success",
- "message": "delete_success",
- "data": [ ]
}
Create trial
target_domain required | string Your Site URL |
target_ip | string IP Address |
{- "target_domain": "string",
- "target_ip": "string"
}
{- "status": "success",
- "message": "create_success",
- "data": [ ]
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://withoutdns.com/api/domains',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer your_api_token'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "status": "success",
- "message": null,
- "data": {
- "offset": 0,
- "fullDataLength": 1,
- "records": [
- {
- "id": 3,
- "name": "aaaa.com",
- "clientId": 16,
- "inUse": {
- "name": "without-dns-label"
}, - "inUse_raw": false,
- "deleteDisabled": false,
- "subrow": null
}
], - "sort": {
- "by": "",
- "dir": "ASC"
}
}
}