ActiveCampaign · Capability

ActiveCampaign API v3 — Campaigns

ActiveCampaign API v3 — Campaigns. 6 operations. Lead operation: ActiveCampaign Create Campaign. Self-contained Naftiko capability covering one Activecampaign business surface.

Run with Naftiko ActivecampaignCampaigns

What You Can Do

POST
Createcampaign — ActiveCampaign Create Campaign
/v1/campaign
GET
Listallcampaigns — ActiveCampaign List All Campaigns
/v1/campaigns
GET
Retrieveacampaign — ActiveCampaign Retrieve a Campaign
/v1/campaigns/{id}
POST
Duplicatecampaign — ActiveCampaign Duplicate Campaign
/v1/campaigns/{id}/copy
PUT
Editcampaign — ActiveCampaign Edit Campaign
/v1/campaigns/{id}/edit
GET
Retrievelinksassociatedcampaign — ActiveCampaign Retrieve Links Associated to Campaign
/v1/campaigns/{id}/links

MCP Tools

activecampaign-create-campaign

ActiveCampaign Create Campaign

activecampaign-list-all-campaigns

ActiveCampaign List All Campaigns

read-only idempotent
activecampaign-retrieve-campaign

ActiveCampaign Retrieve a Campaign

read-only idempotent
activecampaign-duplicate-campaign

ActiveCampaign Duplicate Campaign

activecampaign-edit-campaign

ActiveCampaign Edit Campaign

idempotent
activecampaign-retrieve-links-associated-campaign

ActiveCampaign Retrieve Links Associated to Campaign

read-only idempotent

Capability Spec

v3-campaigns.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ActiveCampaign API v3 — Campaigns
  description: 'ActiveCampaign API v3 — Campaigns. 6 operations. Lead operation: ActiveCampaign Create Campaign. Self-contained
    Naftiko capability covering one Activecampaign business surface.'
  tags:
  - Activecampaign
  - Campaigns
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ACTIVECAMPAIGN_API_KEY: ACTIVECAMPAIGN_API_KEY
capability:
  consumes:
  - type: http
    namespace: v3-campaigns
    baseUri: https://{yourAccountName}.api-us1.com/api/3
    description: ActiveCampaign API v3 — Campaigns business capability. Self-contained, no shared references.
    resources:
    - name: campaign
      path: /campaign
      operations:
      - name: createcampaign
        method: POST
        description: ActiveCampaign Create Campaign
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: campaigns
      path: /campaigns
      operations:
      - name: listallcampaigns
        method: GET
        description: ActiveCampaign List All Campaigns
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orders[sdate]
          in: query
          type: string
          description: Order campaigns by send date
        - name: orders[ldate]
          in: query
          type: string
          description: Order campaigns by last send date
        - name: filters[seriesid]
          in: query
          type: integer
          description: Filter to return the campaigns from the targeted automationId/seriesIds
    - name: campaigns-id
      path: /campaigns/{id}
      operations:
      - name: retrieveacampaign
        method: GET
        description: ActiveCampaign Retrieve a Campaign
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: ID of campaign to retrieve
          required: true
    - name: campaigns-id-copy
      path: /campaigns/{id}/copy
      operations:
      - name: duplicatecampaign
        method: POST
        description: ActiveCampaign Duplicate Campaign
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: id of the source campaign
          required: true
    - name: campaigns-id-edit
      path: /campaigns/{id}/edit
      operations:
      - name: editcampaign
        method: PUT
        description: ActiveCampaign Edit Campaign
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: campaigns-id-links
      path: /campaigns/{id}/links
      operations:
      - name: retrievelinksassociatedcampaign
        method: GET
        description: ActiveCampaign Retrieve Links Associated to Campaign
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: ID of campaign to retrieve Links for
          required: true
    authentication:
      type: apikey
      key: Api-Token
      value: '{{env.ACTIVECAMPAIGN_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: v3-campaigns-rest
    port: 8080
    description: REST adapter for ActiveCampaign API v3 — Campaigns. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/campaign
      name: campaign
      description: REST surface for campaign.
      operations:
      - method: POST
        name: createcampaign
        description: ActiveCampaign Create Campaign
        call: v3-campaigns.createcampaign
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/campaigns
      name: campaigns
      description: REST surface for campaigns.
      operations:
      - method: GET
        name: listallcampaigns
        description: ActiveCampaign List All Campaigns
        call: v3-campaigns.listallcampaigns
        with:
          orders[sdate]: rest.orders[sdate]
          orders[ldate]: rest.orders[ldate]
          filters[seriesid]: rest.filters[seriesid]
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/campaigns/{id}
      name: campaigns-id
      description: REST surface for campaigns-id.
      operations:
      - method: GET
        name: retrieveacampaign
        description: ActiveCampaign Retrieve a Campaign
        call: v3-campaigns.retrieveacampaign
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/campaigns/{id}/copy
      name: campaigns-id-copy
      description: REST surface for campaigns-id-copy.
      operations:
      - method: POST
        name: duplicatecampaign
        description: ActiveCampaign Duplicate Campaign
        call: v3-campaigns.duplicatecampaign
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/campaigns/{id}/edit
      name: campaigns-id-edit
      description: REST surface for campaigns-id-edit.
      operations:
      - method: PUT
        name: editcampaign
        description: ActiveCampaign Edit Campaign
        call: v3-campaigns.editcampaign
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/campaigns/{id}/links
      name: campaigns-id-links
      description: REST surface for campaigns-id-links.
      operations:
      - method: GET
        name: retrievelinksassociatedcampaign
        description: ActiveCampaign Retrieve Links Associated to Campaign
        call: v3-campaigns.retrievelinksassociatedcampaign
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: v3-campaigns-mcp
    port: 9090
    transport: http
    description: MCP adapter for ActiveCampaign API v3 — Campaigns. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: activecampaign-create-campaign
      description: ActiveCampaign Create Campaign
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: v3-campaigns.createcampaign
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: activecampaign-list-all-campaigns
      description: ActiveCampaign List All Campaigns
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v3-campaigns.listallcampaigns
      with:
        orders[sdate]: tools.orders[sdate]
        orders[ldate]: tools.orders[ldate]
        filters[seriesid]: tools.filters[seriesid]
      outputParameters:
      - type: object
        mapping: $.
    - name: activecampaign-retrieve-campaign
      description: ActiveCampaign Retrieve a Campaign
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v3-campaigns.retrieveacampaign
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: activecampaign-duplicate-campaign
      description: ActiveCampaign Duplicate Campaign
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: v3-campaigns.duplicatecampaign
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: activecampaign-edit-campaign
      description: ActiveCampaign Edit Campaign
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: v3-campaigns.editcampaign
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: activecampaign-retrieve-links-associated-campaign
      description: ActiveCampaign Retrieve Links Associated to Campaign
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v3-campaigns.retrievelinksassociatedcampaign
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.