---
title: "Search Employee Mail Route"
method: GET
path: "/api/chairman/mail/search"
tags: ["chairman"]
---

# Search Employee Mail Route

`GET /api/chairman/mail/search`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/chairman/mail/search`
- Auth: none declared

A chairman searches one employee's Pigeonly mailbox (ACCESS-CORTNEI-1, ruling
`docs/01_decisions/rulings/2026-11-30-cortnei-searches-employee-mail-and-all-slack.md`; rule PPL-32).

Owner, Frederick, 2026-11-30: "So chairman should be able to search everyone's." The grant is `company:chairman`, checked
in `mail_search.search_employee_mail`, which refuses any non-pigeon.ly address and writes the audit row (the owner's
mailbox included, ruling 2026-12-03: "Open mine to her"). Read only. The refusals map to 403 (not a chairman), 422 (not a
company mailbox), 503 (no Gmail key configured) and 502 (Gmail refused or failed). Runbook: `docs/runbooks/CHAIRMAN_SEARCH.md`.

## Query parameters

- `mailbox` string, required
- `q` string, required
- `limit` integer

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-12-04** `14571c4b7007`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/chairman/mail/search/get.md)

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
