# Search the message log across email, SMS, WhatsApp and voice

`GET /messages` · Rivier · inbox

Search the message log across email, SMS, WhatsApp and voice: by address, message id or provider id, channel, state, error code and time. Newest first, a cursor for more.

- Scope: inbox:read
- Graphql: Query.inboxMessageList
- Sdk: inbox.message.list
- Cli: inbox message list

## Parameters

- `q` (query), string
- `channel` (query), string
- `state` (query), string
- `code` (query), string
- `direction` (query), string
- `since` (query), string
- `until` (query), string
- `failed` (query), string
- `limit` (query), integer
- `cursor` (query), string

## 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/messages' \
  -H 'Authorization: Bearer $KEY'
```
