Dotdigital API Campaign API

The ApiCampaign API from Dotdigital — 11 operation(s) for apicampaign.

GitHub OpenAPI
Business capability
Digital Marketing Management BC-400.60

Operations 13

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/campaigns/{id} Get a campaign by ID · Gets a campaign by ID #
Ask an LLM
“How do I look up a single email campaign by its ID?”
“Can I fetch one campaign's details with its type and tags?”
Tell an agent
Get campaign {id}.
Show me the details of campaign {id}.
PUT /v2/campaigns/{id} Update a campaign's subject and content · Updates a given campaign #
Ask an LLM
“How do I change the subject and sender of an existing campaign?”
“Can I update a campaign's HTML and plain-text content?”
Tell an agent
Update campaign {id} with subject {subject}, from {fromName}, sender {fromAddress}.
Change the HTML and plain-text content of campaign {id} to {htmlContent} and {plainTextContent}.
GET /v2/campaigns List all campaigns · Gets all campaigns #
Ask an LLM
“What campaigns do I have in my account?”
“Can I page through all my campaigns?”
Tell an agent
List all my campaigns.
Show {select} of every campaign, skipping {skip}.
POST /v2/campaigns Create a campaign · Creates a campaign #
Ask an LLM
“How do I create a new email campaign?”
“Can I set a custom reply-to address when creating a campaign?”
Tell an agent
Create a campaign named {name} with subject {subject} from {fromName} using {htmlContent} and {plainTextContent}.
Create a {type} campaign {name} with subject {subject}, from {fromName}, from {fromAddress}, {htmlContent}, {plainTextContent}.
GET /v2/campaigns/filtered List campaigns matching filters · Gets all campaigns (with filters) #
Ask an LLM
“Which campaigns were sent to a particular tag?”
“Can I filter campaigns by status or scheduled date range?”
Tell an agent
List campaigns tagged {tags}.
Show campaigns with status {statuses} sent between {scheduledDateFrom} and {scheduledDateTo}.
GET /v2/campaigns/with-details List campaigns with type and tags · Gets all campaigns with additional information like type #
Ask an LLM
“Can I see each campaign's type and assigned tags?”
“What type is each of my campaigns?”
Tell an agent
List all campaigns with their type and tags.
Show {select} of every campaign with type and tags, skipping {skip}.
GET /v2/address-books/{addressBookId}/campaigns List campaigns sent to a list · Gets any campaigns that have been sent to a list #
Ask an LLM
“Which campaigns have been sent to a particular address book?”
“Can I see the campaigns that reached a list?”
Tell an agent
List campaigns sent to address book {addressBookId}.
Show {select} of campaigns sent to {addressBookId}, skipping {skip}.
GET /v2/campaigns/with-activity-since/{date} List sent campaigns with activity since a date · Gets all sent campaigns, which have had activity (e.g. #
Ask an LLM
“Which sent campaigns have had opens or clicks since a date?”
“Can I find campaigns with activity after a certain date?”
Tell an agent
List sent campaigns with activity since {date}.
Show {select} of campaigns that had activity since {date}, skipping {skip}.
POST /v2/campaigns/split-test Create a split test campaign · Creates a split test campaign #
Ask an LLM
“How do I create a campaign split test?”
“Can I test two subject lines against each other?”
Tell an agent
Create a split test campaign named {name} with subjects {subjects} and plain-text content {plainTextContents}.
Create a split test campaign {name} from {fromNames} with {htmlContents} and {plainTextContents}.
POST /v2/campaigns/{campaignId}/copy Copy a campaign · Copies a given campaign returning the new campaign #
Ask an LLM
“How do I duplicate an existing campaign?”
“Can I copy a campaign and get the new copy back?”
Tell an agent
Copy campaign {campaignId}.
Duplicate campaign {campaignId} and return the new copy.
DELETE /v2/campaigns/{campaignId} Delete a campaign · Deletes a campaign, and any associated reporting data. #
Ask an LLM
“How do I delete a campaign and its reporting data?”
“Can I permanently remove a campaign?”
Tell an agent destructive · confirm first
Delete campaign {campaignId}.
Permanently remove campaign {campaignId} and its reporting.
GET /v2/campaigns/{campaignId}/with-details Get a campaign with type and tags · Gets a campaign by ID with additional information like type and assigned tags #
Ask an LLM
“Can I see one campaign's type and tags?”
“What type is a specific campaign?”
Tell an agent
Get campaign {campaignId} with its type and tags.
Show the type and tags of campaign {campaignId}.
GET /v2/campaigns/{campaignId}/split-test Get a split test's results · Gets the split test results of a given campaign #
Ask an LLM
“Which subject line won my split test?”
“Can I see the split test results of a campaign?”
Tell an agent
Get the split test results of campaign {campaignId}.
Show which subject line performed best in campaign {campaignId}.

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-apicampaign-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-apicampaign-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: apiconnector.com API Campaign API
  version: v2
servers:
- url: https://r1-api.dotdigital.com
tags:
- name: ApiCampaign
paths:
  /v2/campaigns/{id}:
    get:
      tags:
      - ApiCampaign
      summary: Gets a campaign by ID
      operationId: ApiCampaign_GetCampaignById
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCampaign'
    put:
      tags:
      - ApiCampaign
      summary: Updates a given campaign
      operationId: ApiCampaign_UpdateCampaign
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      requestBody:
        x-name: apiCampaign
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiCampaign'
        required: true
        x-position: 2
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCampaign'
  /v2/campaigns:
    get:
      tags:
      - ApiCampaign
      summary: Gets all campaigns
      operationId: ApiCampaign_GetCampaigns
      parameters:
      - name: select
        in: query
        schema:
          type: integer
          format: int32
          default: 1000
        x-position: 1
      - name: skip
        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/ApiCampaign'
    post:
      tags:
      - ApiCampaign
      summary: Creates a campaign
      operationId: ApiCampaign_CreateCampaign
      requestBody:
        x-name: apiCampaign
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiCampaignWithType'
        required: true
        x-position: 1
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCampaignWithType'
  /v2/campaigns/filtered:
    get:
      tags:
      - ApiCampaign
      summary: Gets all campaigns (with filters)
      operationId: ApiCampaign_GetCampaignsWithFilters
      parameters:
      - name: select
        in: query
        schema:
          type: integer
          format: int32
          default: 1000
        x-position: 1
      - name: skip
        in: query
        schema:
          type: integer
          format: int32
          default: 0
        x-position: 2
      - name: ~type
        x-originalName: type
        in: query
        schema:
          type:
          - string
          - 'null'
        x-position: 3
      - name: ~tags
        x-originalName: tags
        in: query
        style: form
        explode: true
        schema:
          type:
          - array
          - 'null'
          items:
            type: string
        x-position: 4
      - name: ~sentDate
        x-originalName: sentDate
        in: query
        schema:
          type:
          - string
          - 'null'
          format: date-time
        x-position: 5
      - name: ~statuses
        x-originalName: statuses
        in: query
        style: form
        explode: true
        schema:
          type:
          - array
          - 'null'
          items:
            type: string
        x-position: 6
      - name: ~scheduledDateFrom
        x-originalName: scheduledDateFrom
        in: query
        schema:
          type:
          - string
          - 'null'
          format: date-time
        x-position: 7
      - name: ~scheduledDateTo
        x-originalName: scheduledDateTo
        in: query
        schema:
          type:
          - string
          - 'null'
          format: date-time
        x-position: 8
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiCampaignExtended'
  /v2/campaigns/with-details:
    get:
      tags:
      - ApiCampaign
      summary: Gets all campaigns with additional information like type
      operationId: ApiCampaign_GetCampaignsWithDetails
      parameters:
      - name: select
        in: query
        schema:
          type: integer
          format: int32
          default: 1000
        x-position: 1
      - name: skip
        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/ApiCampaignDetails'
  /v2/address-books/{addressBookId}/campaigns:
    get:
      tags:
      - ApiCampaign
      summary: Gets any campaigns that have been sent to a list
      operationId: ApiCampaign_GetCampaignsForAddressBook
      parameters:
      - name: addressBookId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      - name: select
        in: query
        schema:
          type: integer
          format: int32
          default: 1000
        x-position: 2
      - name: skip
        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/ApiCampaign'
  /v2/campaigns/with-activity-since/{date}:
    get:
      tags:
      - ApiCampaign
      summary: Gets all sent campaigns, which have had activity (e.g.
      operationId: ApiCampaign_GetSentCampaignsWithActivitySinceDate
      parameters:
      - name: date
        in: path
        required: true
        schema:
          type: string
          format: date-time
        x-position: 1
      - name: select
        in: query
        schema:
          type: integer
          format: int32
          default: 1000
        x-position: 2
      - name: skip
        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/ApiCampaign'
  /v2/campaigns/split-test:
    post:
      tags:
      - ApiCampaign
      summary: Creates a split test campaign
      operationId: ApiCampaign_CreateSplitTestCampaign
      requestBody:
        x-name: apiCampaign
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiSplitTestCampaign'
        required: true
        x-position: 1
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSplitTestCampaign'
  /v2/campaigns/{campaignId}/copy:
    post:
      tags:
      - ApiCampaign
      summary: Copies a given campaign returning the new campaign
      operationId: ApiCampaign_CopyCampaign
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCampaign'
  /v2/campaigns/{campaignId}:
    delete:
      tags:
      - ApiCampaign
      summary: Deletes a campaign, and any associated reporting data.
      operationId: ApiCampaign_DeleteCampaign
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '204':
          description: ''
  /v2/campaigns/{campaignId}/with-details:
    get:
      tags:
      - ApiCampaign
      summary: Gets a campaign by ID with additional information like type and assigned tags
      operationId: ApiCampaign_GetCampaignWithDetails
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCampaignDetails'
  /v2/campaigns/{campaignId}/split-test:
    get:
      tags:
      - ApiCampaign
      summary: Gets the split test results of a given campaign
      operationId: ApiCampaign_GetCampaignSplitTestResults
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCampaignSplitTestResults'
components:
  schemas:
    ApiCampaignDetails:
      type: object
      additionalProperties: false
      required:
      - name
      - subject
      - fromName
      - htmlContent
      - plainTextContent
      properties:
        id:
          type: integer
          format: int32
        name:
          type: string
          minLength: 1
        subject:
          type: string
          minLength: 1
        fromName:
          type: string
          minLength: 1
        fromAddress:
          oneOf:
          - $ref: '#/components/schemas/ApiCampaignFromAddress'
        htmlContent:
          type: string
          minLength: 1
        plainTextContent:
          type: string
          minLength: 1
        replyAction:
          $ref: '#/components/schemas/ApiCampaignReplyActions'
        replyToAddress:
          type:
          - string
          - 'null'
        isSplitTest:
          type: boolean
          readOnly: true
        status:
          readOnly: true
          oneOf:
          - $ref: '#/components/schemas/ApiCampaignStatuses'
        type:
          readOnly: true
          oneOf:
          - $ref: '#/components/schemas/ApiCampaignTypes'
        tags:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ApiCampaignTag'
        splitTestOptions:
          type:
          - array
          - 'null'
          items:
            type: string
        sentDate:
          type: string
          format: date-time
        customReplyToAddress:
          type:
          - string
          - 'null'
    ApiCampaignSplitTestResults:
      type: object
      additionalProperties: false
      properties:
        versions:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ApiSplitTestResult'
        splitTestWinnerMetric:
          $ref: '#/components/schemas/ApiSplitTestMetrics'
    ApiCampaignWithType:
      allOf:
      - $ref: '#/components/schemas/ApiCampaign'
      - type: object
        additionalProperties: false
        properties:
          type:
            readOnly: true
            oneOf:
            - $ref: '#/components/schemas/ApiCampaignTypes'
    ApiCampaignReplyActions:
      type: string
      description: ''
      x-enumNames:
      - Unset
      - WebMailForward
      - Webmail
      - Delete
      - NotAvailableInThisVersion
      enum:
      - Unset
      - WebMailForward
      - Webmail
      - Delete
      - NotAvailableInThisVersion
    ApiCampaignTypes:
      type: string
      description: ''
      x-enumNames:
      - Standard
      - Triggered
      - NotAvailableInThisVersion
      enum:
      - Standard
      - Triggered
      - NotAvailableInThisVersion
    ApiSplitTestCampaign:
      type: object
      additionalProperties: false
      required:
      - name
      - plainTextContents
      properties:
        id:
          type: integer
          format: int32
        name:
          type: string
          maxLength: 255
          minLength: 1
        subjects:
          type:
          - array
          - 'null'
          items:
            type: string
        fromNames:
          type:
          - array
          - 'null'
          items:
            type: string
        fromAddresses:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ApiCampaignFromAddress'
        htmlContents:
          type:
          - array
          - 'null'
          items:
            type: string
        plainTextContents:
          type: array
          items:
            type: string
        replyAction:
          $ref: '#/components/schemas/ApiCampaignReplyActions'
        replyToAddress:
          type:
          - string
          - 'null'
        status:
          readOnly: true
          oneOf:
          - $ref: '#/components/schemas/ApiCampaignStatuses'
        customReplyToAddress:
          type:
          - string
          - 'null'
    ApiCampaignTag:
      type: object
      additionalProperties: false
      properties:
        name:
          type:
          - string
          - 'null'
    ApiSplitTestResult:
      type: object
      additionalProperties: false
      properties:
        subjectLine:
          type:
          - string
          - 'null'
        fromName:
          type:
          - string
          - 'null'
        fromAddress:
          type:
          - string
          - 'null'
        htmlContent:
          type:
          - string
          - 'null'
        plainTextContent:
          type:
          - string
          - 'null'
        version:
          type:
          - string
          - 'null'
        winningVersion:
          type: boolean
        resultsActual:
          type: number
          format: decimal
        resultsPercentage:
          type: number
          format: decimal
    ApiCampaignStatuses:
      type: string
      description: ''
      x-enumNames:
      - Unsent
      - Sending
      - Sent
      - Paused
      - Cancelled
      - RequiresSystemApproval
      - RequiresSMSApproval
      - RequiresWorkflowApproval
      - Triggered
      - NotAvailableInThisVersion
      enum:
      - Unsent
      - Sending
      - Sent
      - Paused
      - Cancelled
      - RequiresSystemApproval
      - RequiresSMSApproval
      - RequiresWorkflowApproval
      - Triggered
      - NotAvailableInThisVersion
    ApiSplitTestMetrics:
      type: string
      description: ''
      x-enumNames:
      - Opens
      - Clicks
      - ROI
      - NotAvailableInThisVersion
      enum:
      - Opens
      - Clicks
      - ROI
      - NotAvailableInThisVersion
    ApiCampaignExtended:
      allOf:
      - $ref: '#/components/schemas/ApiCampaign'
      - type: object
        additionalProperties: false
        properties:
          type:
            type: string
          tags:
            type: array
            items:
              type: string
          sentDate:
            type:
            - string
            - 'null'
            format: date-time
          scheduledDate:
            type:
            - string
            - 'null'
            format: date-time
    ApiCampaign:
      type: object
      additionalProperties: false
      required:
      - name
      - subject
      - fromName
      - htmlContent
      - plainTextContent
      properties:
        id:
          type: integer
          format: int32
        name:
          type: string
          maxLength: 255
          minLength: 1
        subject:
          type: string
          minLength: 1
        fromName:
          type: string
          minLength: 1
        fromAddress:
          oneOf:
          - $ref: '#/components/schemas/ApiCampaignFromAddress'
        htmlContent:
          type: string
          minLength: 1
        plainTextContent:
          type: string
          minLength: 1
        replyAction:
          $ref: '#/components/schemas/ApiCampaignReplyActions'
        replyToAddress:
          type:
          - string
          - 'null'
        isSplitTest:
          type: boolean
          readOnly: true
        status:
          readOnly: true
          oneOf:
          - $ref: '#/components/schemas/ApiCampaignStatuses'
        customReplyToAddress:
          type:
          - string
          - 'null'
    ApiCampaignFromAddress:
      type: object
      additionalProperties: false
      properties:
        id:
          type: integer
          format: int32
        email:
          type:
          - string
          - 'null'
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)