VPS.org API

REST API ကိုစာရွက်စာတမ်းများ

ဒိုမိန်း API ကို

ဒိုမိန်းမှတ်ပုံတင်ခြင်း၊ သက်တမ်းတိုးခြင်းနှင့် ပြင်ဆင်သတ်မှတ်ခြင်းတို့ကို ပရိုဂရမ်ဖြင့် စီမံခန့်ခွဲပါ။

အဆုံးမှတ်များ 6 endpoints
အခြေခံလမ်းကြောင်း /api/v1/domains
ရယူပါ /api/v1/domains/

ဒိုမိန်းအားလုံးကို စာရင်းပြုစုပါ

သင့်အကောင့်အောက်တွင်မှတ်ပုံတင်ထားသောဒေတာဘေ့စ်အားလုံး၏စာရင်းကိုရယူပါ

မေးမြန်းချက် ကန့်သတ်ချက်များ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
status string ဟုတ်ကဲ့ Filter by status: active, pending, expired, locked
search string ဟုတ်ကဲ့ ဒိုမိန်းအမည်များဖြင့် ရှာဖွေပါ

နမူနာတောင်းဆိုချက်

cURL
Python
JavaScript
curl -X GET "https://admin.vps.org/api/v1/domains/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
import requests

url = "https://admin.vps.org/api/v1/domains/"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch('https://admin.vps.org/api/v1/domains/', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  }
});

const domains = await response.json();
console.log(domains);

ဥပမာတုံ့ပြန်မှု

{
  "count": 3,
  "results": [
    {
      "id": 101,
      "domain_name": "example.com",
      "status": "active",
      "registration_date": "2023-01-15T10:30:00Z",
      "expiration_date": "2026-01-15T10:30:00Z",
      "auto_renew": true,
      "locked": true,
      "nameservers": [
        "ns1.vps.org",
        "ns2.vps.org"
      ],
      "privacy_protection": true,
      "dns_managed_by": "vps.org"
    },
    {
      "id": 102,
      "domain_name": "myapp.io",
      "status": "active",
      "registration_date": "2024-06-20T14:15:00Z",
      "expiration_date": "2025-06-20T14:15:00Z",
      "auto_renew": false,
      "locked": false,
      "nameservers": [
        "ns1.cloudflare.com",
        "ns2.cloudflare.com"
      ],
      "privacy_protection": false,
      "dns_managed_by": "external"
    }
  ]
}

တုံ့ပြန်မှု အခြေအနေ ကုဒ်များ

200 ဒိုမိန်းစာရင်းကို အောင်မြင်စွာ ပြန်လည်ရယူပြီးပါပြီ
401 ခွင့်ပြုချက်မရှိပါ - အထောက်အထားစိစစ်ခြင်း တိုကင် မမှန်ကန်ပါ သို့မဟုတ် ပျောက်ဆုံးနေပါသည်
ပို့စ် /api/v1/domains/

ဒိုမိန်းအသစ် မှတ်ပုံတင်ပါ

domain name အသစ်တစ်ခုကိုမှတ်ပုံတင်ပါ။ domain availability ကိုမှတ်ပုံတင်မတိုင်မီစစ်ဆေးသင့်သည်။

ခန္ဓာကိုယ် ကန့်သတ်ချက်များ တောင်းဆိုပါ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
domain_name string ဟုတ်ကဲ့ Domain name to register (e.g., "example.com")
years integer ဟုတ်ကဲ့ Registration period in years (1-10, default: 1)
auto_renew boolean ဟုတ်ကဲ့ Enable automatic renewal (default: true)
privacy_protection boolean ဟုတ်ကဲ့ Enable WHOIS privacy protection (default: true)
nameservers array ဟုတ်ကဲ့ Custom nameservers (default: VPS.org nameservers)

နမူနာတောင်းဆိုချက်

cURL
Python
JavaScript
PHP
curl -X POST "https://admin.vps.org/api/v1/domains/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "domain_name": "mynewdomain.com",
    "years": 2,
    "auto_renew": true,
    "privacy_protection": true
  }'
import requests

url = "https://admin.vps.org/api/v1/domains/"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}
data = {
    "domain_name": "mynewdomain.com",
    "years": 2,
    "auto_renew": True,
    "privacy_protection": True
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch('https://admin.vps.org/api/v1/domains/', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    domain_name: 'mynewdomain.com',
    years: 2,
    auto_renew: true,
    privacy_protection: true
  })
});

const domain = await response.json();
console.log(domain);
$data = [
    'domain_name' => 'mynewdomain.com',
    'years' => 2,
    'auto_renew' => true,
    'privacy_protection' => true
];

$ch = curl_init('https://admin.vps.org/api/v1/domains/');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer YOUR_API_TOKEN',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
$domain = json_decode($response, true);
curl_close($ch);

ဥပမာတုံ့ပြန်မှု

{
  "id": 103,
  "domain_name": "mynewdomain.com",
  "status": "pending",
  "registration_date": "2026-01-16T16:00:00Z",
  "expiration_date": "2028-01-16T16:00:00Z",
  "auto_renew": true,
  "locked": true,
  "nameservers": [
    "ns1.vps.org",
    "ns2.vps.org"
  ],
  "privacy_protection": true,
  "dns_managed_by": "vps.org",
  "total_cost": 24.98,
  "message": "Domain registration initiated. Processing may take 5-10 minutes."
}

တုံ့ပြန်မှု အခြေအနေ ကုဒ်များ

201 Domain registration initiated successfully
400 Bad Request - Invalid domain name or domain already registered
401 ခွင့်ပြုချက်မရှိပါ - အထောက်အထားစိစစ်ခြင်း တိုကင် မမှန်ကန်ပါ သို့မဟုတ် ပျောက်ဆုံးနေပါသည်
402 Payment Required - Insufficient account balance
မှတ်စု - Domain registration is not instant. Status will change from pending to active within 5-10 minutes. You'll receive an email confirmation when registration completes.
ရယူပါ /api/v1/domains/{domain_id}/

ဒိုမိန်းအသေးစိတ်အချက်အလက်များ

တိကျတဲ့ဒေသအကြောင်းအသေးစိတ်အချက်အလက်များကိုရယူပါ.

လမ်းကြောင်း ကန့်သတ်ချက်များ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
domain_id integer ဟုတ်ကဲ့ Unique domain ID

နမူနာတောင်းဆိုချက်

cURL
Python
JavaScript
curl -X GET "https://admin.vps.org/api/v1/domains/101/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
import requests

domain_id = 101
url = f"https://admin.vps.org/api/v1/domains/{domain_id}/"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())
const domainId = 101;
const response = await fetch(`https://admin.vps.org/api/v1/domains/${domainId}/`, {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  }
});

const domain = await response.json();
console.log(domain);

ဥပမာတုံ့ပြန်မှု

{
  "id": 101,
  "domain_name": "example.com",
  "status": "active",
  "registration_date": "2023-01-15T10:30:00Z",
  "expiration_date": "2026-01-15T10:30:00Z",
  "auto_renew": true,
  "locked": true,
  "nameservers": [
    "ns1.vps.org",
    "ns2.vps.org"
  ],
  "privacy_protection": true,
  "dns_managed_by": "vps.org",
  "registrar": "VPS.org",
  "days_until_expiration": 730,
  "whois_info": {
    "registrant": "Privacy Protected",
    "admin_contact": "Privacy Protected",
    "tech_contact": "Privacy Protected",
    "created_date": "2023-01-15",
    "updated_date": "2025-12-20"
  },
  "dns_records_count": 12
}

တုံ့ပြန်မှု အခြေအနေ ကုဒ်များ

200 Successfully retrieved domain details
401 ခွင့်ပြုချက်မရှိပါ - အထောက်အထားစိစစ်ခြင်း တိုကင် မမှန်ကန်ပါ သို့မဟုတ် ပျောက်ဆုံးနေပါသည်
404 ရှာမတွေ့ပါ - ဒိုမိန်း မရှိပါ။
ပစ်ပါ /api/v1/domains/{domain_id}/

ဒေတာဘေ့စ် ပြင်ဆင်ချက်

အဖြစ်အလိုအလျောက်-ပြန်လည်ဆန်းသစ်ခြင်း, nameservers, နှင့်ပုဂ္ဂလိက setting များကိုဒိုမိန်း configuration ကို update လုပ်ပါ။

လမ်းကြောင်း ကန့်သတ်ချက်များ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
domain_id integer ဟုတ်ကဲ့ Unique domain ID

ခန္ဓာကိုယ် ကန့်သတ်ချက်များ တောင်းဆိုပါ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
auto_renew boolean ဟုတ်ကဲ့ Enable or disable automatic renewal
privacy_protection boolean ဟုတ်ကဲ့ Enable or disable WHOIS privacy
nameservers array ဟုတ်ကဲ့ Update nameservers (2-4 nameservers required)
locked boolean ဟုတ်ကဲ့ Lock or unlock domain to prevent transfers

နမူနာတောင်းဆိုချက်

cURL
Python
JavaScript
curl -X PUT "https://admin.vps.org/api/v1/domains/101/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "auto_renew": false,
    "nameservers": [
      "ns1.cloudflare.com",
      "ns2.cloudflare.com"
    ]
  }'
import requests

domain_id = 101
url = f"https://admin.vps.org/api/v1/domains/{domain_id}/"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}
data = {
    "auto_renew": False,
    "nameservers": [
        "ns1.cloudflare.com",
        "ns2.cloudflare.com"
    ]
}

response = requests.put(url, headers=headers, json=data)
print(response.json())
const domainId = 101;
const response = await fetch(`https://admin.vps.org/api/v1/domains/${domainId}/`, {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    auto_renew: false,
    nameservers: [
      'ns1.cloudflare.com',
      'ns2.cloudflare.com'
    ]
  })
});

const domain = await response.json();
console.log(domain);

ဥပမာတုံ့ပြန်မှု

{
  "id": 101,
  "domain_name": "example.com",
  "status": "active",
  "auto_renew": false,
  "nameservers": [
    "ns1.cloudflare.com",
    "ns2.cloudflare.com"
  ],
  "privacy_protection": true,
  "locked": true,
  "message": "Domain settings updated successfully. Nameserver changes may take up to 24 hours to propagate."
}

တုံ့ပြန်မှု အခြေအနေ ကုဒ်များ

200 Domain updated successfully
400 Bad Request - Invalid parameters
401 ခွင့်ပြုချက်မရှိပါ - အထောက်အထားစိစစ်ခြင်း တိုကင် မမှန်ကန်ပါ သို့မဟုတ် ပျောက်ဆုံးနေပါသည်
404 ရှာမတွေ့ပါ - ဒိုမိန်း မရှိပါ။
ဖျက်ရန် /api/v1/domains/{domain_id}/

ဒိုမိန်းကို ဖျက်ပါ

သင့်ရဲ့အကောင့်ကနေဒေတာဘေ့စကိုဖျက်ပစ်ပါ. ဒီဒေတာဘေ့စမှတ်ပုံတင်ခြင်းကိုရပ်ဆိုင်းခြင်းမရှိပါ - ဒါဟာသင့်ရဲ့ VPS.org အကောင့်စီမံခန့်ခွဲမှုမှသာဖယ်ရှားပစ်.

လမ်းကြောင်း ကန့်သတ်ချက်များ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
domain_id integer ဟုတ်ကဲ့ Unique domain ID

နမူနာတောင်းဆိုချက်

cURL
Python
JavaScript
curl -X DELETE "https://admin.vps.org/api/v1/domains/101/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
import requests

domain_id = 101
url = f"https://admin.vps.org/api/v1/domains/{domain_id}/"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}

response = requests.delete(url, headers=headers)
print(response.status_code)
const domainId = 101;
const response = await fetch(`https://admin.vps.org/api/v1/domains/${domainId}/`, {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  }
});

console.log(response.status);

တုံ့ပြန်မှု အခြေအနေ ကုဒ်များ

204 Domain removed from account successfully
401 ခွင့်ပြုချက်မရှိပါ - အထောက်အထားစိစစ်ခြင်း တိုကင် မမှန်ကန်ပါ သို့မဟုတ် ပျောက်ဆုံးနေပါသည်
404 ရှာမတွေ့ပါ - ဒိုမိန်း မရှိပါ။
Important: Deleting a domain from your VPS.org account does NOT cancel the registration. The domain will continue to be registered and will auto-renew if enabled. To cancel a domain registration, disable auto-renewal and let it expire.
ပို့စ် /api/v1/domains/{domain_id}/transfer/

ဒိုမိန်းလွှဲပြောင်း

အခြား registrar မှ VPS.org သို့ domain transfer ကိုစတင်ပါ

လမ်းကြောင်း ကန့်သတ်ချက်များ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
domain_id integer ဟုတ်ကဲ့ Unique domain ID

ခန္ဓာကိုယ် ကန့်သတ်ချက်များ တောင်းဆိုပါ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
auth_code string ဟုတ်ကဲ့ EPP/Authorization code from current registrar
auto_renew boolean ဟုတ်ကဲ့ Enable auto-renewal after transfer (default: true)

နမူနာတောင်းဆိုချက်

cURL
Python
JavaScript
curl -X POST "https://admin.vps.org/api/v1/domains/101/transfer/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "auth_code": "Xy9Kl2Mn#4pQ",
    "auto_renew": true
  }'
import requests

domain_id = 101
url = f"https://admin.vps.org/api/v1/domains/{domain_id}/transfer/"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}
data = {
    "auth_code": "Xy9Kl2Mn#4pQ",
    "auto_renew": True
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
const domainId = 101;
const response = await fetch(`https://admin.vps.org/api/v1/domains/${domainId}/transfer/`, {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    auth_code: 'Xy9Kl2Mn#4pQ',
    auto_renew: true
  })
});

const transfer = await response.json();
console.log(transfer);

ဥပမာတုံ့ပြန်မှု

{
  "id": 101,
  "domain_name": "example.com",
  "transfer_status": "pending",
  "transfer_initiated_at": "2026-01-16T16:30:00Z",
  "estimated_completion": "2026-01-23T16:30:00Z",
  "message": "Domain transfer initiated. You should receive a confirmation email from your current registrar. Transfer typically completes within 5-7 days.",
  "next_steps": [
    "Check email for transfer authorization request",
    "Approve transfer with current registrar",
    "Wait for transfer to complete (5-7 days)",
    "Domain will be automatically renewed for 1 year upon completion"
  ]
}

တုံ့ပြန်မှု အခြေအနေ ကုဒ်များ

200 Transfer initiated successfully
400 Bad Request - Invalid auth code or domain not eligible for transfer
401 ခွင့်ပြုချက်မရှိပါ - အထောက်အထားစိစစ်ခြင်း တိုကင် မမှန်ကန်ပါ သို့မဟုတ် ပျောက်ဆုံးနေပါသည်
404 ရှာမတွေ့ပါ - ဒိုမိန်း မရှိပါ။
402 Payment Required - Insufficient account balance for transfer fee
လွှဲပြောင်းလိုအပ်ချက်များ:
  • domain ကိုလက်ရှိမှတ်ပုံတင်တွင် lock ဖွင့်ထားရမည်
  • Domain အနည်းဆုံးဖြစ်ရမည် 60 ရက်အသက်
  • မှန်ကန်သော EPP / Auth ကိုလိုအပ်သည်
  • WHOIS အီးမေးလ်ကို ခွင့်ပြုချက်အတွက် အသုံးပြုနိုင်ရမည်
  • လွှဲပြောင်းခြင်း 1-နှစ်ထပ်မံတိုးမြှင့်ခြင်းပါဝင်သည် (အခကြေးငွေ ပေးဆောင်ရမည်)

ဒိုမိန်းစျေးနှုန်း

အများဆုံး TLDs

TLD မှတ်ပုံတင်ခြင်း (1 နှစ်) ပြန်လည်ပြင်ဆင်ခြင်း လွှဲပြောင်း
.com $12.99 $12.99 $12.99
.net $14.99 $14.99 $14.99
.org $13.99 $13.99 $13.99
.io $39.99 $39.99 $39.99
.dev $14.99 $14.99 $14.99
.app $14.99 $14.99 $14.99
.co $24.99 $24.99 $24.99

ပါဝင်သော အင်္ဂါရပ်များ

  • ✓ အခမဲ့ WHOIS လုံခြုံရေး
  • ✓ အခမဲ့ DNS ကိုစီမံခန့်ခွဲမှု
  • ✓ အခမဲ့အီးမေးလ် forwarding
  • ✓ အခမဲ့ဒေတာဘေ့စ
  • ✓ အခမဲ့ဒေတာ Lock ကို
  • ✓ 24/7 ထောက်ခံမှု
  • ✓ ရိုးရှင်းသောဒေတာဘေ့စစီမံခန့်ခွဲမှု
  • ✓ အလိုအလျောက် ထပ်မံ ရွေးချယ်မှု

Domain Management အကောင်းဆုံးအလေ့အကျင့်များ

လုံခြုံရေး

တည်ဆောက်ပုံ

လွှဲပြောင်းမှုများ