---
title: "List the domains and subdomains available for generation"
method: GET
path: "/api/v1/datasets/invent/domains"
tags: ["invent"]
---

# List the domains and subdomains available for generation

`GET /api/v1/datasets/invent/domains`

## Request

- The document declares no server URL.
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/adaptionlabs/apis/adaption-api/docs/api/v1/datasets/invent/domains/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns every domain code accepted by `POST /datasets/invent`, each with its subdomain codes. Static — safe to cache.

## Response `200`

- PublicInventDomainsResponseDto
  - `domains` PublicInventDomainDto[], required
    - `code` string, required: Code to send in `domains`.
    - `title` string, required: Human-readable name.
    - `subdomains` PublicInventSubdomainDto[], required: Subdomains available within this domain. Empty when the domain has no subdivision — send the domain code alone.
      - `code` string, required: Qualified code to send in `subdomains` — copy it as-is rather than assembling it.
      - `title` string, required: Human-readable name.

---

[API](https://skmtc.dev/adaptionlabs/apis/adaption-api.md) - [All operations](https://skmtc.dev/adaptionlabs/apis/adaption-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adaptionlabs/apis/adaption-api/revisions/d4cf908c19a0?raw)
