autessa.connectors.gmail
8 methods in the connectors.gmail namespace.
autessa.connectors.gmail.allREAD
autessa.connectors.gmail.all({ pageSize, pageToken })List every Gmail connector you can access in your current company.
List every Gmail connector you can access in your current company. Takes no arguments and returns each connector you have at least READ access to. Use a connector's connectorId with the other Gmail connector methods. Stored credentials are never included.
Request fields
- Name
pageSize- Type
- number
- Description
- Name
pageToken- Type
- string
- Description
Response fields
- Name
connectors- Type
- GmailConnectorDto[]
- Description
- Name
nextPageToken- Type
- string
- Description
autessa.connectors.gmail.deleteMUTATE
autessa.connectors.gmail.delete({ connectorId })Permanently delete a Gmail connector and its stored credential.
Permanently delete a Gmail connector and its stored credential. Removes the connector for connectorId, revoking every tool and script that relied on it. The stored credential is destroyed and cannot be recovered — reconnecting requires the full OAuth flow again. Restricted to the connector's owner. High-risk and irreversible.
Request fields
- Name
connectorId- Type
- string
- Description
Response fields
- Name
message- Type
- string
- Description
autessa.connectors.gmail.getREAD
autessa.connectors.gmail.get({ connectorId })Fetch one Gmail connector by id.
Fetch one Gmail connector by id. Returns the full connector for connectorId — including its linked account email, labels, and sharing and active state — but never the stored credential. Fails if you lack READ access to the connector.
Request fields
- Name
connectorId- Type
- string
- Description
Response fields
- Name
connector- Type
- GmailConnectorDto
- Description
autessa.connectors.gmail.getSharingDetailsREAD
autessa.connectors.gmail.getSharingDetails({ connectorId })Read the current sharing configuration of a Gmail connector.
Read the current sharing configuration of a Gmail connector. Returns how the connector is shared — the overall sharingLevel, the companyPermissionLevel granted for COMPANY sharing, the explicit sharedWith members, and your own userAccessLevel. Use it before share to see the current state.
Request fields
- Name
connectorId- Type
- string
- Description
Response fields
- Name
sharingLevel- Type
- "PRIVATE" | "SPECIFIC_MEMBER" | "COMPANY"
- Description
- Name
companyPermissionLevel- Type
- "READ" | "WRITE" | "PUBLISH" | "ADMIN"
- Description
- Name
sharedWith- Type
- UserShareWrapper[]
- Description
- Name
userAccessLevel- Type
- "READ" | "WRITE" | "PUBLISH" | "ADMIN"
- Description
autessa.connectors.gmail.updateMUTATE
autessa.connectors.gmail.update({ connectorId, connectorName, isActive })Rename a Gmail connector or toggle whether it is active.
Rename a Gmail connector or toggle whether it is active. Applies a sparse patch to the connector for connectorId — send connectorName to rename it, send isActive to enable or disable it. Omit a field to leave it unchanged. Does not touch the stored credential or sharing. Requires WRITE access.
Request fields
- Name
connectorId- Type
- string
- Description
- Name
connectorName- Type
- string
- Description
- Name
isActive- Type
- boolean
- Description
Response fields
- Name
message- Type
- string
- Description
- Name
connector- Type
- GmailConnectorDto
- Description
autessa.connectors.gmail.updateAvailableLabelsMUTATE
autessa.connectors.gmail.updateAvailableLabels({ connectorId, labelsToEnable, labelsToDisable })Enable or disable specific Gmail labels on a connector.
Toggles which of the connector's stored Gmail labels are usable by tools: pass label ids in labelsToEnable to enable them and in labelsToDisable to disable them. Only enabled labels can be used by tools that read Gmail through this connector. Returns the resulting set of enabled labels. Requires WRITE access.
Request fields
- Name
connectorId- Type
- string
- Description
- Name
labelsToEnable- Type
- string[]
- Description
- Name
labelsToDisable- Type
- string[]
- Description
Response fields
- Name
message- Type
- string
- Description
- Name
enabledLabels- Type
- LabelDto[]
- Description
autessa.connectors.gmail.viewAvailableLabelsREAD
autessa.connectors.gmail.viewAvailableLabels({ connectorId })List the Gmail labels stored for a connector, both enabled and disabled.
Returns every Gmail label recorded for this connector in the database — enabled and disabled alike — with each label's id, name, type, and whether it is currently enabled for use by tools. This reads stored metadata and does not make a live Gmail call. Use it before updateAvailableLabels to see what can be toggled.
Request fields
- Name
connectorId- Type
- string
- Description
Response fields
- Name
labels- Type
- LabelDto[]
- Description