Gmail

Email Archive

Archive one email in a connected Gmail/Outlook account.

1 creditRuns in your Gmail account

Endpoint

Parameters

NameTypeRequiredNote
emailstring · optionalstringoptional

The other party's email address, used to locate their most recent message when `messageId` is not supplied.

senderstring · optionalstringoptional

The connected email account in this workspace whose mailbox holds the email. Accepts its address ("you@company.com"), its provider-prefixed identifier ("GOOGLE_OAUTH:you@company.com"), or the connected account id from a trigger payload (its `account_id`). NOTE: this is the account you are acting AS — not the address the mail happened to be delivered to, which may be an alias that is not itself connected.

emailIdstring · optionalstringoptional

Alias for `messageId`.

accountIdstring · optionalstringoptional

Alias for `sender` — the connected account id.

messageIdstring · optionalstringoptional

Id of the exact email to archive — as returned by email-list, or the `chat_id` of an email_received trigger payload. PREFER THIS whenever you have it: it targets one specific message, so `email` is then unnecessary.

Response schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "status",
    "providerId"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "status": {
      "enum": [
        "success"
      ],
      "type": "string"
    },
    "providerId": {
      "type": "string"
    }
  },
  "additionalProperties": false
}

Get started

How to use this action

  1. Connect your AI

    Add Connie to ChatGPT, Claude or Slack once, then connect your account for this app. There’s no API key to manage.

  2. Ask for the outcome

    Describe what you need in plain words. Your AI runs this app’s actions when the job calls for them, along with any other tools it needs.

  3. Make it a workflow

    Add an action as a step in a workflow that runs the same way every time, on a schedule or when something happens.

  4. Stay in control

    Choose whether each action runs on its own or asks first. When it asks, you see an Allow or Deny card before anything changes in the app.