Camunda · Capability

Camunda 8 REST API — Process Definitions

Camunda 8 REST API — Process Definitions. 3 operations. Lead operation: Search process definitions. Self-contained Naftiko capability covering one Camunda business surface.

Run with Naftiko CamundaProcess Definitions

What You Can Do

POST
Searchprocessdefinitions — Search process definitions
/v1/process-definitions/search
GET
Getprocessdefinition — Get process definition
/v1/process-definitions/{processdefinitionkey}
GET
Getprocessdefinitionxml — Get process definition XML
/v1/process-definitions/{processdefinitionkey}/xml

MCP Tools

search-process-definitions

Search process definitions

read-only
get-process-definition

Get process definition

read-only idempotent
get-process-definition-xml

Get process definition XML

read-only idempotent

Capability Spec

8-process-definitions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Camunda 8 REST API — Process Definitions
  description: 'Camunda 8 REST API — Process Definitions. 3 operations. Lead operation: Search process definitions. Self-contained
    Naftiko capability covering one Camunda business surface.'
  tags:
  - Camunda
  - Process Definitions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CAMUNDA_API_KEY: CAMUNDA_API_KEY
capability:
  consumes:
  - type: http
    namespace: 8-process-definitions
    baseUri: ''
    description: Camunda 8 REST API — Process Definitions business capability. Self-contained, no shared references.
    resources:
    - name: process-definitions-search
      path: /process-definitions/search
      operations:
      - name: searchprocessdefinitions
        method: POST
        description: Search process definitions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: process-definitions-processDefinitionKey
      path: /process-definitions/{processDefinitionKey}
      operations:
      - name: getprocessdefinition
        method: GET
        description: Get process definition
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: processDefinitionKey
          in: path
          type: integer
          required: true
    - name: process-definitions-processDefinitionKey-xml
      path: /process-definitions/{processDefinitionKey}/xml
      operations:
      - name: getprocessdefinitionxml
        method: GET
        description: Get process definition XML
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: processDefinitionKey
          in: path
          type: integer
          required: true
    authentication:
      type: bearer
      token: '{{env.CAMUNDA_API_KEY}}'
  exposes:
  - type: rest
    namespace: 8-process-definitions-rest
    port: 8080
    description: REST adapter for Camunda 8 REST API — Process Definitions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/process-definitions/search
      name: process-definitions-search
      description: REST surface for process-definitions-search.
      operations:
      - method: POST
        name: searchprocessdefinitions
        description: Search process definitions
        call: 8-process-definitions.searchprocessdefinitions
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/process-definitions/{processdefinitionkey}
      name: process-definitions-processdefinitionkey
      description: REST surface for process-definitions-processDefinitionKey.
      operations:
      - method: GET
        name: getprocessdefinition
        description: Get process definition
        call: 8-process-definitions.getprocessdefinition
        with:
          processDefinitionKey: rest.processDefinitionKey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/process-definitions/{processdefinitionkey}/xml
      name: process-definitions-processdefinitionkey-xml
      description: REST surface for process-definitions-processDefinitionKey-xml.
      operations:
      - method: GET
        name: getprocessdefinitionxml
        description: Get process definition XML
        call: 8-process-definitions.getprocessdefinitionxml
        with:
          processDefinitionKey: rest.processDefinitionKey
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: 8-process-definitions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Camunda 8 REST API — Process Definitions. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: search-process-definitions
      description: Search process definitions
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: 8-process-definitions.searchprocessdefinitions
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-process-definition
      description: Get process definition
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: 8-process-definitions.getprocessdefinition
      with:
        processDefinitionKey: tools.processDefinitionKey
      outputParameters:
      - type: object
        mapping: $.
    - name: get-process-definition-xml
      description: Get process definition XML
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: 8-process-definitions.getprocessdefinitionxml
      with:
        processDefinitionKey: tools.processDefinitionKey
      outputParameters:
      - type: object
        mapping: $.