---
title: "List domains for an environment"
method: GET
path: "/v1/domains"
tags: ["Domains"]
---

# List domains for an environment

`GET /v1/domains`

Returns a paginated list of inbound-email domains in the current environment. Supports cursor pagination and a name contains filter.

## Query parameters

- `after` string
- `before` string
- `limit` number
- `orderDirection` 'ASC' | 'DESC'
- `orderBy` string
- `includeCursor` boolean
- `name` string

## Response `200`

OK

- ListDomainsResponseDto
  - `data` DomainResponseDto[], required — List of returned domains
    - `_id` string, required
    - `name` string, required
    - `status` 'pending' | 'verified', required
    - `mxRecordConfigured` boolean, required
    - `dnsProvider` string
    - `_environmentId` string, required
    - `_organizationId` string, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `expectedDnsRecords` ExpectedDnsRecordDto[]
      - `type` string, required
      - `name` string, required
      - `content` string, required
      - `ttl` string, required
      - `priority` number
    - `data` object — String key-value metadata (max 10 keys, 500 characters total when set via API).
  - `next` string, nullable, required — The cursor for the next page of results, or null if there are no more pages.
  - `previous` string, nullable, required — The cursor for the previous page of results, or null if this is the first page.
  - `totalCount` number, required — The total count of items (up to 50,000)
  - `totalCountCapped` boolean, required — Whether there are more than 50,000 results available

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `409` — Conflict
- `413` — Payload Too Large
- `414` — URI Too Long
- `415` — Unsupported Media Type
- `422` — Unprocessable Entity
- `429` — The client has sent too many requests in a given amount of time.
- `500` — Internal Server Error
- `503` — The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.

---

[API](https://skmtc.net/novu/apis/deprecated-novu-api-use-openapi-json-yaml-instead.md) · [All operations](https://skmtc.net/novu/apis/deprecated-novu-api-use-openapi-json-yaml-instead/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/novu/deprecated-novu-api-use-openapi-json-yaml-instead/versions/986fe259fa85/schema)
