Gainsight · Capability

Gainsight REST API — Companies

Gainsight REST API — Companies. 5 operations. Lead operation: Gainsight List companies. Self-contained Naftiko capability covering one Gainsight business surface.

Run with Naftiko GainsightCompanies

What You Can Do

GET
Listcompanies — Gainsight List companies
/v1/v1/companies
POST
Createcompany — Gainsight Create a company
/v1/v1/companies
GET
Getcompany — Gainsight Get a company
/v1/v1/companies/{companyid}
PUT
Updatecompany — Gainsight Update a company
/v1/v1/companies/{companyid}
DELETE
Deletecompany — Gainsight Delete a company
/v1/v1/companies/{companyid}

MCP Tools

gainsight-list-companies

Gainsight List companies

read-only idempotent
gainsight-create-company

Gainsight Create a company

gainsight-get-company

Gainsight Get a company

read-only idempotent
gainsight-update-company

Gainsight Update a company

idempotent
gainsight-delete-company

Gainsight Delete a company

idempotent

Capability Spec

rest-companies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gainsight REST API — Companies
  description: 'Gainsight REST API — Companies. 5 operations. Lead operation: Gainsight List companies. Self-contained Naftiko
    capability covering one Gainsight business surface.'
  tags:
  - Gainsight
  - Companies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GAINSIGHT_API_KEY: GAINSIGHT_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-companies
    baseUri: https://api.gainsight.com
    description: Gainsight REST API — Companies business capability. Self-contained, no shared references.
    resources:
    - name: v1-companies
      path: /v1/companies
      operations:
      - name: listcompanies
        method: GET
        description: Gainsight List companies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcompany
        method: POST
        description: Gainsight Create a company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-companies-companyId
      path: /v1/companies/{companyId}
      operations:
      - name: getcompany
        method: GET
        description: Gainsight Get a company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecompany
        method: PUT
        description: Gainsight Update a company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecompany
        method: DELETE
        description: Gainsight Delete a company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: accessKey
      value: '{{env.GAINSIGHT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: rest-companies-rest
    port: 8080
    description: REST adapter for Gainsight REST API — Companies. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/companies
      name: v1-companies
      description: REST surface for v1-companies.
      operations:
      - method: GET
        name: listcompanies
        description: Gainsight List companies
        call: rest-companies.listcompanies
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcompany
        description: Gainsight Create a company
        call: rest-companies.createcompany
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/companies/{companyid}
      name: v1-companies-companyid
      description: REST surface for v1-companies-companyId.
      operations:
      - method: GET
        name: getcompany
        description: Gainsight Get a company
        call: rest-companies.getcompany
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecompany
        description: Gainsight Update a company
        call: rest-companies.updatecompany
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecompany
        description: Gainsight Delete a company
        call: rest-companies.deletecompany
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-companies-mcp
    port: 9090
    transport: http
    description: MCP adapter for Gainsight REST API — Companies. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: gainsight-list-companies
      description: Gainsight List companies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-companies.listcompanies
      outputParameters:
      - type: object
        mapping: $.
    - name: gainsight-create-company
      description: Gainsight Create a company
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-companies.createcompany
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: gainsight-get-company
      description: Gainsight Get a company
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-companies.getcompany
      outputParameters:
      - type: object
        mapping: $.
    - name: gainsight-update-company
      description: Gainsight Update a company
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-companies.updatecompany
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: gainsight-delete-company
      description: Gainsight Delete a company
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rest-companies.deletecompany
      outputParameters:
      - type: object
        mapping: $.