Skip to content

Domains

The Domains API allows you to register, configure, and maintain domains programmatically for seamless domain management and integration.

Domain Configuration

To configure a domain, follow these steps:

  1. Navigate to Domain Registrar: Navigate to your domain registrar and configure the nameservers.

  2. Create NS Records: Create NS records pointing to Smart-Link nameservers.

    example.com. 86400 IN NS ns1.smartlink.mk.
    example.com. 86400 IN NS ns2.smartlink.mk.
    example.com. 86400 IN NS ns3.smartlink.mk.
    example.com. 86400 IN NS ns4.smartlink.mk.
  3. Make a Request: Make a request to add the domain to the Smart-Link platform.

    POST https://api.smartlink.mk/domains HTTP/1.1
    Content-Type: application/json
    Authorization: Bearer <YOUR_ACCESS_TOKEN>
    {
    "name": "example.com"
    }

Domain Deletion

To delete a domain, you need to make a DELETE request to the /domains/<DOMAIN> endpoint.

DELETE https://api.smartlink.mk/domains/<DOMAIN> HTTP/1.1
Content-Type: application/json
Authorization: Bearer <YOUR_ACCESS_TOKEN>