Domains

List all domains available for creating short links. This includes default, premium, subdomain, and custom domains.

Domain Types

TypeExampleAccess
defaultu2l.aiAll plans
premiumu2.pePro+ only
subdomainmyname.u2l.aiOwner only
customlinks.mysite.comOwner only (must be verified)

Subdomains and custom domains must be set up via the dashboard first. The API does not support adding or verifying new domains — only using existing ones when creating links.

GET/api/v1/domains

List all domains available for creating short links. Aggregates default, premium, subdomain, and verified custom domains.

curl "https://u2l.ai/api/v1/domains" \
  -H "Authorization: Bearer u2l_live_your_api_key"
200 OK
{
  "domains": [
    {
      "domain": "u2l.ai",
      "type": "default",
      "verified": true
    },
    {
      "domain": "u2.pe",
      "type": "premium",
      "verified": true
    },
    {
      "domain": "myname.u2l.ai",
      "type": "subdomain",
      "verified": true
    },
    {
      "domain": "links.mysite.com",
      "type": "custom",
      "verified": true
    }
  ]
}