Dotdigital API Preference API

The ApiPreference API from Dotdigital — 14 operation(s) for apipreference.

GitHub OpenAPI
Business capability
Consent & Preferences AE-160.50

Operations 18

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/preferences Get the preference tree · Gets the preferences, as a tree structure #
Ask an LLM
“What preferences are set up in my account?”
“Can I see the preference tree as a hierarchy?”
Tell an agent
Get the preferences tree.
Show all preferences and categories.
POST /v2/preferences Create a preference or category · Creates a new preference or a new preference category #
Ask an LLM
“How do I create a new preference category?”
“Can I create a preference that is not a category?”
Tell an agent
Create a preference category {publicName}.
Create a preference {publicName} under category {categoryId}.
GET /v2/preferences/modified-since/{sinceDate} Get preferences modified since a date · Gets an array of preferences that have been modified since the specified date #
Ask an LLM
“Which preferences changed since a given date?”
“Can I sync preferences modified since a timestamp?”
Tell an agent
Get preferences modified since {sinceDate}.
Sync preference changes since {sinceDate}.
PUT /v2/preferences/{id} Update a preference · Update the preference with the specified Id #
Ask an LLM
“How do I change the name or order of an existing preference?”
“Can I mark a preference as public after creating it?”
Tell an agent
Update preference {id} with name {publicName}.
Set preference {id} to order {order}.
DELETE /v2/preferences/{id} Delete a preference · Deletes the preference with the specified Id #
Ask an LLM
“How do I remove a preference category?”
“Can I delete a preference I no longer use?”
Tell an agent destructive · confirm first
Delete preference {id}.
Remove the preference category {id}.
GET /v2/contacts/with-preference/{preferenceId} List contacts subscribed to a preference · Gets a list of contacts subscribed to the specified preference #
Ask an LLM
“Who is subscribed to a particular preference?”
“Can I get contacts who opted in to one preference?”
Tell an agent
List contacts subscribed to preference {preferenceId}.
Show contacts who opted in to preference {preferenceId} since {minContactId}.
GET /v2/address-books/{bookId}/contacts/with-preference/{preferenceId} List contacts in a list subscribed to a preference · Gets a list of contacts from a given list, subscribed to the specified… #
Ask an LLM
“Which contacts in a specific list subscribed to a preference?”
“Can I see opt-ins to a preference from one address book?”
Tell an agent
List contacts in list {bookId} subscribed to preference {preferenceId}.
Show opt-ins to preference {preferenceId} from list {bookId} since {minContactId}.
PUT /v2/contacts/{contactId}/preferences Set a contact's preferences · Sets the subscribed preferences for a contact #
Ask an LLM
“How do I set a contact's preference selections?”
“Can I update a contact's preferences by contact ID?”
Tell an agent
Set preferences for contact {contactId}.
Update the preference selections of contact {contactId}.
PUT /v2/contact/{contactId}/preferences Set a contact's preferences (legacy path) · Sets the subscribed preferences for a contact #
Ask an LLM
“Is there an older endpoint that sets a contact's preferences by contact ID?”
“Can I use the legacy contact preferences path?”
Tell an agent
Set preferences for contact {contactId} using the legacy path.
Update the preference selections of contact {contactId} via the older endpoint.
PUT /v2/contacts/{contactEmail}/preferences Set a contact's preferences by email · Sets the subscribed preferences for a contact #
Ask an LLM
“How do I set a contact's preferences using their email address?”
“Can I update a contact's preferences by email?”
Tell an agent
Set preferences for contact {contactEmail} by email.
Update the preference selections of {contactEmail}.
GET /v2/contacts/{contactEmail}/preferences Get a contact's preferences · Gets the preferences for the specified contact #
Ask an LLM
“What preferences has a given contact subscribed to?”
“Can I look up a contact's preferences by email?”
Tell an agent
Get preferences for contact {contactEmail}.
Show the preference selections of {contactEmail}.
PUT /v2/contact/{contactEmail}/preferences Update a contact's email preferences by email · Sets the subscribed preferences for a contact #
Ask an LLM
“How do I change a contact's email subscription settings from an email address?”
“Can I update a contact's preference settings by email instead of contact ID?”
Tell an agent
Set the preferences for the contact {contactEmail}.
Update the email subscription list choices for {contactEmail}.
GET /v2/contact/{contactEmail}/preferences Get a contact's email preferences by email · Gets the preferences for the specified contact #
Ask an LLM
“How can I see what emails a contact has opted into by their email address?”
“What preferences are set for a contact selected by email?”
Tell an agent
Get the preferences for the contact {contactEmail}.
Show which email lists {contactEmail} is opted into.
GET /v2/contacts/{contactID}/preferences Get a contact's preferences by numeric contact ID · Gets the preferences for the specified contact #
Ask an LLM
“Which preferences has the contact with a given numeric ID opted into?”
“Can I fetch a contact's preference settings when all I have is their contact ID number?”
Tell an agent
Get the preferences for the contact with numeric ID {contactID}.
Show the preference selections for contact ID {contactID}.
GET /v2/contact/{contactID}/preferences Get a contact's preferences by email address ID · Gets the preferences for the specified contact #
Ask an LLM
“How do I get a contact's email preferences when I have their contact ID by email address?”
“Can I look up a contact's preferences using the email address contact ID?”
Tell an agent
Get the preferences for the contact with email address ID {contactID}.
Show email subscription settings for the contact whose email address ID is {contactID}.
GET /v2/contacts/{contactEmail}/subscriptions Get a contact's subscriptions · Gets the subscriptions for the specified contact #
Ask an LLM
“Which subscriptions does a given contact have?”
“Can I see a contact's subscription history?”
Tell an agent
Get subscriptions for contact {contactEmail}.
Show the subscription history of {contactEmail}.
GET /v2/contacts/with-preference/{preferenceId}/opt-ins-since/{sinceDate} List contacts who opted in to a preference since a date · Gets a list of contacts who have opted in to a preference since the specified… #
Ask an LLM
“Who opted in to a preference since a given date?”
“Can I get new opt-ins to a preference since a timestamp?”
Tell an agent
List contacts who opted in to preference {preferenceId} since {sinceDate}.
Show new opt-ins to preference {preferenceId} from {sinceDate}.
GET /v2/address-books/{bookId}/contacts/with-preference/{preferenceId}/opt-ins-since/{sinceDate} List contacts who opt in to a preference since a date · Gets a list of contacts, from a given list, who have opted in to a preference… #
Ask an LLM
“Which subscribers on my list opted in to a preference after a given date?”
“Can I list who changed their preference opt-ins since a certain date?”
Tell an agent
List contacts in address book {bookId} who opted in to preference {preferenceId} since {sinceDate}.
Show new opt-ins to preference {preferenceId} on list {bookId} since {sinceDate}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dotdigital:dotdigital-apipreference-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dotdigital-apipreference-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: apiconnector.com API Preference API
  version: v2
servers:
- url: https://r1-api.dotdigital.com
tags:
- name: ApiPreference
paths:
  /v2/preferences:
    get:
      tags:
      - ApiPreference
      summary: Gets the preferences, as a tree structure
      operationId: ApiPreference_GetPreferences
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
    post:
      tags:
      - ApiPreference
      summary: Creates a new preference or a new preference category
      operationId: ApiPreference_CreatePreference
      requestBody:
        x-name: preference
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiPreference'
        required: true
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/preferences/modified-since/{sinceDate}:
    get:
      tags:
      - ApiPreference
      summary: Gets an array of preferences that have been modified since the specified date
      operationId: ApiPreference_GetPreferencesSinceDate
      parameters:
      - name: sinceDate
        in: path
        required: true
        schema:
          type: string
          format: date-time
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/preferences/{id}:
    put:
      tags:
      - ApiPreference
      summary: Update the preference with the specified Id
      operationId: ApiPreference_UpdatePreference
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      requestBody:
        x-name: preference
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiPreference'
        required: true
        x-position: 2
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPreference'
    delete:
      tags:
      - ApiPreference
      summary: Deletes the preference with the specified Id
      operationId: ApiPreference_DeletePreference
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/contacts/with-preference/{preferenceId}:
    get:
      tags:
      - ApiPreference
      summary: Gets a list of contacts subscribed to the specified preference
      operationId: ApiPreference_GetContactsWithPreference
      parameters:
      - name: preferenceId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      - name: minContactId
        in: query
        schema:
          type: integer
          format: int32
          default: 0
        x-position: 2
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiContactIdAndEmail'
  /v2/address-books/{bookId}/contacts/with-preference/{preferenceId}:
    get:
      tags:
      - ApiPreference
      summary: Gets a list of contacts from a given list, subscribed to the specified…
      operationId: ApiPreference_GetContactsInAddressBookWithPreference
      parameters:
      - name: bookId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      - name: preferenceId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 2
      - name: minContactId
        in: query
        schema:
          type: integer
          format: int32
          default: 0
        x-position: 3
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiContactIdAndEmail'
  /v2/contacts/{contactId}/preferences:
    put:
      tags:
      - ApiPreference
      summary: Sets the subscribed preferences for a contact
      operationId: ApiPreference_SetPreferencesForContact
      parameters:
      - name: contactId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      requestBody:
        x-name: preferences
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/ApiPreference'
        required: true
        x-position: 2
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/contact/{contactId}/preferences:
    put:
      tags:
      - ApiPreference
      summary: Sets the subscribed preferences for a contact
      operationId: ApiPreference_SetPreferencesForContact2
      parameters:
      - name: contactId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      requestBody:
        x-name: preferences
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/ApiPreference'
        required: true
        x-position: 2
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/contacts/{contactEmail}/preferences:
    put:
      tags:
      - ApiPreference
      summary: Sets the subscribed preferences for a contact
      operationId: ApiPreference_SetPreferencesForContact3
      parameters:
      - name: contactEmail
        in: path
        required: true
        schema:
          type: string
        x-position: 1
      requestBody:
        x-name: preferences
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/ApiPreference'
        required: true
        x-position: 2
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
    get:
      tags:
      - ApiPreference
      summary: Gets the preferences for the specified contact
      operationId: ApiPreference_GetPreferencesForContact
      parameters:
      - name: contactEmail
        in: path
        required: true
        schema:
          type: string
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/contact/{contactEmail}/preferences:
    put:
      tags:
      - ApiPreference
      summary: Sets the subscribed preferences for a contact
      operationId: ApiPreference_SetPreferencesForContact4
      parameters:
      - name: contactEmail
        in: path
        required: true
        schema:
          type: string
        x-position: 1
      requestBody:
        x-name: preferences
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/ApiPreference'
        required: true
        x-position: 2
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
    get:
      tags:
      - ApiPreference
      summary: Gets the preferences for the specified contact
      operationId: ApiPreference_GetPreferencesForContact2
      parameters:
      - name: contactEmail
        in: path
        required: true
        schema:
          type: string
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/contacts/{contactID}/preferences:
    get:
      tags:
      - ApiPreference
      summary: Gets the preferences for the specified contact
      operationId: ApiPreference_GetPreferencesForContact3
      parameters:
      - name: contactID
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/contact/{contactID}/preferences:
    get:
      tags:
      - ApiPreference
      summary: Gets the preferences for the specified contact
      operationId: ApiPreference_GetPreferencesForContact4
      parameters:
      - name: contactID
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/contacts/{contactEmail}/subscriptions:
    get:
      tags:
      - ApiPreference
      summary: Gets the subscriptions for the specified contact
      operationId: ApiPreference_GetSubscriptionsForContact
      parameters:
      - name: contactEmail
        in: path
        required: true
        schema:
          type: string
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /v2/contacts/with-preference/{preferenceId}/opt-ins-since/{sinceDate}:
    get:
      tags:
      - ApiPreference
      summary: Gets a list of contacts who have opted in to a preference since the specified…
      operationId: ApiPreference_GetModifiedPreferenceOptIns
      parameters:
      - name: preferenceId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      - name: sinceDate
        in: path
        required: true
        schema:
          type: string
          format: date-time
        x-position: 2
      - name: minContactId
        in: query
        schema:
          type: integer
          format: int32
          default: 0
        x-position: 3
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiContactWithPreferenceOptIn'
  /v2/address-books/{bookId}/contacts/with-preference/{preferenceId}/opt-ins-since/{sinceDate}:
    get:
      tags:
      - ApiPreference
      summary: Gets a list of contacts, from a given list, who have opted in to a preference…
      operationId: ApiPreference_GetModifiedPreferenceOptInsByAddressBook
      parameters:
      - name: bookId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      - name: preferenceId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 2
      - name: sinceDate
        in: path
        required: true
        schema:
          type: string
          format: date-time
        x-position: 3
      - name: minContactId
        in: query
        schema:
          type: integer
          format: int32
          default: 0
        x-position: 4
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiContactWithPreferenceOptIn'
components:
  schemas:
    ApiContactData:
      type: object
      additionalProperties: false
      properties:
        key:
          type:
          - string
          - 'null'
        value: {}
    ApiContactEmailTypes:
      type: string
      description: ''
      x-enumNames:
      - PlainText
      - Html
      - NotAvailableInThisVersion
      enum:
      - PlainText
      - Html
      - NotAvailableInThisVersion
    ApiContactIdAndEmail:
      type: object
      additionalProperties: false
      properties:
        id:
          type: integer
          format: int32
        email:
          type:
          - string
          - 'null'
    ApiContactOptInTypes:
      type: string
      description: ''
      x-enumNames:
      - Unknown
      - Single
      - Double
      - VerifiedDouble
      - NotAvailableInThisVersion
      enum:
      - Unknown
      - Single
      - Double
      - VerifiedDouble
      - NotAvailableInThisVersion
    ApiContactStatuses:
      type: string
      description: ''
      x-enumNames:
      - Subscribed
      - Unsubscribed
      - SoftBounced
      - HardBounced
      - IspComplained
      - MailBlocked
      - PendingOptIn
      - DirectComplaint
      - Deleted
      - SharedSuppression
      - Suppressed
      - NotAllowed
      - DomainSuppression
      - NoMxRecord
      - NotAvailableInThisVersion
      enum:
      - Subscribed
      - Unsubscribed
      - SoftBounced
      - HardBounced
      - IspComplained
      - MailBlocked
      - PendingOptIn
      - DirectComplaint
      - Deleted
      - SharedSuppression
      - Suppressed
      - NotAllowed
      - DomainSuppression
      - NoMxRecord
      - NotAvailableInThisVersion
    ApiPreference:
      type: object
      additionalProperties: false
      properties:
        id:
          type: integer
          format: int32
        publicName:
          type:
          - string
          - 'null'
        privateName:
          type:
          - string
          - 'null'
        isPreference:
          type: boolean
        order:
          type:
          - string
          - 'null'
        isPublic:
          type: boolean
        categoryId:
          type: integer
          format: int32
        preferenceCount:
          type: integer
          format: int32
        created:
          type: string
          format: date-time
        lastModified:
          type: string
          format: date-time
        isOptedIn:
          type:
          - boolean
          - 'null'
        preferences:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ApiPreference'
    ApiContact:
      type: object
      additionalProperties: false
      required:
      - email
      properties:
        id:
          type: integer
          format: int32
        email:
          type: string
          minLength: 1
        optInType:
          oneOf:
          - $ref: '#/components/schemas/ApiContactOptInTypes'
        emailType:
          oneOf:
          - $ref: '#/components/schemas/ApiContactEmailTypes'
        dataFields:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ApiContactData'
        status:
          $ref: '#/components/schemas/ApiContactStatuses'
    ApiContactWithPreferenceOptIn:
      type: object
      additionalProperties: false
      properties:
        contact:
          oneOf:
          - $ref: '#/components/schemas/ApiContact'
        marketingPreferenceOptIns:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ApiMarketingPreferenceOptIn'
    ApiMarketingPreferenceOptIn:
      type: object
      additionalProperties: false
      properties:
        marketingPreferenceId:
          type: integer
          format: int32
        addressBookId:
          type: integer
          format: int32
        isOptedIn:
          type: boolean
        dateModifed:
          type: string
          format: date-time
x-generator: NSwag v14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))
x-provenance:
  method: harvested
  publisher: Dotdigital
  source: https://r2-api.dotdigital.com/swagger/v1/swagger.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)