> ## 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.

# Intercom List Calls: Inputs, Cost & CLI Example

> List all calls. Intercom Intercom List Calls docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## 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=intercom_list_calls:{}' --json
```

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

## Input Schema

| Name               | Type      | Required | Default | Description                                                   |
| ------------------ | --------- | -------- | ------- | ------------------------------------------------------------- |
| `payload.page`     | `integer` | No       |         | The page of results to fetch. Defaults to first page          |
| `payload.per_page` | `integer` | No       |         | How many results to display per page. Defaults to 25. Max 25. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Retrieve a paginated list of calls.",
    "properties": {
      "page": {
        "type": "integer",
        "description": "The page of results to fetch. Defaults to first page"
      },
      "per_page": {
        "type": "integer",
        "description": "How many results to display per page. Defaults to 25. Max 25."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | A paginated list of calls.                     |
| `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": "A paginated list of calls.",
        "properties": {
          "type": {
            "type": "string",
            "description": "String representing the object's type. Always has the value `list`."
          },
          "data": {
            "type": "array",
            "description": "A list of calls.",
            "items": {
              "type": "object",
              "description": "Represents a phone call in Intercom",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "String representing the object's type. Always has the value `call`."
                },
                "id": {
                  "type": "string",
                  "description": "The id of the call."
                },
                "conversation_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The id of the conversation associated with the call, if any."
                },
                "admin_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The id of the admin associated with the call, if any."
                },
                "contact_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The id of the contact associated with the call, if any."
                },
                "state": {
                  "type": "string",
                  "description": "The current state of the call."
                },
                "initiated_at": {
                  "type": "object",
                  "additionalProperties": true
                },
                "answered_at": {
                  "type": "object",
                  "additionalProperties": true
                },
                "ended_at": {
                  "type": "object",
                  "additionalProperties": true
                },
                "created_at": {
                  "type": "object",
                  "additionalProperties": true
                },
                "updated_at": {
                  "type": "object",
                  "additionalProperties": true
                },
                "recording_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "API URL to download or redirect to the call recording if available.",
                  "format": "uri"
                },
                "transcription_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "API URL to download or redirect to the call transcript if available.",
                  "format": "uri"
                },
                "call_type": {
                  "type": "string",
                  "description": "The type of call."
                },
                "direction": {
                  "type": "string",
                  "description": "The direction of the call."
                },
                "ended_reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The reason for the call end, if applicable."
                },
                "phone": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The phone number involved in the call, in E.164 format."
                },
                "fin_recording_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "API URL to the AI Agent (Fin) call recording if available.",
                  "format": "uri"
                },
                "fin_transcription_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "API URL to the AI Agent (Fin) call transcript if available.",
                  "format": "uri"
                }
              },
              "additionalProperties": false
            }
          },
          "total_count": {
            "type": "integer",
            "description": "Total number of items available."
          },
          "pages": {
            "type": [
              "object",
              "null"
            ],
            "description": "Cursor-based pagination is a technique used in the Intercom API to navigate through large amounts of data. A \"cursor\" or pointer is used to keep track of the current position in the result set, allowing the API to return the data in small chunks or \"pages\" as needed.",
            "properties": {
              "type": {
                "type": "string",
                "description": "the type of object `pages`.",
                "enum": [
                  "pages"
                ]
              },
              "page": {
                "type": "integer",
                "description": "The current page"
              },
              "next": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "per_page": {
                    "type": "integer",
                    "description": "The number of results to fetch per page."
                  },
                  "starting_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The cursor to use in the next request to get the next page of results."
                  }
                },
                "additionalProperties": false
              },
              "per_page": {
                "type": "integer",
                "description": "Number of results per page"
              },
              "total_pages": {
                "type": "integer",
                "description": "Total number of pages"
              }
            },
            "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 intercom_list_calls --payload '{}' --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`.
