---
title: "List or long-poll messages"
method: GET
path: "/v1/inboxes/{id}/messages"
tags: ["messages"]
---

# List or long-poll messages

`GET /v1/inboxes/{id}/messages`

## Request

- Base URL: `https://api.mailfixture.com`
- URL: `https://api.mailfixture.com/v1/inboxes/{id}/messages`
- Auth: HTTP bearer

Summaries ordered oldest-first by `received_at`, at most 100 per response. With `wait` > 0 the request holds until a matching message arrives (LISTEN/NOTIFY wake, typically < 2 s after SMTP accept) or the window closes.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `since` string, date-time
- `match` string
- `wait` integer

## Response `200`

Matching messages — empty array when nothing matched within the wait window.

- MessageList
  - `messages` MessageSummary[], required
    - `from_addr` string, required
    - `id` string, uuid, required
    - `received_at` string, date-time, required
    - `subject` string, nullable, required
    - `tls` boolean, required: Whether the delivering SMTP session had negotiated STARTTLS.
    - `to_addrs` string[], required

## Other responses

- `400`: `match` has an empty term after its field prefix.
- `401`: Missing bearer token, malformed key, or unknown/revoked/invalid API key.
- `404`: No such inbox on this account.
- `429`: Per-key rate limit exceeded. `Retry-After` says when the next request will be admitted; the RateLimit headers name the bucket that refused (`requests` or `creates`) with `r=0`.
- `500`: Unexpected server error. `detail` is null — internals are never leaked.

---

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