Gainsight · Capability

Gainsight PX API — Accounts

Gainsight PX API — Accounts. 5 operations. Lead operation: Gainsight List accounts. Self-contained Naftiko capability covering one Gainsight business surface.

Run with Naftiko GainsightAccounts

What You Can Do

GET
Listaccounts — Gainsight List accounts
/v1/accounts
POST
Createaccount — Gainsight Create or update an account
/v1/accounts
GET
Getaccount — Gainsight Get an account
/v1/accounts/{accountid}
PATCH
Updateaccount — Gainsight Update an account
/v1/accounts/{accountid}
DELETE
Deleteaccount — Gainsight Delete an account
/v1/accounts/{accountid}

MCP Tools

gainsight-list-accounts

Gainsight List accounts

read-only idempotent
gainsight-create-update-account

Gainsight Create or update an account

gainsight-get-account

Gainsight Get an account

read-only idempotent
gainsight-update-account

Gainsight Update an account

idempotent
gainsight-delete-account

Gainsight Delete an account

idempotent

Capability Spec

px-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gainsight PX API — Accounts
  description: 'Gainsight PX API — Accounts. 5 operations. Lead operation: Gainsight List accounts. Self-contained Naftiko
    capability covering one Gainsight business surface.'
  tags:
  - Gainsight
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GAINSIGHT_API_KEY: GAINSIGHT_API_KEY
capability:
  consumes:
  - type: http
    namespace: px-accounts
    baseUri: https://api.aptrinsic.com/v1
    description: Gainsight PX API — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: accounts
      path: /accounts
      operations:
      - name: listaccounts
        method: GET
        description: Gainsight List accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createaccount
        method: POST
        description: Gainsight Create or update an account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-accountId
      path: /accounts/{accountId}
      operations:
      - name: getaccount
        method: GET
        description: Gainsight Get an account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateaccount
        method: PATCH
        description: Gainsight Update an account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteaccount
        method: DELETE
        description: Gainsight Delete an account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-APTRINSIC-API-KEY
      value: '{{env.GAINSIGHT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: px-accounts-rest
    port: 8080
    description: REST adapter for Gainsight PX API — Accounts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/accounts
      name: accounts
      description: REST surface for accounts.
      operations:
      - method: GET
        name: listaccounts
        description: Gainsight List accounts
        call: px-accounts.listaccounts
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createaccount
        description: Gainsight Create or update an account
        call: px-accounts.createaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{accountid}
      name: accounts-accountid
      description: REST surface for accounts-accountId.
      operations:
      - method: GET
        name: getaccount
        description: Gainsight Get an account
        call: px-accounts.getaccount
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateaccount
        description: Gainsight Update an account
        call: px-accounts.updateaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteaccount
        description: Gainsight Delete an account
        call: px-accounts.deleteaccount
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: px-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Gainsight PX API — Accounts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: gainsight-list-accounts
      description: Gainsight List accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: px-accounts.listaccounts
      outputParameters:
      - type: object
        mapping: $.
    - name: gainsight-create-update-account
      description: Gainsight Create or update an account
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: px-accounts.createaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: gainsight-get-account
      description: Gainsight Get an account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: px-accounts.getaccount
      outputParameters:
      - type: object
        mapping: $.
    - name: gainsight-update-account
      description: Gainsight Update an account
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: px-accounts.updateaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: gainsight-delete-account
      description: Gainsight Delete an account
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: px-accounts.deleteaccount
      outputParameters:
      - type: object
        mapping: $.