Harness · Capability

Harness Platform API — Organizations

Harness Platform API — Organizations. 1 operations. Lead operation: Harness List Organizations. Self-contained Naftiko capability covering one Harness business surface.

Run with Naftiko HarnessOrganizations

What You Can Do

GET
Listorganizations — Harness List Organizations
/v1/ng/api/organizations

MCP Tools

harness-list-organizations

Harness List Organizations

read-only idempotent

Capability Spec

platform-organizations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Harness Platform API — Organizations
  description: 'Harness Platform API — Organizations. 1 operations. Lead operation: Harness List Organizations. Self-contained
    Naftiko capability covering one Harness business surface.'
  tags:
  - Harness
  - Organizations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HARNESS_API_KEY: HARNESS_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-organizations
    baseUri: https://app.harness.io/gateway
    description: Harness Platform API — Organizations business capability. Self-contained, no shared references.
    resources:
    - name: ng-api-organizations
      path: /ng/api/organizations
      operations:
      - name: listorganizations
        method: GET
        description: Harness List Organizations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountIdentifier
          in: query
          type: string
          description: Account identifier.
          required: true
        - name: pageIndex
          in: query
          type: integer
          description: Page number (0-based).
        - name: pageSize
          in: query
          type: integer
          description: Number of items per page.
    authentication:
      type: apikey
      key: x-api-key
      value: '{{env.HARNESS_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: platform-organizations-rest
    port: 8080
    description: REST adapter for Harness Platform API — Organizations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/ng/api/organizations
      name: ng-api-organizations
      description: REST surface for ng-api-organizations.
      operations:
      - method: GET
        name: listorganizations
        description: Harness List Organizations
        call: platform-organizations.listorganizations
        with:
          accountIdentifier: rest.accountIdentifier
          pageIndex: rest.pageIndex
          pageSize: rest.pageSize
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-organizations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Harness Platform API — Organizations. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: harness-list-organizations
      description: Harness List Organizations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-organizations.listorganizations
      with:
        accountIdentifier: tools.accountIdentifier
        pageIndex: tools.pageIndex
        pageSize: tools.pageSize
      outputParameters:
      - type: object
        mapping: $.