Optimizely · Capability

Optimizely Campaign REST API — Smart Campaigns

Optimizely Campaign REST API — Smart Campaigns. 4 operations. Lead operation: List smart campaigns. Self-contained Naftiko capability covering one Optimizely business surface.

Run with Naftiko OptimizelySmart Campaigns

What You Can Do

GET
Listsmartcampaigns — List smart campaigns
/v1/{clientid}/smartcampaigns
GET
Getsmartcampaign — Get a smart campaign
/v1/{clientid}/smartcampaigns/{campaignid}
POST
Pausesmartcampaign — Pause a smart campaign
/v1/{clientid}/smartcampaigns/{campaignid}/pause
POST
Startsmartcampaign — Start a smart campaign
/v1/{clientid}/smartcampaigns/{campaignid}/start

MCP Tools

list-smart-campaigns

List smart campaigns

read-only idempotent
get-smart-campaign

Get a smart campaign

read-only idempotent
pause-smart-campaign

Pause a smart campaign

start-smart-campaign

Start a smart campaign

Capability Spec

campaign-smart-campaigns.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Optimizely Campaign REST API — Smart Campaigns
  description: 'Optimizely Campaign REST API — Smart Campaigns. 4 operations. Lead operation: List smart campaigns. Self-contained
    Naftiko capability covering one Optimizely business surface.'
  tags:
  - Optimizely
  - Smart Campaigns
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPTIMIZELY_API_KEY: OPTIMIZELY_API_KEY
capability:
  consumes:
  - type: http
    namespace: campaign-smart-campaigns
    baseUri: https://api.campaign.episerver.net/rest
    description: Optimizely Campaign REST API — Smart Campaigns business capability. Self-contained, no shared references.
    resources:
    - name: clientId-smartcampaigns
      path: /{clientId}/smartcampaigns
      operations:
      - name: listsmartcampaigns
        method: GET
        description: List smart campaigns
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: clientId-smartcampaigns-campaignId
      path: /{clientId}/smartcampaigns/{campaignId}
      operations:
      - name: getsmartcampaign
        method: GET
        description: Get a smart campaign
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: clientId-smartcampaigns-campaignId-pause
      path: /{clientId}/smartcampaigns/{campaignId}/pause
      operations:
      - name: pausesmartcampaign
        method: POST
        description: Pause a smart campaign
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: clientId-smartcampaigns-campaignId-start
      path: /{clientId}/smartcampaigns/{campaignId}/start
      operations:
      - name: startsmartcampaign
        method: POST
        description: Start a smart campaign
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.OPTIMIZELY_USER}}'
      password: '{{env.OPTIMIZELY_PASS}}'
  exposes:
  - type: rest
    namespace: campaign-smart-campaigns-rest
    port: 8080
    description: REST adapter for Optimizely Campaign REST API — Smart Campaigns. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/{clientid}/smartcampaigns
      name: clientid-smartcampaigns
      description: REST surface for clientId-smartcampaigns.
      operations:
      - method: GET
        name: listsmartcampaigns
        description: List smart campaigns
        call: campaign-smart-campaigns.listsmartcampaigns
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{clientid}/smartcampaigns/{campaignid}
      name: clientid-smartcampaigns-campaignid
      description: REST surface for clientId-smartcampaigns-campaignId.
      operations:
      - method: GET
        name: getsmartcampaign
        description: Get a smart campaign
        call: campaign-smart-campaigns.getsmartcampaign
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{clientid}/smartcampaigns/{campaignid}/pause
      name: clientid-smartcampaigns-campaignid-pause
      description: REST surface for clientId-smartcampaigns-campaignId-pause.
      operations:
      - method: POST
        name: pausesmartcampaign
        description: Pause a smart campaign
        call: campaign-smart-campaigns.pausesmartcampaign
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{clientid}/smartcampaigns/{campaignid}/start
      name: clientid-smartcampaigns-campaignid-start
      description: REST surface for clientId-smartcampaigns-campaignId-start.
      operations:
      - method: POST
        name: startsmartcampaign
        description: Start a smart campaign
        call: campaign-smart-campaigns.startsmartcampaign
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: campaign-smart-campaigns-mcp
    port: 9090
    transport: http
    description: MCP adapter for Optimizely Campaign REST API — Smart Campaigns. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-smart-campaigns
      description: List smart campaigns
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: campaign-smart-campaigns.listsmartcampaigns
      outputParameters:
      - type: object
        mapping: $.
    - name: get-smart-campaign
      description: Get a smart campaign
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: campaign-smart-campaigns.getsmartcampaign
      outputParameters:
      - type: object
        mapping: $.
    - name: pause-smart-campaign
      description: Pause a smart campaign
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: campaign-smart-campaigns.pausesmartcampaign
      outputParameters:
      - type: object
        mapping: $.
    - name: start-smart-campaign
      description: Start a smart campaign
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: campaign-smart-campaigns.startsmartcampaign
      outputParameters:
      - type: object
        mapping: $.