---
title: "List domains"
method: GET
path: "/{account}/domains"
tags: ["domains"]
---

# List domains

`GET /{account}/domains`

Lists the domains in the account.

## Path parameters

- `account` integer, required

## Query parameters

- `name_like` string
- `registrant_id` integer
- `sort` 'id:asc' | 'id:desc' | 'name:asc' | 'name:desc' | 'expiration:asc' | 'expiration:desc'

## Response `200`

Domain listing.

- object
  - `data` Domain[], required
    - `id` integer, required
    - `account_id` integer, required
    - `registrant_id` integer, nullable, required
    - `name` string, required
    - `unicode_name` string, required
    - `state` 'hosted' | 'registered' | 'expired', required
    - `auto_renew` boolean, required
    - `private_whois` boolean, required
    - `expires_at` string, date-time, nullable, required — A nullable date-time value. The value can be null, when present the value is formatted according to the ISO 8601 specification.
    - `trustee` boolean, required
    - `expires_on` string, date — A date value formatted as ISO 8601.
    - `created_at` string, date-time, required — A date-time value, representing when the entry was created, formatted as ISO 8601.
    - `updated_at` string, date-time, required — A date-time value, representing when the entry was last updated, formatted as ISO 8601.
  - `pagination` Pagination, required
    - `current_page` integer, required
    - `per_page` integer, required
    - `total_entries` integer, required
    - `total_pages` integer, required

---

[API](https://skmtc.net/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.net/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/revisions/270bb4f6f532/schema)
