---
search:
  tags:
    - Domains
    - GET
seo:
  description: >-
    Returns a tenant's custom domains: where each stands and the DNS records it
    needs. Reference for the GET /_luna/domains/{tenant} endpoint in the Luna
    API.
sidebar:
  label: List domains
  badge: GET
title: List domains
type: openapi-operation
---
Returns a tenant's custom domains: where each stands and the DNS records it needs.

`GET /_luna/domains/{tenant}`

**Responses**

- `200` — The domains.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "domains": [
    {
      "name": "string",
      "state": "pending",
      "error": "string",
      "records": [
        {
          "type": "string",
          "name": "string",
          "value": "string",
          "purpose": "string"
        }
      ],
      "createdMs": 0,
      "verifiedMs": 0,
      "notAfter": 0,
      "certificate": "string"
    }
  ],
  "writable": true
}
```
