---
title: "Remove thread labels"
method: DELETE
path: "/v1/mailboxes/{id}/threads/{threadId}/labels"
tags: ["Mailboxes"]
---

# Remove thread labels

`DELETE /v1/mailboxes/{id}/threads/{threadId}/labels`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/mailboxes/{id}/threads/{threadId}/labels`
- Auth: API key in header `x-api-key`

Removes the given labels from the thread and returns where the thread stands. A label the thread does not carry is ignored.

## Path parameters

- `id` string, required
- `threadId` string, required

## Request body

- MailboxThreadLabels
  - `labels` MailboxLabelId[], required

## Response `200`

MailboxThreadState

- MailboxThreadState
  - `id` string, required
  - `folder` 'inbox' | 'assigned' | 'pending' | 'sent' | 'archived' | 'trash', required
  - `priority` 'low' | 'normal' | 'high' | 'urgent', required
  - `labels` MailboxLabelId[], required
  - `read` boolean, required
  - `starred` boolean, required
  - `snoozedUntil` string, nullable, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

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