# Gmail API Documentation

This is the complete API documentation for connecting to the Gmail API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Gmail connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/gmail/actions/{actionSlug}/run
```

## Gmail actions

- PUT `batch-modify-emails` Batch Modify Emails
- POST `create-draft` Create Draft
- POST `create-label` Create Label
- DELETE `delete-draft` Delete Draft
- DELETE `delete-label` Delete Label
- GET `get-draft` Get Draft
- GET `get-email` Get Email
- GET `get-email-attachment` Get Email Attachment
- GET `get-email-signature` Get Email Signature
- GET `get-filter` Get Filter
- GET `get-label` Get Label
- GET `get-profile` Get Profile
- GET `get-thread` Get Thread
- GET `get-vacation-settings` Get Vacation Settings
- POST `import-email` Import Email
- POST `insert-email` Insert Email
- GET `list-drafts` List Drafts
- GET `list-emails` List Emails
- GET `list-filters` List Filters
- GET `list-labels` List Labels
- GET `list-threads` List Threads
- PUT `modify-email-labels` Modify Email Labels
- PUT `modify-thread-labels` Modify Thread Labels
- PUT `patch-label` Patch Label
- POST `send-draft` Send Draft
- POST `send-email` Send Email
- POST `start-mailbox-watch-action` Start Mailbox Watch (Action)
- PUT `stop-mailbox-watch` Stop Mailbox Watch
- PUT `trash-email` Trash Email
- PUT `trash-thread` Trash Thread
- PUT `untrash-email` Untrash Email
- PUT `untrash-thread` Untrash Thread
- PUT `update-draft` Update Draft
- PUT `update-label` Update Label
