Contact attributes are distributed into categories. Query the dataSetAttributeCategories object to get the list of all available attribute categories within your audience.

query {
  dataSetAttributeCategories {
    nodes {
      name
      icon
    }
  }
}
{
  "data": {
    "datasetAttributeCategories": {
      "nodes": [
        {
          "name": "Contact information",
          "icon": null
        },
        {
          "name": "Location",
          "icon": null
        },
        {
          "name": "Demographic",
          "icon": null
        }
      ]
    }
  }
}

Fields

The query returns the nodes field with some nested fields

Nested fieldValuesRequired?Definition
nameStringRequiredThe name of a category
iconOptionalThe icon assigned to the category