---
title: "Archive a message"
method: POST
path: "/actions/archive"
tags: ["Actions"]
---

# Archive a message

`POST /actions/archive`

Archive a Gmail message by removing the INBOX label.

## Request body

- ArchiveRequest — Archive 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 to archive

## 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)
