Gong · Capability

Gong Auditing API — Audit Logs

Gong Auditing API — Audit Logs. 1 operations. Lead operation: Gong Retrieve audit logs by type and time range. Self-contained Naftiko capability covering one Gong business surface.

Run with Naftiko GongAudit Logs

What You Can Do

GET
Retrieveauditlogs — Gong Retrieve audit logs by type and time range
/v1/logs

MCP Tools

gong-retrieve-audit-logs-type

Gong Retrieve audit logs by type and time range

read-only idempotent

Capability Spec

auditing-audit-logs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gong Auditing API — Audit Logs
  description: 'Gong Auditing API — Audit Logs. 1 operations. Lead operation: Gong Retrieve audit logs by type and time range.
    Self-contained Naftiko capability covering one Gong business surface.'
  tags:
  - Gong
  - Audit Logs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GONG_API_KEY: GONG_API_KEY
capability:
  consumes:
  - type: http
    namespace: auditing-audit-logs
    baseUri: https://api.gong.io/v2
    description: Gong Auditing API — Audit Logs business capability. Self-contained, no shared references.
    resources:
    - name: logs
      path: /logs
      operations:
      - name: retrieveauditlogs
        method: GET
        description: Gong Retrieve audit logs by type and time range
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: logType
          in: query
          type: string
          description: The type of audit log to retrieve (e.g., UserAction, SystemEvent, ConfigChange).
          required: true
        - name: fromDateTime
          in: query
          type: string
          description: The start date and time for the log filter in ISO-8601 format.
          required: true
        - name: toDateTime
          in: query
          type: string
          description: The end date and time for the log filter in ISO-8601 format.
          required: true
        - name: cursor
          in: query
          type: string
          description: A cursor for pagination. Pass the cursor from the previous response to retrieve the next page of results.
    authentication:
      type: bearer
      token: '{{env.GONG_API_KEY}}'
  exposes:
  - type: rest
    namespace: auditing-audit-logs-rest
    port: 8080
    description: REST adapter for Gong Auditing API — Audit Logs. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/logs
      name: logs
      description: REST surface for logs.
      operations:
      - method: GET
        name: retrieveauditlogs
        description: Gong Retrieve audit logs by type and time range
        call: auditing-audit-logs.retrieveauditlogs
        with:
          logType: rest.logType
          fromDateTime: rest.fromDateTime
          toDateTime: rest.toDateTime
          cursor: rest.cursor
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: auditing-audit-logs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Gong Auditing API — Audit Logs. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: gong-retrieve-audit-logs-type
      description: Gong Retrieve audit logs by type and time range
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: auditing-audit-logs.retrieveauditlogs
      with:
        logType: tools.logType
        fromDateTime: tools.fromDateTime
        toDateTime: tools.toDateTime
        cursor: tools.cursor
      outputParameters:
      - type: object
        mapping: $.