Gainsight · Capability

Gainsight PX API — Custom Events

Gainsight PX API — Custom Events. 1 operations. Lead operation: Gainsight Send a custom event. Self-contained Naftiko capability covering one Gainsight business surface.

Run with Naftiko GainsightCustom Events

What You Can Do

POST
Sendcustomevent — Gainsight Send a custom event
/v1/custom-events

MCP Tools

gainsight-send-custom-event

Gainsight Send a custom event

Capability Spec

px-custom-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gainsight PX API — Custom Events
  description: 'Gainsight PX API — Custom Events. 1 operations. Lead operation: Gainsight Send a custom event. Self-contained
    Naftiko capability covering one Gainsight business surface.'
  tags:
  - Gainsight
  - Custom Events
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GAINSIGHT_API_KEY: GAINSIGHT_API_KEY
capability:
  consumes:
  - type: http
    namespace: px-custom-events
    baseUri: https://api.aptrinsic.com/v1
    description: Gainsight PX API — Custom Events business capability. Self-contained, no shared references.
    resources:
    - name: custom_events
      path: /custom_events
      operations:
      - name: sendcustomevent
        method: POST
        description: Gainsight Send a custom event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: X-APTRINSIC-API-KEY
      value: '{{env.GAINSIGHT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: px-custom-events-rest
    port: 8080
    description: REST adapter for Gainsight PX API — Custom Events. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/custom-events
      name: custom-events
      description: REST surface for custom_events.
      operations:
      - method: POST
        name: sendcustomevent
        description: Gainsight Send a custom event
        call: px-custom-events.sendcustomevent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: px-custom-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for Gainsight PX API — Custom Events. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: gainsight-send-custom-event
      description: Gainsight Send a custom event
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: px-custom-events.sendcustomevent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.