---
title: "List mailbox messages"
method: GET
path: "/mailboxes/{mailboxId}/messages"
tags: ["Mailbox Messages"]
---

# List mailbox messages

`GET /mailboxes/{mailboxId}/messages`

## Request

- Base URL: `https://api.mobilerun.ai`
- URL: `https://api.mobilerun.ai/mailboxes/{mailboxId}/messages`
- Auth: HTTP bearer

Lists mailbox messages with cursor pagination and optional time, sender, and OTP filters.

## Path parameters

- `mailboxId` string, uuid, required

## Query parameters

- `limit` integer
- `cursor` string
- `after` string, date-time
- `sender` string
- `hasOtp` 'true' | 'false'

## Response `200`

Messages retrieved

- MailboxMessageList
  - `items` MailboxMessageSummary[], required
    - `id` string, required
    - `mailboxId` string, uuid, required
    - `fromAddress` string, nullable, required
    - `subject` string, nullable, required
    - `preview` string, nullable, required
    - `hasOtp` boolean, required
    - `receivedAt` string, date-time, required
  - `nextCursor` string, nullable, required

## Other responses

- `400`: The mailbox backend rejected the request
- `401`: Unauthorized
- `404`: Not Found
- `409`: Gmail connection is pending, expired, removed, or the message is too large
- `429`: Mailbox backend rate limited
- `500`: Internal Server Error
- `502`: Mailbox backend unavailable
- `503`: Mailboxes disabled

## Changes

- **2026-10-21** `559a12449213`: 16 warning
  - added the new `integration_forbidden` enum value to the `anyOf[#/components/schemas/MailboxApiErrorEnvelope]/code` response property for the response status `400`
  - added the new `integration_forbidden` enum value to the `anyOf[#/components/schemas/MailboxApiErrorEnvelope]/code` response property for the response status `429`
  - added the new `integration_forbidden` enum value to the `anyOf[#/components/schemas/MailboxApiErrorEnvelope]/code` response property for the response status `502`
  - added the new `integration_forbidden` enum value to the `anyOf[#/components/schemas/MailboxErrorBody]/code` response property for the response status `400`
  - …12 more
- **2026-10-16** `4ad548c528a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/droidrun/apis/droidrun-cloud/changes/mailboxes/:mailboxId/messages/get.md)

---

[API](https://skmtc.dev/droidrun/apis/droidrun-cloud.md) - [All operations](https://skmtc.dev/droidrun/apis/droidrun-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/droidrun/apis/droidrun-cloud/revisions/1cc95586c933?raw)
