---
updatedAt: 2026-04-21T14:00:49.000Z
agentTools:
  projectIndex: https://marketing.developer.dotdigital.com/llms.txt
---

# Get preferences

Gets all preferences and preference categories

<br />

This operation returns an array of all preferences and preference categories.

Preference categories have the `isPreference` key set to `false`.

Preferences have the `isPreference` key set to `true`.

If no preferences exist, an empty array is returned, otherwise an array, which contains preference objects and preference category objects is returned.

<span class="callRateHigh" />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Preferences and subscriptions",
    "version": "2.0.1",
    "description": "Manage contact subscriptions, suppressions, and marketing preferences. Use this\nAPI to unsubscribe or resubscribe contacts (with or without a challenge email),\nbulk-suppress contacts, and query suppressed or unsubscribed contacts since a\ngiven date. Also provides full CRUD for preference categories and individual\npreferences, and endpoints to get or set the preference opt-in status for a\nspecific contact."
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "x-samples-languages": [
    "curl",
    "csharp",
    "java",
    "javascript",
    "node",
    "python",
    "php",
    "ruby"
  ],
  "externalDocs": {
    "description": "Learn more about Dotdigital APIs",
    "url": "https://developer.dotdigital.com"
  },
  "servers": [
    {
      "url": "https://{region}-api.dotdigital.com",
      "variables": {
        "region": {
          "default": "r1",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "description": "The Dotdigital region id your account belongs to"
        }
      }
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "paths": {
    "/v2/preferences": {
      "parameters": [
        {
          "in": "header",
          "name": "x-ddg-integration-token",
          "required": false,
          "description": "If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.",
          "schema": {
            "type": "string",
            "pattern": "/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/",
            "example": "5a96bc79-19a7-4544-973b-e2da0c9136f9"
          }
        }
      ],
      "get": {
        "summary": "Get preferences",
        "deprecated": false,
        "description": "Gets all preferences and preference categories",
        "operationId": "get-preferences",
        "tags": [
          "Preferences and subscriptions"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "default": 0,
                        "examples": [
                          8
                        ]
                      },
                      "publicName": {
                        "type": "string",
                        "examples": [
                          "Preferred contact method"
                        ]
                      },
                      "privateName": {
                        "type": "string",
                        "examples": [
                          "Preferred contact method"
                        ]
                      },
                      "isPreference": {
                        "type": "boolean",
                        "default": true,
                        "examples": [
                          false
                        ]
                      },
                      "order": {
                        "type": "string",
                        "examples": [
                          "0"
                        ]
                      },
                      "isPublic": {
                        "type": "boolean",
                        "default": true,
                        "examples": [
                          true
                        ]
                      },
                      "categoryId": {
                        "type": "integer",
                        "default": 0,
                        "examples": [
                          0
                        ]
                      },
                      "preferenceCount": {
                        "type": "integer",
                        "default": 0,
                        "examples": [
                          2
                        ]
                      },
                      "created": {
                        "type": "string",
                        "examples": [
                          "2020-01-01 09:40:18.527000+00:00"
                        ]
                      },
                      "lastModified": {
                        "type": "string",
                        "examples": [
                          "2020-01-01 09:40:18.527000+00:00"
                        ]
                      },
                      "preferences": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "default": 0,
                              "examples": [
                                9
                              ]
                            },
                            "publicName": {
                              "type": "string",
                              "examples": [
                                "Email"
                              ]
                            },
                            "privateName": {
                              "type": "string",
                              "examples": [
                                "Email"
                              ]
                            },
                            "isPreference": {
                              "type": "boolean",
                              "default": true,
                              "examples": [
                                true
                              ]
                            },
                            "order": {
                              "type": "string",
                              "examples": [
                                "0"
                              ]
                            },
                            "isPublic": {
                              "type": "boolean",
                              "default": true,
                              "examples": [
                                true
                              ]
                            },
                            "categoryId": {
                              "type": "integer",
                              "default": 0,
                              "examples": [
                                8
                              ]
                            },
                            "preferenceCount": {
                              "type": "integer",
                              "default": 0,
                              "examples": [
                                0
                              ]
                            },
                            "created": {
                              "type": "string",
                              "examples": [
                                "2020-01-01 09:40:18.527000+00:00"
                              ]
                            },
                            "lastModified": {
                              "type": "string",
                              "examples": [
                                "2020-01-01 09:40:18.527000+00:00"
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "summary": "Result",
                    "value": [
                      {
                        "id": 8,
                        "publicName": "Preferred contact method",
                        "privateName": "Preferred contact method",
                        "isPreference": false,
                        "order": "0",
                        "isPublic": true,
                        "categoryId": 0,
                        "preferenceCount": 2,
                        "created": "2020-01-01 09:40:18.527000+00:00",
                        "lastModified": "2020-01-01 09:40:18.527000+00:00",
                        "preferences": [
                          {
                            "id": 9,
                            "publicName": "Email",
                            "privateName": "Email",
                            "isPreference": true,
                            "order": "0",
                            "isPublic": true,
                            "categoryId": 8,
                            "preferenceCount": 0,
                            "created": "2020-01-01 09:40:18.527000+00:00",
                            "lastModified": "2020-01-01 09:40:18.527000+00:00"
                          },
                          {
                            "id": 10,
                            "publicName": "Push notifications",
                            "privateName": "Push notifications",
                            "isPreference": true,
                            "order": "1",
                            "isPublic": true,
                            "categoryId": 8,
                            "preferenceCount": 0,
                            "created": "2020-01-01 09:40:18.527000+00:00",
                            "lastModified": "2020-01-01 09:40:18.527000+00:00"
                          }
                        ]
                      },
                      {
                        "id": 21,
                        "publicName": "Football",
                        "privateName": "Football",
                        "isPreference": true,
                        "order": "2",
                        "isPublic": true,
                        "categoryId": 0,
                        "preferenceCount": 0,
                        "created": "2020-01-01 09:40:18.527000+00:00",
                        "lastModified": "2020-01-01 09:40:18.527000+00:00"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```

# Sibling pages

* [Unsubscribe contact](https://marketing.developer.dotdigital.com/reference/unsubscribe-contact.md)
* [Bulk suppress contacts](https://marketing.developer.dotdigital.com/reference/bulk-suppress-contacts.md)
* [Resubscribe contact](https://marketing.developer.dotdigital.com/reference/resubscribe-contact.md)
* [Resubscribe contact with no challenge](https://marketing.developer.dotdigital.com/reference/resubscribe-contact-with-no-challenge.md)
* [Get suppressed contacts since date](https://marketing.developer.dotdigital.com/reference/get-suppressed-contacts-since-date.md)
* [Get subscriptions for contact](https://marketing.developer.dotdigital.com/reference/get-subscriptions-for-contact.md)
* [Get unsubscribed contacts since date](https://marketing.developer.dotdigital.com/reference/get-unsubscribed-contacts-since-date.md)
* [Create preference](https://marketing.developer.dotdigital.com/reference/create-preference.md)
* [Update preference](https://marketing.developer.dotdigital.com/reference/update-preference.md)
* [Get modified preferences since date](https://marketing.developer.dotdigital.com/reference/get-modified-preferences-since-date.md)
* [Delete preference](https://marketing.developer.dotdigital.com/reference/delete-preference.md)
* [Set preferences for contact](https://marketing.developer.dotdigital.com/reference/set-preferences-for-contact.md)
* [Get preferences for contact](https://marketing.developer.dotdigital.com/reference/get-preferences-for-contact.md)
* [Get contacts opted into a preference and an address book](https://marketing.developer.dotdigital.com/reference/get-contacts-opted-into-a-preference-and-an-address-book.md)
* [Get contacts opted into a preference](https://marketing.developer.dotdigital.com/reference/get-contacts-opted-into-a-preference.md)
* [Get contacts with modified preference opt-in since date](https://marketing.developer.dotdigital.com/reference/get-contacts-with-modified-preference-opt-in-since-date.md)
* [Get contacts with modified preference opt-in in address book since date](https://marketing.developer.dotdigital.com/reference/get-contacts-with-modified-preference-opt-in-in-address-book-since-date.md)