[
{
"handle": "emails",
"meta": {
"short": "Emails",
"description": "Manage emails in the user's Gmail account"
},
"endpoint": {
"value": "users/{{userId}}/messages",
"placeholders": [
{
"name": "userId",
"type": "String",
"description": "The user's email address or unique identifier",
"required": true,
"default": ""
}
]
},
"operations": {
"list": {
"method": "GET",
"path": {
"value": ""
},
"queryParams": {
"includeSpamTrash": {
"value": "false"
},
"maxResults": {
"value": "50"
}
},
"bodyTemplate": {
"value": ""
}
},
"read": {
"method": "GET",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The unique identifier of the email",
"required": true,
"default": ""
}
]
},
"bodyTemplate": {
"value": ""
}
},
"create": {
"method": "POST",
"path": {
"value": "send"
},
"headers": {
"Content-Type": {
"value": "application/json"
}
},
"bodyTemplate": {
"value": "{\"raw\": \"{{raw}}\"}",
"placeholders": [
{
"name": "raw",
"type": "String",
"description": "The raw email content in base64url format",
"required": true,
"default": ""
}
]
}
},
"delete": {
"method": "DELETE",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The unique identifier of the email",
"required": true,
"default": ""
}
]
},
"bodyTemplate": {
"value": ""
}
}
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "The unique identifier of the email"
}
},
{
"name": "threadId",
"type": "String",
"selector": [
"threadId"
],
"meta": {
"description": "The unique identifier of the thread"
}
},
{
"name": "snippet",
"type": "String",
"selector": [
"snippet"
],
"meta": {
"description": "A short snippet of the email"
}
},
{
"name": "subject",
"type": "String",
"selector": [
"payload",
"headers",
"",
"value"
],
"meta": {
"description": "The subject of the email"
}
},
{
"name": "from",
"type": "String",
"selector": [
"payload",
"headers",
"",
"value"
],
"meta": {
"description": "The sender of the email"
}
},
{
"name": "to",
"type": "String",
"selector": [
"payload",
"headers",
"",
"value"
],
"meta": {
"description": "The recipient of the email"
}
},
{
"name": "date",
"type": "String",
"selector": [
"payload",
"headers",
"",
"value"
],
"meta": {
"description": "The date the email was sent"
}
}
],
"webhooks": [
{
"event": "emailReceived",
"path": "/webhooks/gmail/emails",
"payload": [
{
"name": "emailId",
"type": "String",
"selector": [
"message",
"id"
],
"meta": {
"description": "The unique identifier of the email"
}
},
{
"name": "threadId",
"type": "String",
"selector": [
"message",
"threadId"
],
"meta": {
"description": "The unique identifier of the thread"
}
},
{
"name": "snippet",
"type": "String",
"selector": [
"message",
"snippet"
],
"meta": {
"description": "A short snippet of the email"
}
}
]
}
]
},
{
"handle": "labels",
"meta": {
"short": "Labels",
"description": "Manage labels in the user's Gmail account"
},
"endpoint": {
"value": "users/{{userId}}/labels",
"placeholders": [
{
"name": "userId",
"type": "String",
"description": "The user's email address or unique identifier",
"required": true,
"default": ""
}
]
},
"operations": {
"list": {
"method": "GET",
"path": {
"value": ""
},
"bodyTemplate": {
"value": ""
}
},
"read": {
"method": "GET",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The unique identifier of the label",
"required": true,
"default": ""
}
]
},
"bodyTemplate": {
"value": ""
}
},
"create": {
"method": "POST",
"path": {
"value": ""
},
"headers": {
"Content-Type": {
"value": "application/json"
}
},
"bodyTemplate": {
"value": "{\"name\": \"{{name}}\", \"labelListVisibility\": \"{{labelListVisibility}}\", \"messageListVisibility\": \"{{messageListVisibility}}\"}",
"placeholders": [
{
"name": "name",
"type": "String",
"description": "The name of the label",
"required": true,
"default": ""
},
{
"name": "labelListVisibility",
"type": "String",
"description": "The visibility of the label in the label list",
"required": false,
"default": "labelShow",
"options": [
"labelShow",
"labelHide"
]
},
{
"name": "messageListVisibility",
"type": "String",
"description": "The visibility of the label in the message list",
"required": false,
"default": "show",
"options": [
"show",
"hide"
]
}
]
}
},
"update": {
"method": "PATCH",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The unique identifier of the label",
"required": true,
"default": ""
}
]
},
"headers": {
"Content-Type": {
"value": "application/json"
}
},
"bodyTemplate": {
"value": "{\"name\": \"{{name}}\", \"labelListVisibility\": \"{{labelListVisibility}}\", \"messageListVisibility\": \"{{messageListVisibility}}\"}",
"placeholders": [
{
"name": "name",
"type": "String",
"description": "The name of the label",
"required": false,
"default": ""
},
{
"name": "labelListVisibility",
"type": "String",
"description": "The visibility of the label in the label list",
"required": false,
"default": "",
"options": [
"labelShow",
"labelHide"
]
},
{
"name": "messageListVisibility",
"type": "String",
"description": "The visibility of the label in the message list",
"required": false,
"default": "",
"options": [
"show",
"hide"
]
}
]
}
},
"delete": {
"method": "DELETE",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The unique identifier of the label",
"required": true,
"default": ""
}
]
},
"bodyTemplate": {
"value": ""
}
}
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "The unique identifier of the label"
}
},
{
"name": "name",
"type": "String",
"selector": [
"name"
],
"meta": {
"description": "The name of the label"
}
},
{
"name": "type",
"type": "String",
"selector": [
"type"
],
"meta": {
"description": "The type of the label"
}
}
],
"webhooks": [
{
"event": "labelCreated",
"path": "/webhooks/gmail/labels",
"payload": [
{
"name": "labelId",
"type": "String",
"selector": [
"label",
"id"
],
"meta": {
"description": "The unique identifier of the label"
}
},
{
"name": "labelName",
"type": "String",
"selector": [
"label",
"name"
],
"meta": {
"description": "The name of the label"
}
}
]
}
]
},
{
"handle": "drafts",
"meta": {
"short": "Drafts",
"description": "Manage drafts in the user's Gmail account"
},
"endpoint": {
"value": "users/{{userId}}/drafts",
"placeholders": [
{
"name": "userId",
"type": "String",
"description": "The user's email address or unique identifier",
"required": true,
"default": ""
}
]
},
"operations": {
"list": {
"method": "GET",
"path": {
"value": ""
},
"bodyTemplate": {
"value": ""
}
},
"read": {
"method": "GET",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The unique identifier of the draft",
"required": true,
"default": ""
}
]
},
"bodyTemplate": {
"value": ""
}
},
"create": {
"method": "POST",
"path": {
"value": ""
},
"headers": {
"Content-Type": {
"value": "application/json"
}
},
"bodyTemplate": {
"value": "{\"message\": {\"raw\": \"{{raw}}\"}}",
"placeholders": [
{
"name": "raw",
"type": "String",
"description": "The raw email content of the draft in base64url format",
"required": true,
"default": ""
}
]
}
},
"update": {
"method": "PUT",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The unique identifier of the draft",
"required": true,
"default": ""
}
]
},
"headers": {
"Content-Type": {
"value": "application/json"
}
},
"bodyTemplate": {
"value": "{\"message\": {\"raw\": \"{{raw}}\"}}",
"placeholders": [
{
"name": "raw",
"type": "String",
"description": "The raw email content of the updated draft in base64url format",
"required": true,
"default": ""
}
]
}
},
"delete": {
"method": "DELETE",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The unique identifier of the draft",
"required": true,
"default": ""
}
]
},
"bodyTemplate": {
"value": ""
}
}
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "The unique identifier of the draft"
}
},
{
"name": "messageId",
"type": "String",
"selector": [
"message",
"id"
],
"meta": {
"description": "The unique identifier of the draft message"
}
},
{
"name": "messageThreadId",
"type": "String",
"selector": [
"message",
"threadId"
],
"meta": {
"description": "The thread ID of the draft message"
}
},
{
"name": "messageSnippet",
"type": "String",
"selector": [
"message",
"snippet"
],
"meta": {
"description": "A short snippet of the draft message content"
}
}
],
"webhooks": [
{
"event": "draftCreated",
"path": "/webhooks/gmail/drafts",
"payload": [
{
"name": "draftId",
"type": "String",
"selector": [
"draft",
"id"
],
"meta": {
"description": "The unique identifier of the draft"
}
},
{
"name": "messageId",
"type": "String",
"selector": [
"draft",
"message",
"id"
],
"meta": {
"description": "The ID of the message in the draft"
}
}
]
}
]
},
{
"handle": "threads",
"meta": {
"short": "Threads",
"description": "Manage email threads (conversation groups) in the user's Gmail account"
},
"endpoint": {
"value": "users/{{userId}}/threads",
"placeholders": [
{
"name": "userId",
"type": "String",
"description": "The user's email address or 'me'",
"required": true,
"default": ""
}
]
},
"operations": {
"list": {
"method": "GET",
"path": {
"value": ""
},
"queryParams": {
"includeSpamTrash": {
"value": "false"
},
"maxResults": {
"value": "50"
}
},
"bodyTemplate": {
"value": ""
}
},
"read": {
"method": "GET",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The thread identifier",
"required": true,
"default": ""
}
]
},
"bodyTemplate": {
"value": ""
}
},
"delete": {
"method": "DELETE",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The thread identifier",
"required": true,
"default": ""
}
]
},
"bodyTemplate": {
"value": ""
}
}
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "The unique identifier of the thread"
}
},
{
"name": "snippet",
"type": "String",
"selector": [
"snippet"
],
"meta": {
"description": "A short snippet of the thread"
}
},
{
"name": "historyId",
"type": "String",
"selector": [
"historyId"
],
"meta": {
"description": "The ID of the last history record that modified this thread"
}
}
]
},
{
"handle": "history",
"meta": {
"short": "History",
"description": "List the history of changes to the user's mailbox"
},
"endpoint": {
"value": "users/{{userId}}/history",
"placeholders": [
{
"name": "userId",
"type": "String",
"description": "The user's email address or 'me'",
"required": true,
"default": ""
}
]
},
"operations": {
"list": {
"method": "GET",
"path": {
"value": ""
},
"queryParams": {
"historyTypes": {
"value": "{{historyTypes}}"
},
"maxResults": {
"value": "100"
},
"startHistoryId": {
"value": "{{startHistoryId}}"
}
},
"bodyTemplate": {
"value": ""
}
}
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "The mailbox history record ID"
}
},
{
"name": "messagesAdded",
"type": "String",
"selector": [
"messagesAdded"
],
"meta": {
"description": "Messages added to the mailbox in this history record"
}
},
{
"name": "messagesDeleted",
"type": "String",
"selector": [
"messagesDeleted"
],
"meta": {
"description": "Messages deleted from the mailbox in this history record"
}
},
{
"name": "labelsAdded",
"type": "String",
"selector": [
"labelsAdded"
],
"meta": {
"description": "Labels added to messages in this history record"
}
},
{
"name": "labelsRemoved",
"type": "String",
"selector": [
"labelsRemoved"
],
"meta": {
"description": "Labels removed from messages in this history record"
}
}
]
},
{
"handle": "attachments",
"meta": {
"short": "Message Attachments",
"description": "Retrieve attachments from Gmail messages"
},
"endpoint": {
"value": "users/{{userId}}/messages/{{messageId}}/attachments",
"placeholders": [
{
"name": "userId",
"type": "String",
"description": "The user's email address or 'me'",
"required": true,
"default": ""
},
{
"name": "messageId",
"type": "String",
"description": "The ID of the message containing the attachment",
"required": true,
"default": ""
}
]
},
"operations": {
"read": {
"method": "GET",
"path": {
"value": "{{id}}",
"placeholders": [
{
"name": "id",
"type": "String",
"description": "The attachment identifier",
"required": true,
"default": ""
}
]
},
"bodyTemplate": {
"value": ""
}
}
},
"fields": [
{
"name": "attachmentId",
"type": "String",
"selector": [
"attachmentId"
],
"meta": {
"description": "The ID of the attachment"
}
},
{
"name": "size",
"type": "Number",
"selector": [
"size"
],
"meta": {
"description": "The size of the attachment in bytes"
}
},
{
"name": "data",
"type": "String",
"selector": [
"data"
],
"meta": {
"description": "The attachment data encoded in base64url"
}
}
]
},
{
"handle": "profile",
"meta": {
"short": "User Profile",
"description": "Retrieve the authenticated user's Gmail profile"
},
"endpoint": {
"value": "users/{{userId}}/profile",
"placeholders": [
{
"name": "userId",
"type": "String",
"description": "The user's email address or 'me'",
"required": true,
"default": ""
}
]
},
"operations": {
"read": {
"method": "GET",
"path": {
"value": ""
},
"bodyTemplate": {
"value": ""
}
}
},
"fields": [
{
"name": "emailAddress",
"type": "String",
"selector": [
"emailAddress"
],
"meta": {
"description": "The user's email address"
}
},
{
"name": "messagesTotal",
"type": "Number",
"selector": [
"messagesTotal"
],
"meta": {
"description": "The total number of messages in the mailbox"
}
},
{
"name": "threadsTotal",
"type": "Number",
"selector": [
"threadsTotal"
],
"meta": {
"description": "The total number of threads in the mailbox"
}
},
{
"name": "historyId",
"type": "String",
"selector": [
"historyId"
],
"meta": {
"description": "The ID of the mailbox's current history record"
}
}
]
}
]