cliProvider-backed

Start email oauth

pipeline start-email-oauth

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

CLI commandbash
pipeline start-email-oauth \
--workspace-id "00000000-0000-4000-8000-000000000000" \
--provider "google" \
--idempotency-key "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"
]
}

Exit codes

1
Invalid input or local configuration.
2
The API or tool returned an error.
3
Authentication failed.
4
A network request failed.
Pipeline CLI documentation | Pipeline