---
title: "Search hosted email providers"
method: POST
path: "/v1/connectors/email/messages/search"
tags: ["Connectors"]
---

# Search hosted email providers

`POST /v1/connectors/email/messages/search`

## Request

- Base URL: `https://api.configure.dev`
- URL: `https://api.configure.dev/v1/connectors/email/messages/search`
- Auth: API key in header `X-API-Key` and HTTP bearer

Search every permitted Gmail and Outlook account by default. Partial responses report accounts_searched and partial=true.

## Headers

- `X-Agent` string

## Request body

- HostedEmailSearchRequest
  - `query` string, required
  - `max_results` integer
  - `provider` 'gmail' | 'outlook'
  - `account` string

## Response `200`

Provider-neutral email search results with provider and account provenance.

---

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