Adobe Analytics · Capability

Adobe Analytics API — Segments

Adobe Analytics API — Segments. 5 operations. Lead operation: Adobe Analytics List Segments. Self-contained Naftiko capability covering one Adobe Analytics business surface.

Run with Naftiko Adobe AnalyticsSegments

What You Can Do

GET
Listsegments — Adobe Analytics List Segments
/v1/segments
POST
Createsegment — Adobe Analytics Create a Segment
/v1/segments
GET
Getsegment — Adobe Analytics Get a Segment
/v1/segments/{segmentid}
PUT
Updatesegment — Adobe Analytics Update a Segment
/v1/segments/{segmentid}
DELETE
Deletesegment — Adobe Analytics Delete a Segment
/v1/segments/{segmentid}

MCP Tools

adobe-analytics-list-segments

Adobe Analytics List Segments

read-only idempotent
adobe-analytics-create-segment

Adobe Analytics Create a Segment

adobe-analytics-get-segment

Adobe Analytics Get a Segment

read-only idempotent
adobe-analytics-update-segment

Adobe Analytics Update a Segment

idempotent
adobe-analytics-delete-segment

Adobe Analytics Delete a Segment

idempotent

Capability Spec

adobe-analytics-segments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Adobe Analytics API — Segments
  description: 'Adobe Analytics API — Segments. 5 operations. Lead operation: Adobe Analytics List Segments. Self-contained
    Naftiko capability covering one Adobe Analytics business surface.'
  tags:
  - Adobe Analytics
  - Segments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ADOBE_ANALYTICS_API_KEY: ADOBE_ANALYTICS_API_KEY
capability:
  consumes:
  - type: http
    namespace: adobe-analytics-segments
    baseUri: https://analytics.adobe.io/api/{globalCompanyId}
    description: Adobe Analytics API — Segments business capability. Self-contained, no shared references.
    resources:
    - name: segments
      path: /segments
      operations:
      - name: listsegments
        method: GET
        description: Adobe Analytics List Segments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Maximum number of results per page (max 1000)
        - name: page
          in: query
          type: integer
          description: Page number (zero-indexed)
        - name: expansion
          in: query
          type: string
          description: 'Comma-separated list of additional fields to include. Valid values: reportSuiteName, ownerFullName,
            modified, tags, compatibility, definition, publishingStatus,'
        - name: includeType
          in: query
          type: string
          description: Controls which segments are returned. Use 'all' for all company segments (admin only), 'shared' for
            shared segments, 'templates' for template segments.
      - name: createsegment
        method: POST
        description: Adobe Analytics Create a Segment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: segments-segmentId
      path: /segments/{segmentId}
      operations:
      - name: getsegment
        method: GET
        description: Adobe Analytics Get a Segment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: expansion
          in: query
          type: string
          description: Comma-separated list of additional fields to include
      - name: updatesegment
        method: PUT
        description: Adobe Analytics Update a Segment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletesegment
        method: DELETE
        description: Adobe Analytics Delete a Segment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ADOBE_ANALYTICS_API_KEY}}'
  exposes:
  - type: rest
    namespace: adobe-analytics-segments-rest
    port: 8080
    description: REST adapter for Adobe Analytics API — Segments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/segments
      name: segments
      description: REST surface for segments.
      operations:
      - method: GET
        name: listsegments
        description: Adobe Analytics List Segments
        call: adobe-analytics-segments.listsegments
        with:
          limit: rest.limit
          page: rest.page
          expansion: rest.expansion
          includeType: rest.includeType
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsegment
        description: Adobe Analytics Create a Segment
        call: adobe-analytics-segments.createsegment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/segments/{segmentid}
      name: segments-segmentid
      description: REST surface for segments-segmentId.
      operations:
      - method: GET
        name: getsegment
        description: Adobe Analytics Get a Segment
        call: adobe-analytics-segments.getsegment
        with:
          expansion: rest.expansion
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatesegment
        description: Adobe Analytics Update a Segment
        call: adobe-analytics-segments.updatesegment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesegment
        description: Adobe Analytics Delete a Segment
        call: adobe-analytics-segments.deletesegment
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: adobe-analytics-segments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Adobe Analytics API — Segments. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: adobe-analytics-list-segments
      description: Adobe Analytics List Segments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: adobe-analytics-segments.listsegments
      with:
        limit: tools.limit
        page: tools.page
        expansion: tools.expansion
        includeType: tools.includeType
      outputParameters:
      - type: object
        mapping: $.
    - name: adobe-analytics-create-segment
      description: Adobe Analytics Create a Segment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: adobe-analytics-segments.createsegment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: adobe-analytics-get-segment
      description: Adobe Analytics Get a Segment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: adobe-analytics-segments.getsegment
      with:
        expansion: tools.expansion
      outputParameters:
      - type: object
        mapping: $.
    - name: adobe-analytics-update-segment
      description: Adobe Analytics Update a Segment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: adobe-analytics-segments.updatesegment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: adobe-analytics-delete-segment
      description: Adobe Analytics Delete a Segment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: adobe-analytics-segments.deletesegment
      outputParameters:
      - type: object
        mapping: $.