---
title: "Modify message labels"
method: POST
path: "/actions/modify_labels"
tags: ["Actions"]
---

# Modify message labels

`POST /actions/modify_labels`

Modify labels on a Gmail message via a connected Gmail Actions integration.

## Request body

- ModifyLabelsRequest — Modify labels on a Gmail message.
  - `provider` 'reddit' | 'notion' | 'slack' | 'google_calendar' | 'google_mail' | 'box' | 'dropbox' | 'github' | 'google_drive' | 'vault' | 'web_crawler' | 'trace' | 'microsoft_teams' | 'gmail_actions' | 'granola' | 'fathom' | 'fireflies' | 'linear' | 'hubspot' | 'salesforce' | 'coda' | 'lightfield' | 'gong'
  - `connection` string, nullable — Connection ID. If omitted, auto-resolved from provider + user.
  - `message_id` string, required — Gmail message ID
  - `add_labels` string[], nullable — Label IDs to add
  - `remove_labels` string[], nullable — Label IDs to remove

## Response `200`

Successful Response

- ActionResult — Result from executing an integration action.
  - `success` boolean, required
  - `error` string, nullable
  - `provider_response` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/hyperspell/apis/hyperspell-api.md) · [All operations](https://skmtc.net/hyperspell/apis/hyperspell-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperspell/hyperspell-api/revisions/5721acd588e6/schema)
