List domains

The organization's custom domains, pending and verified.

GET /organizations/{org}/domains

Lists the org’s custom domains, each with the DNS records it needs. The flow is described in Custom domains. Not paginated.

Authorization

Any caller whose token can manage this org. Ownership is not needed: the records are public in DNS anyway.

Path parameters

NameTypeDescription
orgstringThe organization: its id (org_…) or its slug. It has to be an org your token can manage (see Who can call it)

Response

200 OK with an array of domains.

[
  {
    "id": "dom_65f1c2a9e4b0d3f7a1c8e907",
    "hostname": "login.acme.com",
    "status": "pending",
    "verified_at": null,
    "created_at": "2026-10-18T09:12:00.000Z",
    "records": {
      "txt": { "name": "…", "value": "…" },
      "cname": { "name": "login.acme.com", "value": "…" }
    }
  }
]
FieldTypeDescription
idstringdom_…
hostnamestring
statuspending | verified
verified_atISO date | null
created_atISO date
recordsobject{ txt: { name, value }, cname: { name, value } }: the two DNS records to create

Errors

StatuserrorWhen
404not_foundThe org does not exist, or your token cannot manage it

Example

curl https://loginwith.loginwith.dev/organizations/acme/domains \
  -H "Authorization: Bearer $TOKEN"