Skip to content
SupportLogin

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.

ReturnsExpand Collapse
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.

List the domains and subdomains available for generation

curl https://api.prod.adaptionlabs.ai/api/v1/datasets/invent/domains \
    -H "Authorization: Bearer $ADAPTION_API_KEY"
{
  "domains": [
    {
      "code": "medical",
      "title": "Medical",
      "subdomains": [
        {
          "code": "medical.symptoms_diagnosis",
          "title": "Symptoms diagnosis"
        }
      ]
    }
  ]
}
Returns Examples
{
  "domains": [
    {
      "code": "medical",
      "title": "Medical",
      "subdomains": [
        {
          "code": "medical.symptoms_diagnosis",
          "title": "Symptoms diagnosis"
        }
      ]
    }
  ]
}