# Update Thread

> Update a thread's read status, starred status, or category.

> Documentation index: https://www.foxreach.io/docs/llms.txt lists every page of these docs. Each page is also served as Markdown: add `.md` to its URL.

`PATCH` https://api.foxreach.io/api/v1/inbox/threads/{reply_id}

## Path Parameters

- `reply_id` string path required

  The unique identifier of the reply thread.

## Body Parameters

- `isRead` boolean body

  Mark thread as read or unread.

- `isStarred` boolean body

  Star or unstar the thread.

- `category` string body

  Manually override the AI category. One of: `interested`, `not_interested`, `out_of_office`, `bounce`, `unsubscribe`, `uncategorized`, `unknown`, `unrelated`.

## Response

Returns the updated thread object.

**Request example**

```bash cURL
curl -X PATCH "https://api.foxreach.io/api/v1/inbox/threads/rpl_abc123" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "isRead": true,
    "isStarred": true,
    "category": "interested"
  }'
```

```python Python SDK
from foxreach import FoxReach
from foxreach.types import ThreadUpdate

client = FoxReach(api_key="otr_your_key")
thread = client.inbox.update(
    "rpl_abc123",
    ThreadUpdate(is_read=True, category="interested", is_starred=True)
)
```

```typescript TypeScript SDK
import { FoxReach } from "foxreach";

const client = new FoxReach({ apiKey: "otr_your_key" });
const thread = await client.inbox.update("rpl_abc123", {
    isRead: true,
    category: "interested",
    isStarred: true
});
```

**Response example**

```json
{
  "data": {
    "id": "rpl_abc123",
    "fromEmail": "john@acme.com",
    "toEmail": "outreach@yourcompany.com",
    "subject": "Re: Quick question about your product",
    "bodyPreview": "Hi, thanks for reaching out! I'd love to learn more about...",
    "category": "interested",
    "isRead": true,
    "isStarred": true,
    "receivedAt": "2025-01-20T14:30:00",
    "leadId": "cld_xyz789",
    "campaignId": "cmp_def456"
  }
}
```

## Errors

| Status | Description |
|--------|-------------|
| `404` | Thread not found |
| `422` | Invalid category value |

## Rate Limit

- **120 requests per minute, shared by every `write` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`write`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns (`Retry-After`, exponential backoff, monitoring `X-RateLimit-Remaining`), see [Rate Limiting](https://www.foxreach.io/docs/rate-limiting).
