---
title: "List all mail accounts for a company"
method: GET
path: "/companies/{id}/mail-accounts"
tags: ["Companies"]
---

# List all mail accounts for a company

`GET /companies/{id}/mail-accounts`

## Request

- Base URL: `https://api.100hires.com/v2`
- URL: `https://api.100hires.com/v2/companies/{id}/mail-accounts`
- Auth: HTTP bearer

Returns all mail accounts for all users in the specified company. The company must be accessible (own company or a client).

## Path parameters

- `id` integer, required

## Query parameters

- `page` integer
- `size` integer

## Response `200`

Company mail accounts

- CompanyMailAccountListResponse
  - `mail_accounts` CompanyMailAccount[], required: Array of mail accounts.
    - `id` integer, required: Mail account ID.
    - `company_id` integer, required: Company ID.
    - `user_id` integer, required: Owner user ID.
    - `user_email` string, email, nullable, required: Owner user email.
    - `email` string, email, required: Email address.
    - `provider` MailAccountProvider, required
      - `name` 'gmail' | 'outlook', required: Provider identifier.
      - `label` string, required: Provider display name.
    - `mailbox_id` integer, required: Internal mailbox ID.
    - `is_default` boolean, required: Whether this is the user's default send-from account.
    - `is_configured` boolean, required: Whether the account is fully configured.
  - `pagination` Pagination, required
    - `page_size` integer, required: Items per page.
    - `page_count` integer, required: Total number of pages.
    - `page` integer, required: Current page number.
    - `total_count` integer, required: Total number of items.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `429`: Too many requests

---

[API](https://skmtc.dev/100hires/apis/100hires-api.md) · [All operations](https://skmtc.dev/100hires/apis/100hires-api/llms.txt) · [OpenAPI document](https://skmtc.dev/100hires/apis/100hires-api/revisions/e63e2d3115f7?raw)
