LinkedIn · Capability

LinkedIn Marketing Audiences API — DMP Segments

LinkedIn Marketing Audiences API — DMP Segments. 2 operations. Lead operation: LinkedIn Monitor DMP Segment Status. Self-contained Naftiko capability covering one Linkedin business surface.

Run with Naftiko LinkedinDMP Segments

What You Can Do

GET
Getdmpsegments — LinkedIn Monitor DMP Segment Status
/v1/dmpsegments
POST
Createdmpsegment — LinkedIn Create DMP Segment
/v1/dmpsegments

MCP Tools

linkedin-monitor-dmp-segment-status

LinkedIn Monitor DMP Segment Status

read-only idempotent
linkedin-create-dmp-segment

LinkedIn Create DMP Segment

Capability Spec

marketing-audience-dmp-segments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LinkedIn Marketing Audiences API — DMP Segments
  description: 'LinkedIn Marketing Audiences API — DMP Segments. 2 operations. Lead operation: LinkedIn Monitor DMP Segment
    Status. Self-contained Naftiko capability covering one Linkedin business surface.'
  tags:
  - Linkedin
  - DMP Segments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LINKEDIN_API_KEY: LINKEDIN_API_KEY
capability:
  consumes:
  - type: http
    namespace: marketing-audience-dmp-segments
    baseUri: https://api.linkedin.com/rest
    description: LinkedIn Marketing Audiences API — DMP Segments business capability. Self-contained, no shared references.
    resources:
    - name: dmpSegments
      path: /dmpSegments
      operations:
      - name: getdmpsegments
        method: GET
        description: LinkedIn Monitor DMP Segment Status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Restli-Protocol-Version
          in: header
          type: string
          required: true
        - name: LinkedIn-Version
          in: header
          type: string
          required: true
        - name: q
          in: query
          type: string
          description: Query type
          required: true
        - name: account
          in: query
          type: string
          description: Sponsored account URN (URL encoded)
          required: true
        - name: sourcePlatform
          in: query
          type: string
          description: Filter by source platform
      - name: createdmpsegment
        method: POST
        description: LinkedIn Create DMP Segment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Restli-Protocol-Version
          in: header
          type: string
          required: true
        - name: LinkedIn-Version
          in: header
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LINKEDIN_API_KEY}}'
  exposes:
  - type: rest
    namespace: marketing-audience-dmp-segments-rest
    port: 8080
    description: REST adapter for LinkedIn Marketing Audiences API — DMP Segments. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/dmpsegments
      name: dmpsegments
      description: REST surface for dmpSegments.
      operations:
      - method: GET
        name: getdmpsegments
        description: LinkedIn Monitor DMP Segment Status
        call: marketing-audience-dmp-segments.getdmpsegments
        with:
          X-Restli-Protocol-Version: rest.X-Restli-Protocol-Version
          LinkedIn-Version: rest.LinkedIn-Version
          q: rest.q
          account: rest.account
          sourcePlatform: rest.sourcePlatform
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdmpsegment
        description: LinkedIn Create DMP Segment
        call: marketing-audience-dmp-segments.createdmpsegment
        with:
          X-Restli-Protocol-Version: rest.X-Restli-Protocol-Version
          LinkedIn-Version: rest.LinkedIn-Version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: marketing-audience-dmp-segments-mcp
    port: 9090
    transport: http
    description: MCP adapter for LinkedIn Marketing Audiences API — DMP Segments. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: linkedin-monitor-dmp-segment-status
      description: LinkedIn Monitor DMP Segment Status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-audience-dmp-segments.getdmpsegments
      with:
        X-Restli-Protocol-Version: tools.X-Restli-Protocol-Version
        LinkedIn-Version: tools.LinkedIn-Version
        q: tools.q
        account: tools.account
        sourcePlatform: tools.sourcePlatform
      outputParameters:
      - type: object
        mapping: $.
    - name: linkedin-create-dmp-segment
      description: LinkedIn Create DMP Segment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: marketing-audience-dmp-segments.createdmpsegment
      with:
        X-Restli-Protocol-Version: tools.X-Restli-Protocol-Version
        LinkedIn-Version: tools.LinkedIn-Version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.