---
title: "Search messages"
method: GET
path: "/email/messages/search"
tags: ["Email"]
---

# Search messages

`GET /email/messages/search`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/email/messages/search`
- Auth: API key in header `Authorization`

Full-text search of messages by subject/body.

## Query parameters

- `query` string
- `starting_after` string
- `limit` integer

## Response `200`

Messages

- object
  - `object` 'list', required
  - `data` EmailMessage[], required
    - `object` string, required
    - `id` string, required
    - `thread_id` string, required
    - `inbox_id` string, required
    - `direction` 'inbound' | 'outbound', required
    - `status` 'received' | 'queued' | 'sent' | 'delivered' | 'bounced' | 'complained' | 'failed', required
    - `message_id` string, required
    - `in_reply_to` string, nullable, required
    - `references` string[], required
    - `from` string, required
    - `to` unknown[], required
      - unknown
    - `cc` unknown[], required
      - unknown
    - `bcc` unknown[], required
      - unknown
    - `reply_to` string, nullable, required
    - `subject` string, nullable, required
    - `preview` string, nullable, required
    - `labels` string[], required
    - `suppressed` unknown[], required
      - unknown
    - `delivery` object, required
    - `delivered_at` string, date-time, nullable, required
    - `attachments` unknown[], required
      - unknown
    - `text` string, required
    - `html` string, required
    - `timestamp` string, required
    - `created_at` string, date-time, required
  - `has_more` boolean, required
  - `url` string

## Other responses

- `401`: Authentication required
- `403`: Forbidden
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.

---

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