Skip to main content
The GongResourceClient allows you to connect to Gong and access revenue intelligence data, including call recordings, transcripts, and user information.

Usage

import { myGongClient } from "./clients";

const result = await myGongClient.invoke(
  "GET",
  "/v2/calls",
  "list-calls",
  {
    query: { limit: "50" },
  }
);

if (result.ok && result.result.body.kind === "json") {
  console.log("Calls:", result.result.body.value);
}

Authentication

When creating a Gong connector, choose your OAuth scope:
  • Read-only — access call data, transcripts, and user lists
  • Read-write — read-only access plus ability to update Gong data
  • Custom — configure specific permissions manually
The OAuth flow redirects to Gong to authenticate your account. Major securely stores the token and handles authentication for all API requests.

Inputs

The invoke method accepts the following arguments:
method
string
required
The HTTP method to use: "GET", "POST", "PUT", "PATCH", or "DELETE".
path
string
required
The Gong API path (e.g., /v2/calls, /v2/users).
invocationKey
string
required
A unique identifier for this operation.
options
object
Optional configuration object.

Outputs

The output format is the same as the Custom API client.
kind
"api"
Discriminator for the response type.
status
number
The HTTP status code.
body
ResponseBody
The response body (typically JSON).