Gmail API: users. Access Gmail mailboxes including sending user email. See: https://developers.google.com/gmail/api/api/reference/rest/v1/users
Gmail API: users. Access Gmail mailboxes including sending user email. See: https://developers.google.com/gmail/api/api/reference/rest/v1/users
(drafts-create$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/create
Required parameters: userId
Optional parameters: none
Body:
{:id string, :message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}}
Creates a new draft with the DRAFT label.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/create Required parameters: userId Optional parameters: none Body: {:id string, :message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}} Creates a new draft with the DRAFT label.
(drafts-delete$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/delete
Required parameters: id, userId
Optional parameters: none Immediately and permanently deletes the specified draft. Does not simply trash it.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/delete Required parameters: id, userId Optional parameters: none Immediately and permanently deletes the specified draft. Does not simply trash it.
(drafts-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/get
Required parameters: id, userId
Optional parameters: format Gets the specified draft.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/get Required parameters: id, userId Optional parameters: format Gets the specified draft.
(drafts-list$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/list
Required parameters: userId
Optional parameters: includeSpamTrash, maxResults, pageToken, q Lists the drafts in the user's mailbox.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/list Required parameters: userId Optional parameters: includeSpamTrash, maxResults, pageToken, q Lists the drafts in the user's mailbox.
(drafts-send$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/send
Required parameters: userId
Optional parameters: none
Body:
{:id string, :message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}}
Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/send Required parameters: userId Optional parameters: none Body: {:id string, :message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}} Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
(drafts-update$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/update
Required parameters: id, userId
Optional parameters: none
Body:
{:id string, :message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}}
Replaces a draft's content.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/update Required parameters: id, userId Optional parameters: none Body: {:id string, :message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}} Replaces a draft's content.
(getProfile$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/getProfile
Required parameters: userId
Optional parameters: none Gets the current user's Gmail profile.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/getProfile Required parameters: userId Optional parameters: none Gets the current user's Gmail profile.
(history-list$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/history/list
Required parameters: userId
Optional parameters: historyTypes, labelId, maxResults, pageToken, startHistoryId Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing historyId).
https://developers.google.com/gmail/api/api/reference/rest/v1/users/history/list Required parameters: userId Optional parameters: historyTypes, labelId, maxResults, pageToken, startHistoryId Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing historyId).
(labels-create$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/create
Required parameters: userId
Optional parameters: none
Body:
{:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:backgroundColor string, :textColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string}
Creates a new label.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/create Required parameters: userId Optional parameters: none Body: {:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:backgroundColor string, :textColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string} Creates a new label.
(labels-delete$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/delete
Required parameters: id, userId
Optional parameters: none Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/delete Required parameters: id, userId Optional parameters: none Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.
(labels-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/get
Required parameters: id, userId
Optional parameters: none Gets the specified label.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/get Required parameters: id, userId Optional parameters: none Gets the specified label.
(labels-list$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/list
Required parameters: userId
Optional parameters: none Lists all labels in the user's mailbox.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/list Required parameters: userId Optional parameters: none Lists all labels in the user's mailbox.
(labels-patch$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/patch
Required parameters: id, userId
Optional parameters: none
Body:
{:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:backgroundColor string, :textColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string}
Updates the specified label. This method supports patch semantics.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/patch Required parameters: id, userId Optional parameters: none Body: {:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:backgroundColor string, :textColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string} Updates the specified label. This method supports patch semantics.
(labels-update$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/update
Required parameters: id, userId
Optional parameters: none
Body:
{:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:backgroundColor string, :textColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string}
Updates the specified label.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/update Required parameters: id, userId Optional parameters: none Body: {:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:backgroundColor string, :textColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string} Updates the specified label.
(messages-attachments-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/attachments/get
Required parameters: id, messageId, userId
Optional parameters: none Gets the specified message attachment.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/attachments/get Required parameters: id, messageId, userId Optional parameters: none Gets the specified message attachment.
(messages-batchDelete$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/batchDelete
Required parameters: userId
Optional parameters: none
Body:
{:ids [string]}
Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/batchDelete Required parameters: userId Optional parameters: none Body: {:ids [string]} Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.
(messages-batchModify$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/batchModify
Required parameters: userId
Optional parameters: none
Body:
{:addLabelIds [string], :ids [string], :removeLabelIds [string]}
Modifies the labels on the specified messages.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/batchModify Required parameters: userId Optional parameters: none Body: {:addLabelIds [string], :ids [string], :removeLabelIds [string]} Modifies the labels on the specified messages.
(messages-delete$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/delete
Required parameters: id, userId
Optional parameters: none Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/delete Required parameters: id, userId Optional parameters: none Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.
(messages-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/get
Required parameters: id, userId
Optional parameters: format, metadataHeaders Gets the specified message.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/get Required parameters: id, userId Optional parameters: format, metadataHeaders Gets the specified message.
(messages-import$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/import
Required parameters: userId
Optional parameters: deleted, internalDateSource, neverMarkSpam, processForCalendar
Body:
{:threadId string, :payload {:body MessagePartBody, :filename string, :headers [MessagePartHeader], :mimeType string, :partId string, :parts [MessagePart]}, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}
Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/import Required parameters: userId Optional parameters: deleted, internalDateSource, neverMarkSpam, processForCalendar Body: {:threadId string, :payload {:body MessagePartBody, :filename string, :headers [MessagePartHeader], :mimeType string, :partId string, :parts [MessagePart]}, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string} Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.
(messages-insert$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/insert
Required parameters: userId
Optional parameters: deleted, internalDateSource
Body:
{:threadId string, :payload {:body MessagePartBody, :filename string, :headers [MessagePartHeader], :mimeType string, :partId string, :parts [MessagePart]}, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}
Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/insert Required parameters: userId Optional parameters: deleted, internalDateSource Body: {:threadId string, :payload {:body MessagePartBody, :filename string, :headers [MessagePartHeader], :mimeType string, :partId string, :parts [MessagePart]}, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string} Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.
(messages-list$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/list
Required parameters: userId
Optional parameters: includeSpamTrash, labelIds, maxResults, pageToken, q Lists the messages in the user's mailbox.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/list Required parameters: userId Optional parameters: includeSpamTrash, labelIds, maxResults, pageToken, q Lists the messages in the user's mailbox.
(messages-modify$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/modify
Required parameters: id, userId
Optional parameters: none
Body:
{:addLabelIds [string], :removeLabelIds [string]}
Modifies the labels on the specified message.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/modify Required parameters: id, userId Optional parameters: none Body: {:addLabelIds [string], :removeLabelIds [string]} Modifies the labels on the specified message.
(messages-send$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/send
Required parameters: userId
Optional parameters: none
Body:
{:threadId string, :payload {:body MessagePartBody, :filename string, :headers [MessagePartHeader], :mimeType string, :partId string, :parts [MessagePart]}, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}
Sends the specified message to the recipients in the To, Cc, and Bcc headers.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/send Required parameters: userId Optional parameters: none Body: {:threadId string, :payload {:body MessagePartBody, :filename string, :headers [MessagePartHeader], :mimeType string, :partId string, :parts [MessagePart]}, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string} Sends the specified message to the recipients in the To, Cc, and Bcc headers.
(messages-trash$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/trash
Required parameters: id, userId
Optional parameters: none Moves the specified message to the trash.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/trash Required parameters: id, userId Optional parameters: none Moves the specified message to the trash.
(messages-untrash$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/untrash
Required parameters: id, userId
Optional parameters: none Removes the specified message from the trash.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/untrash Required parameters: id, userId Optional parameters: none Removes the specified message from the trash.
(settings-delegates-create$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/create
Required parameters: userId
Optional parameters: none
Body:
{:delegateEmail string, :verificationStatus string}
Adds a delegate with its verification status set directly to accepted, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user.
Gmail imposes limitations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators.
Note that a delegate user must be referred to by their primary email address, and not an email alias.
Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/create Required parameters: userId Optional parameters: none Body: {:delegateEmail string, :verificationStatus string} Adds a delegate with its verification status set directly to accepted, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-delegates-delete$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/delete
Required parameters: delegateEmail, userId
Optional parameters: none Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it.
Note that a delegate user must be referred to by their primary email address, and not an email alias.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/delete Required parameters: delegateEmail, userId Optional parameters: none Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-delegates-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/get
Required parameters: delegateEmail, userId
Optional parameters: none Gets the specified delegate.
Note that a delegate user must be referred to by their primary email address, and not an email alias.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/get Required parameters: delegateEmail, userId Optional parameters: none Gets the specified delegate. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-delegates-list$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/list
Required parameters: userId
Optional parameters: none Lists the delegates for the specified account.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/list Required parameters: userId Optional parameters: none Lists the delegates for the specified account. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-filters-create$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/create
Required parameters: userId
Optional parameters: none
Body:
{:action {:addLabelIds [string], :forward string, :removeLabelIds [string]}, :criteria {:excludeChats boolean, :hasAttachment boolean, :sizeComparison string, :size integer, :negatedQuery string, :from string, :query string, :subject string, :to string}, :id string}
Creates a filter.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/create Required parameters: userId Optional parameters: none Body: {:action {:addLabelIds [string], :forward string, :removeLabelIds [string]}, :criteria {:excludeChats boolean, :hasAttachment boolean, :sizeComparison string, :size integer, :negatedQuery string, :from string, :query string, :subject string, :to string}, :id string} Creates a filter.
(settings-filters-delete$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/delete
Required parameters: id, userId
Optional parameters: none Deletes a filter.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/delete Required parameters: id, userId Optional parameters: none Deletes a filter.
(settings-filters-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/get
Required parameters: id, userId
Optional parameters: none Gets a filter.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/get Required parameters: id, userId Optional parameters: none Gets a filter.
(settings-filters-list$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/list
Required parameters: userId
Optional parameters: none Lists the message filters of a Gmail user.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/list Required parameters: userId Optional parameters: none Lists the message filters of a Gmail user.
(settings-forwardingAddresses-create$ auth args body)
Required parameters: userId
Optional parameters: none
Body:
{:forwardingEmail string, :verificationStatus string}
Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/create Required parameters: userId Optional parameters: none Body: {:forwardingEmail string, :verificationStatus string} Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-forwardingAddresses-delete$ auth args)
Required parameters: forwardingEmail, userId
Optional parameters: none Deletes the specified forwarding address and revokes any verification that may have been required.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/delete Required parameters: forwardingEmail, userId Optional parameters: none Deletes the specified forwarding address and revokes any verification that may have been required. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-forwardingAddresses-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/get
Required parameters: forwardingEmail, userId
Optional parameters: none Gets the specified forwarding address.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/get Required parameters: forwardingEmail, userId Optional parameters: none Gets the specified forwarding address.
(settings-forwardingAddresses-list$ auth args)
Required parameters: userId
Optional parameters: none Lists the forwarding addresses for the specified account.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/list Required parameters: userId Optional parameters: none Lists the forwarding addresses for the specified account.
(settings-getAutoForwarding$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getAutoForwarding
Required parameters: userId
Optional parameters: none Gets the auto-forwarding setting for the specified account.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getAutoForwarding Required parameters: userId Optional parameters: none Gets the auto-forwarding setting for the specified account.
(settings-getImap$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getImap
Required parameters: userId
Optional parameters: none Gets IMAP settings.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getImap Required parameters: userId Optional parameters: none Gets IMAP settings.
(settings-getLanguage$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getLanguage
Required parameters: userId
Optional parameters: none Gets language settings.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getLanguage Required parameters: userId Optional parameters: none Gets language settings.
(settings-getPop$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getPop
Required parameters: userId
Optional parameters: none Gets POP settings.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getPop Required parameters: userId Optional parameters: none Gets POP settings.
(settings-getVacation$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getVacation
Required parameters: userId
Optional parameters: none Gets vacation responder settings.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getVacation Required parameters: userId Optional parameters: none Gets vacation responder settings.
(settings-sendAs-create$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/create
Required parameters: userId
Optional parameters: none
Body:
{:treatAsAlias boolean, :isDefault boolean, :displayName string, :isPrimary boolean, :signature string, :sendAsEmail string, :verificationStatus string, :replyToAddress string, :smtpMsa {:host string, :password string, :port integer, :securityMode string, :username string}}
Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/create Required parameters: userId Optional parameters: none Body: {:treatAsAlias boolean, :isDefault boolean, :displayName string, :isPrimary boolean, :signature string, :sendAsEmail string, :verificationStatus string, :replyToAddress string, :smtpMsa {:host string, :password string, :port integer, :securityMode string, :username string}} Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-sendAs-delete$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/delete
Required parameters: sendAsEmail, userId
Optional parameters: none Deletes the specified send-as alias. Revokes any verification that may have been required for using it.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/delete Required parameters: sendAsEmail, userId Optional parameters: none Deletes the specified send-as alias. Revokes any verification that may have been required for using it. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-sendAs-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/get
Required parameters: sendAsEmail, userId
Optional parameters: none Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/get Required parameters: sendAsEmail, userId Optional parameters: none Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.
(settings-sendAs-list$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/list
Required parameters: userId
Optional parameters: none Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom "from" aliases.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/list Required parameters: userId Optional parameters: none Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom "from" aliases.
(settings-sendAs-patch$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/patch
Required parameters: sendAsEmail, userId
Optional parameters: none
Body:
{:treatAsAlias boolean, :isDefault boolean, :displayName string, :isPrimary boolean, :signature string, :sendAsEmail string, :verificationStatus string, :replyToAddress string, :smtpMsa {:host string, :password string, :port integer, :securityMode string, :username string}}
Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.
Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority. This method supports patch semantics.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/patch Required parameters: sendAsEmail, userId Optional parameters: none Body: {:treatAsAlias boolean, :isDefault boolean, :displayName string, :isPrimary boolean, :signature string, :sendAsEmail string, :verificationStatus string, :replyToAddress string, :smtpMsa {:host string, :password string, :port integer, :securityMode string, :username string}} Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority. This method supports patch semantics.
(settings-sendAs-smimeInfo-delete$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/delete
Required parameters: id, sendAsEmail, userId
Optional parameters: none Deletes the specified S/MIME config for the specified send-as alias.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/delete Required parameters: id, sendAsEmail, userId Optional parameters: none Deletes the specified S/MIME config for the specified send-as alias.
(settings-sendAs-smimeInfo-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/get
Required parameters: id, sendAsEmail, userId
Optional parameters: none Gets the specified S/MIME config for the specified send-as alias.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/get Required parameters: id, sendAsEmail, userId Optional parameters: none Gets the specified S/MIME config for the specified send-as alias.
(settings-sendAs-smimeInfo-insert$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/insert
Required parameters: sendAsEmail, userId
Optional parameters: none
Body:
{:encryptedKeyPassword string, :expiration string, :id string, :isDefault boolean, :issuerCn string, :pem string, :pkcs12 string}
Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/insert Required parameters: sendAsEmail, userId Optional parameters: none Body: {:encryptedKeyPassword string, :expiration string, :id string, :isDefault boolean, :issuerCn string, :pem string, :pkcs12 string} Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.
(settings-sendAs-smimeInfo-list$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/list
Required parameters: sendAsEmail, userId
Optional parameters: none Lists S/MIME configs for the specified send-as alias.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/list Required parameters: sendAsEmail, userId Optional parameters: none Lists S/MIME configs for the specified send-as alias.
(settings-sendAs-smimeInfo-setDefault$ auth args)
Required parameters: id, sendAsEmail, userId
Optional parameters: none Sets the default S/MIME config for the specified send-as alias.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/setDefault Required parameters: id, sendAsEmail, userId Optional parameters: none Sets the default S/MIME config for the specified send-as alias.
(settings-sendAs-update$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/update
Required parameters: sendAsEmail, userId
Optional parameters: none
Body:
{:treatAsAlias boolean, :isDefault boolean, :displayName string, :isPrimary boolean, :signature string, :sendAsEmail string, :verificationStatus string, :replyToAddress string, :smtpMsa {:host string, :password string, :port integer, :securityMode string, :username string}}
Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.
Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/update Required parameters: sendAsEmail, userId Optional parameters: none Body: {:treatAsAlias boolean, :isDefault boolean, :displayName string, :isPrimary boolean, :signature string, :sendAsEmail string, :verificationStatus string, :replyToAddress string, :smtpMsa {:host string, :password string, :port integer, :securityMode string, :username string}} Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.
(settings-sendAs-verify$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/verify
Required parameters: sendAsEmail, userId
Optional parameters: none Sends a verification email to the specified send-as alias address. The verification status must be pending.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/verify Required parameters: sendAsEmail, userId Optional parameters: none Sends a verification email to the specified send-as alias address. The verification status must be pending. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-updateAutoForwarding$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateAutoForwarding
Required parameters: userId
Optional parameters: none
Body:
{:disposition string, :emailAddress string, :enabled boolean}
Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled.
This method is only available to service account clients that have been delegated domain-wide authority.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateAutoForwarding Required parameters: userId Optional parameters: none Body: {:disposition string, :emailAddress string, :enabled boolean} Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. This method is only available to service account clients that have been delegated domain-wide authority.
(settings-updateImap$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateImap
Required parameters: userId
Optional parameters: none
Body:
{:autoExpunge boolean, :enabled boolean, :expungeBehavior string, :maxFolderSize integer}
Updates IMAP settings.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateImap Required parameters: userId Optional parameters: none Body: {:autoExpunge boolean, :enabled boolean, :expungeBehavior string, :maxFolderSize integer} Updates IMAP settings.
(settings-updateLanguage$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateLanguage
Required parameters: userId
Optional parameters: none
Body:
{:displayLanguage string}
Updates language settings.
If successful, the return object contains the displayLanguage that was saved for the user, which may differ from the value passed into the request. This is because the requested displayLanguage may not be directly supported by Gmail but have a close variant that is, and so the variant may be chosen and saved instead.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateLanguage Required parameters: userId Optional parameters: none Body: {:displayLanguage string} Updates language settings. If successful, the return object contains the displayLanguage that was saved for the user, which may differ from the value passed into the request. This is because the requested displayLanguage may not be directly supported by Gmail but have a close variant that is, and so the variant may be chosen and saved instead.
(settings-updatePop$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updatePop
Required parameters: userId
Optional parameters: none
Body:
{:accessWindow string, :disposition string}
Updates POP settings.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updatePop Required parameters: userId Optional parameters: none Body: {:accessWindow string, :disposition string} Updates POP settings.
(settings-updateVacation$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateVacation
Required parameters: userId
Optional parameters: none
Body:
{:enableAutoReply boolean, :endTime string, :responseBodyHtml string, :responseBodyPlainText string, :responseSubject string, :restrictToContacts boolean, :restrictToDomain boolean, :startTime string}
Updates vacation responder settings.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateVacation Required parameters: userId Optional parameters: none Body: {:enableAutoReply boolean, :endTime string, :responseBodyHtml string, :responseBodyPlainText string, :responseSubject string, :restrictToContacts boolean, :restrictToDomain boolean, :startTime string} Updates vacation responder settings.
(stop$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/stop
Required parameters: userId
Optional parameters: none Stop receiving push notifications for the given user mailbox.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/stop Required parameters: userId Optional parameters: none Stop receiving push notifications for the given user mailbox.
(threads-delete$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/delete
Required parameters: id, userId
Optional parameters: none Immediately and permanently deletes the specified thread. This operation cannot be undone. Prefer threads.trash instead.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/delete Required parameters: id, userId Optional parameters: none Immediately and permanently deletes the specified thread. This operation cannot be undone. Prefer threads.trash instead.
(threads-get$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/get
Required parameters: id, userId
Optional parameters: format, metadataHeaders Gets the specified thread.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/get Required parameters: id, userId Optional parameters: format, metadataHeaders Gets the specified thread.
(threads-list$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/list
Required parameters: userId
Optional parameters: includeSpamTrash, labelIds, maxResults, pageToken, q Lists the threads in the user's mailbox.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/list Required parameters: userId Optional parameters: includeSpamTrash, labelIds, maxResults, pageToken, q Lists the threads in the user's mailbox.
(threads-modify$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/modify
Required parameters: id, userId
Optional parameters: none
Body:
{:addLabelIds [string], :removeLabelIds [string]}
Modifies the labels applied to the thread. This applies to all messages in the thread.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/modify Required parameters: id, userId Optional parameters: none Body: {:addLabelIds [string], :removeLabelIds [string]} Modifies the labels applied to the thread. This applies to all messages in the thread.
(threads-trash$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/trash
Required parameters: id, userId
Optional parameters: none Moves the specified thread to the trash.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/trash Required parameters: id, userId Optional parameters: none Moves the specified thread to the trash.
(threads-untrash$ auth args)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/untrash
Required parameters: id, userId
Optional parameters: none Removes the specified thread from the trash.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/untrash Required parameters: id, userId Optional parameters: none Removes the specified thread from the trash.
(watch$ auth args body)
https://developers.google.com/gmail/api/api/reference/rest/v1/users/watch
Required parameters: userId
Optional parameters: none
Body:
{:labelFilterAction string, :labelIds [string], :topicName string}
Set up or update a push notification watch on the given user mailbox.
https://developers.google.com/gmail/api/api/reference/rest/v1/users/watch Required parameters: userId Optional parameters: none Body: {:labelFilterAction string, :labelIds [string], :topicName string} Set up or update a push notification watch on the given user mailbox.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close