Googleapis Gmail
Googleapis Gmail is a connector for the Gmail API used to access and manage Gmail messages, labels, drafts, and mailbox settings.
- Base URL:
https://gmail.googleapis.com - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
gmail_users_drafts_list— GET /gmail/v1/users/{userId}/drafts — Lists the drafts in the user's mailbox.gmail_users_drafts_get— GET /gmail/v1/users/{userId}/drafts/{id} — Gets the specified draft.gmail_users_history_list— GET /gmail/v1/users/{userId}/history — Lists the history of all changes to the given mailbox. History results are returgmail_users_labels_list— GET /gmail/v1/users/{userId}/labels — Lists all labels in the user's mailbox.gmail_users_labels_get— GET /gmail/v1/users/{userId}/labels/{id} — Gets the specified label.gmail_users_messages_list— GET /gmail/v1/users/{userId}/messages — Lists the messages in the user's mailbox.
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: gmail_users_drafts_list
# (attach an 'oauth' credential to the task — no inline secrets)
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
operation |
string | yes | — | One of: gmail_users_drafts_list, gmail_users_drafts_get, gmail_users_history_list, gmail_users_labels_list, gmail_users_labels_get, gmail_users_messages_list |
id |
string | no | — | Path parameter id (required by some operations). |
userId |
string | no | — | Path parameter userId (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |