---
title: "Get IMAP message body"
method: GET
path: "/api/v1/imap/messages/{message_id}"
---

# Get IMAP message body

`GET /api/v1/imap/messages/{message_id}`

## Request

- Base URL: `https://localhost:3000`
- URL: `https://localhost:3000/api/v1/imap/messages/{message_id}`
- Auth: OAuth 2 (authorization code, authorization URL `/oauth/authorize`, token URL `/oauth/token`)

Get full content/body of a specific IMAP message by message_id (sequence id from list/search).

## Path parameters

- `message_id` string, required

## Query parameters

- `mailbox` string

## Response `200`

Message body

- ImapMessageBodyResponse
  - `user` string
  - `provider` string
  - `message_id` string
  - `message_id_header` string
  - `subject` string
  - `from` string
  - `to` string
  - `cc` string
  - `date` string
  - `body` string
  - `body_type` string
  - `attachments` ImapAttachment[]
    - `filename` string
    - `content_type` string
    - `size` integer
  - `attachment_count` integer

## Other responses

- `400`: Missing message_id
- `401`: Authentication required
- `500`: Internal server error
- `503`: IMAP not configured for this user

---

[API](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api.md) · [All operations](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/revisions/e25648ba6027?raw)
