Coveo · Capability

Coveo Commerce API — Context Mapping Configurations

Coveo Commerce API — Context Mapping Configurations. 5 operations. Lead operation: List Context Mappings. Self-contained Naftiko capability covering one Coveo business surface.

Run with Naftiko CoveoCommerceContext Mapping Configurations

What You Can Do

GET
List — List Context Mappings
/v1/organizations/{organizationid}/commerce/v2/tracking-ids/{trackingid}/context-mappings
POST
Create2 — Creates a Context Mapping
/v1/organizations/{organizationid}/commerce/v2/tracking-ids/{trackingid}/context-mappings
GET
Get — Get Context Mapping
/v1/organizations/{organizationid}/commerce/v2/tracking-ids/{trackingid}/context-mappings/{key}
PUT
Update — Update Context Mapping
/v1/organizations/{organizationid}/commerce/v2/tracking-ids/{trackingid}/context-mappings/{key}
DELETE
Delete — Delete Context Mapping
/v1/organizations/{organizationid}/commerce/v2/tracking-ids/{trackingid}/context-mappings/{key}

MCP Tools

list-context-mappings

List Context Mappings

read-only idempotent
creates-context-mapping

Creates a Context Mapping

get-context-mapping

Get Context Mapping

read-only idempotent
update-context-mapping

Update Context Mapping

idempotent
delete-context-mapping

Delete Context Mapping

idempotent

Capability Spec

commerce-context-mapping-configurations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Coveo Commerce API — Context Mapping Configurations
  description: 'Coveo Commerce API — Context Mapping Configurations. 5 operations. Lead operation: List Context Mappings.
    Self-contained Naftiko capability covering one Coveo business surface.'
  tags:
  - Coveo
  - Commerce
  - Context Mapping Configurations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COVEO_SEARCH_TOKEN: COVEO_SEARCH_TOKEN
capability:
  consumes:
  - type: http
    namespace: commerce-context-mapping-configurations
    baseUri: https://platform.cloud.coveo.com
    description: Coveo Commerce API — Context Mapping Configurations 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-context-ma
      path: /rest/organizations/{organizationId}/commerce/v2/tracking-ids/{trackingId}/context-mappings
      operations:
      - name: list
        method: GET
        description: List Context Mappings
        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: create2
        method: POST
        description: Creates a Context Mapping
        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
    - name: rest-organizations-organizationId-commerce-v2-tracking-ids-trackingId-context-ma
      path: /rest/organizations/{organizationId}/commerce/v2/tracking-ids/{trackingId}/context-mappings/{key}
      operations:
      - name: get
        method: GET
        description: Get Context Mapping
        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: key
          in: path
          type: string
          description: The context mapping key
          required: true
      - name: update
        method: PUT
        description: Update Context Mapping
        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: key
          in: path
          type: string
          description: The context mapping key
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: delete
        method: DELETE
        description: Delete Context Mapping
        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: key
          in: path
          type: string
          description: The context mapping key
          required: true
  exposes:
  - type: rest
    namespace: commerce-context-mapping-configurations-rest
    port: 8080
    description: REST adapter for Coveo Commerce API — Context Mapping Configurations. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/organizations/{organizationid}/commerce/v2/tracking-ids/{trackingid}/context-mappings
      name: rest-organizations-organizationid-commerce-v2-tracking-ids-trackingid-context-ma
      description: REST surface for rest-organizations-organizationId-commerce-v2-tracking-ids-trackingId-context-ma.
      operations:
      - method: GET
        name: list
        description: List Context Mappings
        call: commerce-context-mapping-configurations.list
        with:
          organizationId: rest.organizationId
          trackingId: rest.trackingId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: create2
        description: Creates a Context Mapping
        call: commerce-context-mapping-configurations.create2
        with:
          organizationId: rest.organizationId
          trackingId: rest.trackingId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/{organizationid}/commerce/v2/tracking-ids/{trackingid}/context-mappings/{key}
      name: rest-organizations-organizationid-commerce-v2-tracking-ids-trackingid-context-ma
      description: REST surface for rest-organizations-organizationId-commerce-v2-tracking-ids-trackingId-context-ma.
      operations:
      - method: GET
        name: get
        description: Get Context Mapping
        call: commerce-context-mapping-configurations.get
        with:
          organizationId: rest.organizationId
          trackingId: rest.trackingId
          key: rest.key
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: update
        description: Update Context Mapping
        call: commerce-context-mapping-configurations.update
        with:
          organizationId: rest.organizationId
          trackingId: rest.trackingId
          key: rest.key
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete Context Mapping
        call: commerce-context-mapping-configurations.delete
        with:
          organizationId: rest.organizationId
          trackingId: rest.trackingId
          key: rest.key
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: commerce-context-mapping-configurations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Coveo Commerce API — Context Mapping Configurations. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-context-mappings
      description: List Context Mappings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: commerce-context-mapping-configurations.list
      with:
        organizationId: tools.organizationId
        trackingId: tools.trackingId
      outputParameters:
      - type: object
        mapping: $.
    - name: creates-context-mapping
      description: Creates a Context Mapping
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: commerce-context-mapping-configurations.create2
      with:
        organizationId: tools.organizationId
        trackingId: tools.trackingId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-context-mapping
      description: Get Context Mapping
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: commerce-context-mapping-configurations.get
      with:
        organizationId: tools.organizationId
        trackingId: tools.trackingId
        key: tools.key
      outputParameters:
      - type: object
        mapping: $.
    - name: update-context-mapping
      description: Update Context Mapping
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: commerce-context-mapping-configurations.update
      with:
        organizationId: tools.organizationId
        trackingId: tools.trackingId
        key: tools.key
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-context-mapping
      description: Delete Context Mapping
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: commerce-context-mapping-configurations.delete
      with:
        organizationId: tools.organizationId
        trackingId: tools.trackingId
        key: tools.key
      outputParameters:
      - type: object
        mapping: $.