## List the domains and subdomains available for generation

**get** `/api/v1/datasets/invent/domains`

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

### Returns

- `domains: array of object { code, title, subdomains }`

  - `code: string`

    Code to send in `domains`.

  - `title: string`

    Human-readable name.

  - `subdomains: array of object { code, title }`

    Subdomains available within this domain. Empty when the domain has no subdivision — send the domain code alone.

    - `code: string`

      Qualified code to send in `subdomains` — copy it as-is rather than assembling it.

    - `title: string`

      Human-readable name.

### Example

```http
curl https://api.prod.adaptionlabs.ai/api/v1/datasets/invent/domains \
    -H "Authorization: Bearer $ADAPTION_API_KEY"
```

#### Response

```json
{
  "domains": [
    {
      "code": "medical",
      "title": "Medical",
      "subdomains": [
        {
          "code": "medical.symptoms_diagnosis",
          "title": "Symptoms diagnosis"
        }
      ]
    }
  ]
}
```
