---
title: "Mark a thread done"
description: "Archive it for everyone."
url: "https://nextmail.sh/docs/api/team/done"
area: "API"
category: "Mailbox"
---

# Mark a thread done

Archive it for everyone.

`POST /threads/{id}/done`

## POST /threads/{id}/done

Archive it for everyone.

## Example

Needs `threads:write`. The thread leaves the inbox for the archive for everyone on the workspace, and `doneBy` and `doneAt` say who marked it done and when. Answers with the assignment.

**curl**

```
curl -X POST "$OE/threads/thr_7c1e4a90/done" -H "$AUTH"
```

**Response**

```
{
  "object": "thread_assignment",
  "threadId": "thr_7c1e4a90",
  "assignee": {
    "object": "team_member",
    "id": "usr_2f9c1d",
    "name": "Grace Hopper",
    "email": "grace@example.com"
  },
  "assignedBy": {
    "object": "team_member",
    "id": "usr_8a41be",
    "name": "Ada Lovelace",
    "email": "ada@example.com"
  },
  "assignedAt": "2026-10-14T09:12:44.000Z",
  "doneBy": {
    "object": "team_member",
    "id": "usr_2f9c1d",
    "name": "Grace Hopper",
    "email": "grace@example.com"
  },
  "doneAt": "2026-10-14T11:02:10.000Z"
}
```

> A key acts for the workspace owner. A key limited to particular addresses or domains reaches only the threads that arrived at them, and any other thread is a 404.

## Reference

- [`POST /threads/{id}/done`](https://nextmail.sh/docs/api/reference/team-inbox#post-threads-id-done): full reference
