Coveo · Capability

Coveo Commerce API — Badges

Coveo Commerce API — Badges. 1 operations. Lead operation: Get Badges for a Set of Placement IDs. Self-contained Naftiko capability covering one Coveo business surface.

Run with Naftiko CoveoCommerceBadges

What You Can Do

POST
Badges — Get Badges for a Set of Placement IDs
/v1/organizations/{organizationid}/commerce/v2/tracking-ids/{trackingid}/badges

MCP Tools

get-badges-set-placement-ids

Get Badges for a Set of Placement IDs

read-only

Capability Spec

commerce-badges.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Coveo Commerce API — Badges
  description: 'Coveo Commerce API — Badges. 1 operations. Lead operation: Get Badges for a Set of Placement IDs. Self-contained
    Naftiko capability covering one Coveo business surface.'
  tags:
  - Coveo
  - Commerce
  - Badges
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COVEO_SEARCH_TOKEN: COVEO_SEARCH_TOKEN
capability:
  consumes:
  - type: http
    namespace: commerce-badges
    baseUri: https://platform.cloud.coveo.com
    description: Coveo Commerce API — Badges business capability. Self-contained, no shared references.
    authentication:
      type: bearer
      token: '{{env.COVEO_SEARCH_TOKEN}}'
    resources:
    - name: rest-organizations-organizationId-commerce-v2-tracking-ids-trackingId-badges
      path: /rest/organizations/{organizationId}/commerce/v2/tracking-ids/{trackingId}/badges
      operations:
      - name: badges
        method: POST
        description: Get Badges for a Set of Placement IDs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br />**Example:**
            `acmecorporation8tp8wu3`
          required: true
        - name: trackingId
          in: path
          type: string
          description: The unique identifier of the tracking target.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: commerce-badges-rest
    port: 8080
    description: REST adapter for Coveo Commerce API — Badges. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/organizations/{organizationid}/commerce/v2/tracking-ids/{trackingid}/badges
      name: rest-organizations-organizationid-commerce-v2-tracking-ids-trackingid-badges
      description: REST surface for rest-organizations-organizationId-commerce-v2-tracking-ids-trackingId-badges.
      operations:
      - method: POST
        name: badges
        description: Get Badges for a Set of Placement IDs
        call: commerce-badges.badges
        with:
          organizationId: rest.organizationId
          trackingId: rest.trackingId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: commerce-badges-mcp
    port: 9090
    transport: http
    description: MCP adapter for Coveo Commerce API — Badges. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-badges-set-placement-ids
      description: Get Badges for a Set of Placement IDs
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: commerce-badges.badges
      with:
        organizationId: tools.organizationId
        trackingId: tools.trackingId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.