> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Gong List Calls: Inputs, Cost & CLI Example

> Retrieve call data by date range (/v2/calls). Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=gong_list_calls:{"fromDateTime":"{{fromDateTime}}","toDateTime":"{{toDateTime}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                   | Type     | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                  |
| ---------------------- | -------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `payload.cursor`       | `string` | No       |         | When paging is needed, provide the value supplied by the previous API call to bring the following page of records.                                                                                                                                                                                                                                                                                           |
| `payload.fromDateTime` | `string` | Yes      |         | Date and time (in ISO-8601 format: '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC) from which to list recorded calls. Returns calls that started on or after the specified date and time. If not provided, list starts with earliest call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time.       |
| `payload.toDateTime`   | `string` | Yes      |         | Date and time (in ISO-8601 format: '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC) until which to list recorded calls. Returns calls that started up to but excluding specified date and time. If not provided, list ends with most recent call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time. |
| `payload.workspaceId`  | `string` | No       |         | Optional Workspace identifier, if supplied the API will return only the calls belonging to this workspace.                                                                                                                                                                                                                                                                                                   |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "List calls that took place during a specified date range. When accessed through a Bearer token authorization method, this endpoint requires the scope 'api:calls:read:basic'.",
    "properties": {
      "cursor": {
        "type": "string",
        "description": "When paging is needed, provide the value supplied by the previous API call to bring the following page of records."
      },
      "fromDateTime": {
        "type": "string",
        "description": "Date and time (in ISO-8601 format: '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC) from which to list recorded calls. Returns calls that started on or after the specified date and time. If not provided, list starts with earliest call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time."
      },
      "toDateTime": {
        "type": "string",
        "description": "Date and time (in ISO-8601 format: '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC) until which to list recorded calls. Returns calls that started up to but excluding specified date and time. If not provided, list ends with most recent call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time."
      },
      "workspaceId": {
        "type": "string",
        "description": "Optional Workspace identifier, if supplied the API will return only the calls belonging to this workspace."
      }
    },
    "required": [
      "fromDateTime",
      "toDateTime"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes."
          },
          "records": {
            "type": "object",
            "description": "Information about the number of records that match the requested filter.",
            "properties": {
              "totalRecords": {
                "type": "integer",
                "description": "Total number of records.",
                "format": "int32"
              },
              "currentPageSize": {
                "type": "integer",
                "description": "Number of records in the current page.",
                "format": "int32"
              },
              "currentPageNumber": {
                "type": "integer",
                "description": "Current page number.",
                "format": "int32"
              },
              "cursor": {
                "type": "string",
                "description": "Returned only when there are more records to be retrieved. Repeat the API call and pass this cursor value in the request to retrieve the next page of records."
              }
            },
            "additionalProperties": false
          },
          "calls": {
            "type": "array",
            "description": "A list, in which each item specifies one call.",
            "items": {
              "type": "object",
              "description": "call's metadata.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Gong's unique numeric identifier for the call (up to 20 digits)."
                },
                "url": {
                  "type": "string",
                  "description": "The URL to the page in the Gong web application where the call is available."
                },
                "title": {
                  "type": "string",
                  "description": "The title of the call."
                },
                "scheduled": {
                  "type": "string",
                  "description": "Scheduled date and time of the call in the ISO-8601 format (e.g., '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC).",
                  "format": "date-time"
                },
                "started": {
                  "type": "string",
                  "description": "The date and time when the call was recorded in the ISO-8601 format (e.g., '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC).",
                  "format": "date-time"
                },
                "duration": {
                  "type": "integer",
                  "description": "The duration of the call, in seconds.",
                  "format": "int64"
                },
                "primaryUserId": {
                  "type": "string",
                  "description": "The primary user ID of the team member who hosted the call."
                },
                "direction": {
                  "type": "string",
                  "description": "Call direction.",
                  "enum": [
                    "Inbound",
                    "Outbound",
                    "Conference",
                    "Unknown"
                  ]
                },
                "system": {
                  "type": "string",
                  "description": "The system with which the call was carried out (e.g., WebEx, ShoreTel, etc.)."
                },
                "scope": {
                  "type": "string",
                  "description": "The scope of the call: 'internal' if all the participants are from the company, 'external' if some participants are not from the company, or 'unknown' if the scope is unknown.",
                  "enum": [
                    "Internal",
                    "External",
                    "Unknown"
                  ]
                },
                "media": {
                  "type": "string",
                  "description": "Media type",
                  "enum": [
                    "Video",
                    "Audio"
                  ]
                },
                "language": {
                  "type": "string",
                  "description": "The language codes (as defined by ISO-639-2B). E.g., eng, fre, spa, ger, and ita. Also used are und (unsupported language), and zxx (not enough speech content for identification)."
                },
                "workspaceId": {
                  "type": "string",
                  "description": "Gong's unique numeric identifier for the call's workspace (up to 20 digits)."
                },
                "sdrDisposition": {
                  "type": "string",
                  "description": "The SDR disposition of the call. This can be an automated value provided by the provider, or manually entered by the rep."
                },
                "clientUniqueId": {
                  "type": "string",
                  "description": "The call's unique identifier in the origin recording system (typically a telephony recording system). The identifier is provided to Gong during the call creation via the Public API or through telephony systems integrations."
                },
                "customData": {
                  "type": "string",
                  "description": "Metadata as was provided to Gong during the call creation via the Public API."
                },
                "purpose": {
                  "type": "string",
                  "description": "The purpose of the call."
                },
                "meetingUrl": {
                  "type": "string",
                  "description": "The meeting provider URL on which the web conference was recorded."
                },
                "isPrivate": {
                  "type": "boolean",
                  "description": "If the call is private."
                },
                "calendarEventId": {
                  "type": "string",
                  "description": "The Id of the meeting in Google or Outlook Calendar."
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute gong_list_calls --payload '{
  "fromDateTime": "string",
  "toDateTime": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
