# listContactDirectMail

The letters sent to one contact by any mail provider, newest first, 20 a page (pass `nextCursor` as `after`): id, campaignLabel, status, preparedAt, mailedAt.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listContactDirectMail", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `contactId`: `ID!` (required)
- `after`: `String`

## Response (data, an example)

```json
{
  "contactQuery": {
    "directMailPieces": {
      "nodes": [
        {
          "id": "<ID>",
          "campaignLabel": "…",
          "status": "QUEUED",
          "preparedAt": "2026-01-01T00:00:00.000Z",
          "mailedAt": "2026-01-01T00:00:00.000Z"
        }
      ],
      "hasNextPage": true,
      "nextCursor": "…"
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listContactDirectMail",
    "variables": {
      "contactId": "<contactId>"
    }
  }'
```
