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

# Unipile: List Email Contacts

> List contacts from a connected Gmail/Google or Microsoft/Outlook account (not supported for IMAP). Includes inputs, outputs, SDK V2 examples, and Deepline cost.

List contacts from a connected Gmail/Google or Microsoft/Outlook account (not supported for IMAP).

> [!NOTE]
>
> Tool ID: `unipile_list_email_contacts`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'unipile_list_email_contacts',
  {
    "account_id": "123456789"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute unipile_list_email_contacts --input '{
  "account_id": "123456789"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe unipile_list_email_contacts --json` for the complete live contract.

## Input reference

Returns a list of contacts from the email provider. Supported for Gmail (Google OAuth) and Microsoft (Outlook) only.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.cursor` | `string` | No | — | A cursor for pagination purposes. To get the next page of entries, you need to make a new request and fulfill this field with the cursor received in the preceding request. This process should be repeated until all entries have been retrieved. Minimum length: 1. |
| `payload.limit` | `integer` | No | — | A limit for the number of items returned in the response. The value can be set between 1 and 250. Minimum: 1. Maximum: 250. |
| `payload.account_id` | `string` | Yes | — | A filter to target items related to a certain account. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns a list of contacts from the email provider. Supported for Gmail (Google OAuth) and Microsoft (Outlook) only.",
    "properties": {
      "cursor": {
        "type": "string",
        "description": "A cursor for pagination purposes. To get the next page of entries, you need to make a new request and fulfill this field with the cursor received in the preceding request. This process should be repeated until all entries have been retrieved.",
        "minLength": 1
      },
      "limit": {
        "type": "integer",
        "description": "A limit for the number of items returned in the response. The value can be set between 1 and 250.",
        "minimum": 1,
        "maximum": 250
      },
      "account_id": {
        "type": "string",
        "description": "A filter to target items related to a certain account."
      }
    },
    "required": [
      "account_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.object` | `"EmailContactList"` | Yes | — | Allowed: `EmailContactList`. |
| `result.data.items` | `array` | Yes | — | — |
| `result.data.items[].object` | `"contact"` | Yes | — | Allowed: `contact`. |
| `result.data.items[].id` | `string` | Yes | — | — |
| `result.data.items[].account_id` | `string` | Yes | — | — |
| `result.data.items[].source` | `string` | No | — | — |
| `result.data.items[].given_name` | `string` | No | — | — |
| `result.data.items[].middle_name` | `string` | No | — | — |
| `result.data.items[].surname` | `string` | No | — | — |
| `result.data.items[].nickname` | `string` | No | — | — |
| `result.data.items[].suffix` | `string` | No | — | — |
| `result.data.items[].birthday` | `string` | No | — | — |
| `result.data.items[].company_name` | `string` | No | — | — |
| `result.data.items[].job_title` | `string` | No | — | — |
| `result.data.items[].manager_name` | `string` | No | — | — |
| `result.data.items[].notes` | `string` | No | — | — |
| `result.data.items[].office_location` | `string` | No | — | — |
| `result.data.items[].picture_url` | `string` | No | — | — |
| `result.data.items[].emails` | `array` | Yes | — | — |
| `result.data.items[].emails[].email` | `string` | Yes | — | — |
| `result.data.items[].emails[].type` | `string` | No | — | — |
| `result.data.items[].phone_numbers` | `array` | Yes | — | — |
| `result.data.items[].phone_numbers[].number` | `string` | Yes | — | — |
| `result.data.items[].phone_numbers[].type` | `string` | No | — | — |
| `result.data.items[].im_addresses` | `array` | Yes | — | — |
| `result.data.items[].im_addresses[].im_address` | `string` | Yes | — | — |
| `result.data.items[].im_addresses[].type` | `string` | No | — | — |
| `result.data.items[].physical_addresses` | `array` | Yes | — | — |
| `result.data.items[].physical_addresses[].city` | `string` | No | — | — |
| `result.data.items[].physical_addresses[].country` | `string` | No | — | — |
| `result.data.items[].physical_addresses[].postal_code` | `string` | No | — | — |
| `result.data.items[].physical_addresses[].state` | `string` | No | — | — |
| `result.data.items[].physical_addresses[].street_address` | `string` | No | — | — |
| `result.data.items[].physical_addresses[].type` | `string` | No | — | — |
| `result.data.items[].web_pages` | `array` | Yes | — | — |
| `result.data.items[].web_pages[].url` | `string` | Yes | — | — |
| `result.data.items[].web_pages[].type` | `string` | No | — | — |
| `result.data.items[].groups` | `array` | Yes | — | — |
| `result.data.items[].groups[].id` | `string` | Yes | — | — |
| `result.data.cursor` | `unknown \| null` | Yes | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "EmailContactList"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "object": {
                  "type": "string",
                  "enum": [
                    "contact"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "account_id": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "given_name": {
                  "type": "string"
                },
                "middle_name": {
                  "type": "string"
                },
                "surname": {
                  "type": "string"
                },
                "nickname": {
                  "type": "string"
                },
                "suffix": {
                  "type": "string"
                },
                "birthday": {
                  "type": "string"
                },
                "company_name": {
                  "type": "string"
                },
                "job_title": {
                  "type": "string"
                },
                "manager_name": {
                  "type": "string"
                },
                "notes": {
                  "type": "string"
                },
                "office_location": {
                  "type": "string"
                },
                "picture_url": {
                  "type": "string"
                },
                "emails": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "email"
                    ],
                    "additionalProperties": false
                  }
                },
                "phone_numbers": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "number": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "number"
                    ],
                    "additionalProperties": false
                  }
                },
                "im_addresses": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "im_address": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "im_address"
                    ],
                    "additionalProperties": false
                  }
                },
                "physical_addresses": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "city": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      },
                      "postal_code": {
                        "type": "string"
                      },
                      "state": {
                        "type": "string"
                      },
                      "street_address": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "web_pages": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "groups": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "object",
                "id",
                "account_id",
                "emails",
                "phone_numbers",
                "im_addresses",
                "physical_addresses",
                "web_pages",
                "groups"
              ],
              "additionalProperties": false
            }
          },
          "cursor": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "object",
          "items",
          "cursor"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

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

## Related documentation

* [Unipile provider guide](https://deepline.com/docs/providers/unipile/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.