Canonical: https://weaveos.com/reference/gmail/apply-label

1. [Software capabilities](https://weaveos.com/reference)
2. /[Gmail](https://weaveos.com/reference/gmail)
3. /How to apply a Gmail label

Gmail capability

# How to apply a Gmail label

Use users.messages.modify with addLabelIds to label one message programmatically. Gmail’s Labels menu handles manual labeling from a message or a selection.

Documentation reviewed November 26, 2026

## Ways to do it

API

### users.messages.modify

Send addLabelIds to add labels, or removeLabelIds to remove them.

- Requirements

  A Gmail OAuth token with gmail.modify and the Gmail message and label IDs.

- Limitations

  This endpoint changes one message at a time and expects label IDs. Use the label list to resolve a display name.

Example

```
{
  "addLabelIds": [
    "LABEL_ID"
  ]
}
```

[Read source: Gmail message modification reference ↗](https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.messages/modify)

Interface

### Gmail Labels menu

Select messages in Gmail, then use the Labels menu to apply the intended label.

- Requirements

  A Gmail account with access to the selected messages.

- Limitations

  With conversation view on, the label applies to the messages already in the conversation. Future replies do not inherit it automatically.

[Read source: Gmail label management guide ↗](https://support.google.com/mail/answer/118708)

## More from Gmail

[View all Gmail capabilities →](https://weaveos.com/reference/gmail)

- [How to download Gmail attachments↗](https://weaveos.com/reference/gmail/download-attachments)
- [How to search Gmail messages↗](https://weaveos.com/reference/gmail/search-messages)
- [How to retrieve the body of a Gmail message↗](https://weaveos.com/reference/gmail/read-message)
