# POST /email/threads/mark-read

**Resource:** [Email](./email.md)  
**Scopes:** `email:write`  
**Write operation:** yes

Bulk mark email threads as read. Use thread_ids for specific threads, or all:true to mark all unread threads read. Returns the count of threads updated.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `thread_ids` | body | uuid[] | no | Array of thread UUIDs to mark as read (max 100). Omit if using all:true. |
| `all` | body | boolean | no | Set true to mark ALL unread threads as read |

## Request example

```bash
curl -X POST \
  "https://api.trustpager.com/functions/v1/api/v1/email/threads/mark-read" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"all":true}'
```

## Response example

```json
{
  "data": { "success": true, "updated": 14 },
  "meta": { "credits_remaining": 9487 }
}
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`