mcpProvider-backed

Start email oauth

tools/call

Start an interactive Google or Microsoft mailbox connection. Returns a provider consent URL; user consent is still required.

Parameters

workspaceIdrequired
string
No description.
providerrequired
string
No description.
google | microsoft
accountId
string
Existing Pipeline email account ID when reconnecting.
idempotencyKeyrequired
string
No description.

Example

MCP tools/calljson
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "start-email-oauth",
"arguments": {
"workspaceId": "00000000-0000-4000-8000-000000000000",
"provider": "google",
"idempotencyKey": "oauth-example-1"
}
}
}

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"operationId": {
"type": "string"
},
"state": {
"type": "string"
},
"oauthUrl": {
"type": "string"
},
"oauthState": {
"type": "string"
},
"callbackOrigin": {
"type": "string"
}
},
"required": [
"state"
]
}

JSON-RPC errors

-32602
Invalid parameters. Field-level details are returned in the JSON-RPC error data.
-32001
Authentication or hosted AI consent is required.
-32003
Workspace access is denied.
-32029
The request was rate limited.
Pipeline MCP documentation | Pipeline