Gong · Capability

Gong Auditing API

The Gong Auditing API enables retrieval of audit log data by type and time range, providing visibility into user actions and system events for compliance and security monitoring.

Run with Naftiko GongAPI

What You Can Do

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

MCP Tools

retrieveauditlogs

Gong Retrieve audit logs by type and time range

read-only idempotent

Capability Spec

gong-capability.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gong Auditing API
  description: The Gong Auditing API enables retrieval of audit log data by type and time range, providing visibility into
    user actions and system events for compliance and security monitoring.
  tags:
  - Gong
  - API
  created: '2026-05-06'
  modified: '2026-05-06'
capability:
  consumes:
  - type: http
    namespace: gong
    baseUri: https://api.gong.io/v2
    description: Gong Auditing API HTTP API.
    authentication:
      type: basic
      username: '{{GONG_USERNAME}}'
      password: '{{GONG_PASSWORD}}'
    resources:
    - name: logs
      path: /logs
      operations:
      - name: retrieveauditlogs
        method: GET
        description: Gong Retrieve audit logs by type and time range
        inputParameters:
        - name: logType
          in: query
          type: string
          required: true
          description: The type of audit log to retrieve (e.g., UserAction, SystemEvent, ConfigChange).
        - name: fromDateTime
          in: query
          type: string
          required: true
          description: The start date and time for the log filter in ISO-8601 format.
        - name: toDateTime
          in: query
          type: string
          required: true
          description: The end date and time for the log filter in ISO-8601 format.
        - 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.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    port: 8080
    namespace: gong-rest
    description: REST adapter for Gong Auditing API.
    resources:
    - path: /logs
      name: retrieveauditlogs
      operations:
      - method: GET
        name: retrieveauditlogs
        description: Gong Retrieve audit logs by type and time range
        call: gong.retrieveauditlogs
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    port: 9090
    namespace: gong-mcp
    transport: http
    description: MCP adapter for Gong Auditing API for AI agent use.
    tools:
    - name: retrieveauditlogs
      description: Gong Retrieve audit logs by type and time range
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gong.retrieveauditlogs
      with:
        logType: tools.logType
        fromDateTime: tools.fromDateTime
        toDateTime: tools.toDateTime
        cursor: tools.cursor
      inputParameters:
      - name: logType
        type: string
        description: The type of audit log to retrieve (e.g., UserAction, SystemEvent, ConfigChange).
        required: true
      - name: fromDateTime
        type: string
        description: The start date and time for the log filter in ISO-8601 format.
        required: true
      - name: toDateTime
        type: string
        description: The end date and time for the log filter in ISO-8601 format.
        required: true
      - name: cursor
        type: string
        description: A cursor for pagination. Pass the cursor from the previous response to retrieve the next page of results.
      outputParameters:
      - type: object
        mapping: $.
binds:
- namespace: env
  keys:
    GONG_USERNAME: GONG_USERNAME
    GONG_PASSWORD: GONG_PASSWORD