# Messages sent through the mail API, newest first, with their state

`GET /mail/messages` · Rivier · campaigns

Messages sent through the mail API, newest first, with their state. Filter by state, address, batch or tag.

- Scope: campaigns:read
- Mcp: rivier_campaign_mail_messages
- Graphql: Query.campaignsMailMessageList
- Sdk: mail.messages.list
- Cli: mail messages

## Parameters

- `state` (query), string
- `to` (query), string
- `batchId` (query), string
- `tag` (query), string
- `before` (query), string
- `limit` (query), integer

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X GET 'https://api.rivier.ai/mail/messages' \
  -H 'Authorization: Bearer $KEY'
```
