sdkProvider-backed
Start email oauth
pipeline.startEmailOauth
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
TypeScripttypescript
await pipeline.startEmailOauth({"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"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.