Close · Capability

API Endpoints — subpackage_pipelines

API Endpoints — subpackage_pipelines. 4 operations. Lead operation: List Pipelines for your organization. Self-contained Naftiko capability covering one Close business surface.

Run with Naftiko Closesubpackage_pipelines

What You Can Do

GET
List — List Pipelines for your organization
/v1/pipeline
POST
Create — Create a Pipeline
/v1/pipeline
PUT
Update — Update a Pipeline
/v1/pipeline/{id}
DELETE
Delete — Delete a Pipeline
/v1/pipeline/{id}

MCP Tools

list-pipelines-your-organization

List Pipelines for your organization

read-only idempotent
create-pipeline

Create a Pipeline

update-pipeline

Update a Pipeline

idempotent
delete-pipeline

Delete a Pipeline

idempotent

Capability Spec

close-subpackage-pipelines.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Endpoints — subpackage_pipelines
  description: 'API Endpoints — subpackage_pipelines. 4 operations. Lead operation: List Pipelines for your organization.
    Self-contained Naftiko capability covering one Close business surface.'
  tags:
  - Close
  - subpackage_pipelines
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOSE_API_KEY: CLOSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: close-subpackage-pipelines
    baseUri: https://api.close.com/api/v1
    description: API Endpoints — subpackage_pipelines business capability. Self-contained, no shared references.
    resources:
    - name: pipeline
      path: /pipeline/
      operations:
      - name: list
        method: GET
        description: List Pipelines for your organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
      - name: create
        method: POST
        description: Create a Pipeline
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: pipeline-id
      path: /pipeline/{id}/
      operations:
      - name: update
        method: PUT
        description: Update a Pipeline
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: delete
        method: DELETE
        description: Delete a Pipeline
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
    authentication:
      type: bearer
      token: '{{env.CLOSE_API_KEY}}'
  exposes:
  - type: rest
    namespace: close-subpackage-pipelines-rest
    port: 8080
    description: REST adapter for API Endpoints — subpackage_pipelines. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/pipeline
      name: pipeline
      description: REST surface for pipeline.
      operations:
      - method: GET
        name: list
        description: List Pipelines for your organization
        call: close-subpackage-pipelines.list
        with:
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: create
        description: Create a Pipeline
        call: close-subpackage-pipelines.create
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/pipeline/{id}
      name: pipeline-id
      description: REST surface for pipeline-id.
      operations:
      - method: PUT
        name: update
        description: Update a Pipeline
        call: close-subpackage-pipelines.update
        with:
          id: rest.id
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a Pipeline
        call: close-subpackage-pipelines.delete
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: close-subpackage-pipelines-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Endpoints — subpackage_pipelines. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-pipelines-your-organization
      description: List Pipelines for your organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-pipelines.list
      with:
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: create-pipeline
      description: Create a Pipeline
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: close-subpackage-pipelines.create
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-pipeline
      description: Update a Pipeline
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: close-subpackage-pipelines.update
      with:
        id: tools.id
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-pipeline
      description: Delete a Pipeline
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: close-subpackage-pipelines.delete
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.