---
title: "Search messages"
method: GET
path: "/mailboxes/{address}/search"
tags: ["Mail"]
---

# Search messages

`GET /mailboxes/{address}/search`

## Request

- Base URL: `https://faivelo.com/api/v1`
- URL: `https://faivelo.com/api/v1/mailboxes/{address}/search`
- Auth: HTTP bearer

Search by general query or advanced filters (from, subject, body, date range). Requires scope `mail:read`.

## Path parameters

- `address` string, required

## Query parameters

- `folder` string
- `q` string
- `from` string
- `subject` string
- `body` string
- `dateAfter` string, date
- `dateBefore` string, date

## Response `200`

Search results

- object
  - `success` boolean
  - `data` SearchResults: Search results with matching message summaries
    - `messages` object[]
      - `uid` integer
      - `from` string
      - `subject` string
      - `date` string, date-time
      - `seen` boolean
      - `flagged` boolean
      - `size` integer

## Other responses

- `401`: Missing or invalid API key
- `402`: The account's plan does not include the API (`plan_required`)
- `403`: The key lacks the required scope
- `404`: Resource not found
- `429`: Rate limit exceeded

---

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