Cloudjet Domain Reseller API

The Cloudjet Domain Reseller API allows you to integrate domain registration and management directly into your own applications.

All requests are authenticated using your API key and return responses in JSON format.


Base URL

https://store.cloudjet.org/api/domains/reseller.php

Getting an API Key

API access is not enabled by default.

If you'd like to use the Domain Reseller API, please contact us through Live Chat. Once approved, we'll enable API access on your account and provide your API key.


Authentication

Every request must include your API key.

Authorization Header (Recommended)

Authorization: Bearer YOUR_API_KEY

Or as a request parameter

apiToken=YOUR_API_KEY

Response Format

All responses are returned in JSON.

Successful responses:

{
    "success": true
}

Failed responses:

{
    "success": false,
    "error": "Description of the error"
}

Check Domain Availability

Checks whether a domain is available for registration.

Request

Parameter Required Description
action availability
domain Domain name

Example

curl -X POST https://store.cloudjet.org/api/domains/reseller.php \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "action=availability" \
-d "domain=example.com"

Available

{
    "success": true,
    "action": "availability",
    "domain": "example.com",
    "available": true
}

Unavailable

{
    "success": true,
    "action": "availability",
    "domain": "example.com",
    "available": false
}

Register a Domain

Registers a new domain using your available account balance.

Request

Parameter Required Description
action register
domain Domain name
period   Registration period in years (Default: 1)
promocode   Promotional code
ns1   Primary nameserver
ns2   Secondary nameserver
ns3   Optional nameserver
ns4   Optional nameserver
ns5   Optional nameserver

Example

curl -X POST https://store.cloudjet.org/api/domains/reseller.php \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "action=register" \
-d "domain=example.com" \
-d "period=1" \
-d "promocode=SAVE20" \
-d "ns1=ns1.example.com" \
-d "ns2=ns2.example.com"

Response

{
    "success": true,
    "action": "register",
    "domain": "example.com",
    "orderid": 1234,
    "invoiceid": 5678
}

Renew a Domain

Renews one of your existing domains.

Request

Parameter Required Description
action renew
domain Domain name
period   Renewal period in years (Default: 1)
promocode   Promotional code

Example

curl -X POST https://store.cloudjet.org/api/domains/reseller.php \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "action=renew" \
-d "domain=example.com" \
-d "period=2"

Response

{
    "success": true,
    "action": "renew",
    "domain": "example.com"
}

Get Nameservers

Returns the current nameservers configured for one of your domains.

Request

Parameter Required Description
action nameservers_fetch
domain Domain name

Example

curl -X POST https://store.cloudjet.org/api/domains/reseller.php \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "action=nameservers_fetch" \
-d "domain=example.com"

Response

{
    "success": true,
    "domain": "example.com",
    "nameservers": [
        "ns1.example.com",
        "ns2.example.com",
        null,
        null,
        null
    ]
}

Update Nameservers

Updates the nameservers of one of your domains.

Request

Parameter Required Description
action nameservers_update
domain Domain name
ns1 Primary nameserver
ns2 Secondary nameserver
ns3   Optional nameserver
ns4   Optional nameserver
ns5   Optional nameserver

Example

curl -X POST https://store.cloudjet.org/api/domains/reseller.php \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "action=nameservers_update" \
-d "domain=example.com" \
-d "ns1=ns1.example.com" \
-d "ns2=ns2.example.com"

Response

{
    "success": true,
    "action": "nameservers_update",
    "domain": "example.com"
}

Error Responses

Invalid API Key

{
    "success": false,
    "error": "Invalid API token"
}

Invalid Domain

{
    "success": false,
    "error": "Invalid domain"
}

Insufficient Balance

{
    "success": false,
    "error": "Insufficient credit"
}

Domain Not Found

{
    "success": false,
    "error": "Domain not found"
}

Invalid Action

{
    "success": false,
    "error": "Invalid action"
}

Available Actions

Action Description
availability Check whether a domain is available
register Register a new domain
renew Renew an existing domain
nameservers_fetch Retrieve current nameservers
nameservers_update Update nameservers

Notes

  • All requests must be sent over HTTPS.

  • Every request requires a valid API key.

  • Promotional codes are optional for registration and renewal.

  • Registration and renewal requests are automatically charged against your available account balance.

  • If your available balance is insufficient, the request will fail and no changes will be made.

  • Unless specified otherwise, all requests should be sent using the POST method.

  • All responses are returned in JSON format.

Was this answer helpful? 0 Users Found This Useful (0 Votes)