Salesforce Knowledge Management REST API — Categories

Salesforce Knowledge Management REST API — Categories. 2 operations. Lead operation: List Data Category Groups. Self-contained Naftiko capability covering one Salesforce Knowledge Management business surface.

Run with Naftiko Salesforce Knowledge ManagementCategories

What You Can Do

GET
Listdatacategorygroups — List Data Category Groups
/v1/support/datacategorygroups
GET
Listdatacategories — List Data Categories
/v1/support/datacategorygroups/{group}/datacategories

MCP Tools

list-data-category-groups

List Data Category Groups

read-only idempotent
list-data-categories

List Data Categories

read-only idempotent

Capability Spec

rest-categories.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce Knowledge Management REST API — Categories
  description: 'Salesforce Knowledge Management REST API — Categories. 2 operations. Lead operation: List Data Category Groups.
    Self-contained Naftiko capability covering one Salesforce Knowledge Management business surface.'
  tags:
  - Salesforce Knowledge Management
  - Categories
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_KNOWLEDGE_MANAGEMENT_API_KEY: SALESFORCE_KNOWLEDGE_MANAGEMENT_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-categories
    baseUri: https://{instance}.salesforce.com/services/data/v59.0
    description: Salesforce Knowledge Management REST API — Categories business capability. Self-contained, no shared references.
    resources:
    - name: support-dataCategoryGroups
      path: /support/dataCategoryGroups
      operations:
      - name: listdatacategorygroups
        method: GET
        description: List Data Category Groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sObjectName
          in: query
          type: string
          description: The SObject type to filter categories for
    - name: support-dataCategoryGroups-group-dataCategories
      path: /support/dataCategoryGroups/{group}/dataCategories
      operations:
      - name: listdatacategories
        method: GET
        description: List Data Categories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: group
          in: path
          type: string
          description: The data category group API name
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_KNOWLEDGE_MANAGEMENT_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-categories-rest
    port: 8080
    description: REST adapter for Salesforce Knowledge Management REST API — Categories. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/support/datacategorygroups
      name: support-datacategorygroups
      description: REST surface for support-dataCategoryGroups.
      operations:
      - method: GET
        name: listdatacategorygroups
        description: List Data Category Groups
        call: rest-categories.listdatacategorygroups
        with:
          sObjectName: rest.sObjectName
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/support/datacategorygroups/{group}/datacategories
      name: support-datacategorygroups-group-datacategories
      description: REST surface for support-dataCategoryGroups-group-dataCategories.
      operations:
      - method: GET
        name: listdatacategories
        description: List Data Categories
        call: rest-categories.listdatacategories
        with:
          group: rest.group
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-categories-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce Knowledge Management REST API — Categories. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-data-category-groups
      description: List Data Category Groups
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-categories.listdatacategorygroups
      with:
        sObjectName: tools.sObjectName
      outputParameters:
      - type: object
        mapping: $.
    - name: list-data-categories
      description: List Data Categories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-categories.listdatacategories
      with:
        group: tools.group
      outputParameters:
      - type: object
        mapping: $.