---
title: "List messages"
method: GET
path: "/messages"
tags: ["Messages"]
---

# List messages

`GET /messages`

## Request

- Base URL: `https://api.automessage.app/v1`
- URL: `https://api.automessage.app/v1/messages`
- Auth: API key in header `X-API-KEY`

## Query parameters

- `limit` integer
- `cursor` string
- `direction` 'inbound' | 'outbound'
- `since` string, date-time
- `before` string, date-time

## Response `200`

Paginated list of messages.

- MessageList
  - `data` Message[], required
    - `guid` string, required: Apple chat.db message GUID.
    - `conversation` string, required
    - `body` string, required
    - `outbound` boolean, required: True if we sent it.
    - `contact` string: E.164 phone or email of the counterparty.
    - `reference` string, nullable: Message this replies to, if any.
    - `deliveredAt` string, date-time, nullable
    - `delivered` boolean, nullable: Outbound only: chat.db is_delivered — a recipient device acknowledged it (connector 0.2.22).
    - `deliveryError` integer, nullable: Outbound only: Apple's non-zero message.error when Messages could not deliver it; the matching draft then has sendError "not_delivered…".
    - `readAt` string, date-time, nullable
    - `createdAt` string, date-time, required
  - `nextCursor` string, nullable

## Other responses

- `401`: Missing or invalid API key.

---

[API](https://skmtc.dev/automessage/apis/automessage-rest-api.md) · [All operations](https://skmtc.dev/automessage/apis/automessage-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/automessage/apis/automessage-rest-api/revisions/129f369dee8b?raw)
