---
search:
  tags:
    - Inboxes
    - POST
seo:
  description: >-
    Puts 1-10 of the inbox's labels on the thread and… Reference for the POST
    /inboxes/{inbox_id}/threads/{thread_id}/labels endpoint in the BillionSend
    API.
sidebar:
  label: Add labels to a thread
  badge: POST
title: Add labels to a thread
type: openapi-operation
---
Puts 1-10 of the inbox's labels on the thread and keeps the ones it has. If any label is unknown, nothing changes (404). Answers every label on the thread afterwards; one inbox.thread.labels.updated event reports the request.

`POST /inboxes/{inbox_id}/threads/{thread_id}/labels`

**Request body** (`application/json`, required)

- `labels` (string<uuid>[], required) — 1-10 label IDs of the inbox

Request body example:

```json
{
  "labels": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}
```

**Responses**

- `200` — The labels on the thread
- `401` — Missing, malformed, unknown or revoked API key
- `404` — Inbox, thread or label not found
- `422` — Validation error
- `429` — Over the rate limit (rate\_limit\_exceeded, with Retry-After)

Response example, 200:

```json
{
  "object": "list",
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "color": "string"
    }
  ]
}
```
