Domains

Manage custom domains for your branded short links. Domains require DNS verification and SSL is provisioned automatically.

This documentation is available in English only.

Endpoints

POST
/v1/domains

Add a custom domain

GET
/v1/domains

List all domains

GET
/v1/domains/:id

Get domain details

DELETE
/v1/domains/:id

Remove a domain

POST
/v1/domains/:id/verify

Trigger DNS verification

Example

curl -X POST https://lnk24.co/api/v1/domains \
  -H "Authorization: Bearer lnk_live_abc123" \
  -H "Content-Type: application/json" \
  -d '{
    "hostname": "go.mycompany.com"
  }'

// Response
{
  "data": {
    "id": "dom_xyz789",
    "hostname": "go.mycompany.com",
    "verified": false,
    "dns_record": {
      "type": "CNAME",
      "name": "go",
      "value": "cname.lnk24.co"
    }
  }
}