Building a webhook integration? Read the webhook guide for signatures, retries, event schemas, and troubleshooting.
apiProvider-backed

Start email oauth

POST /api/v1/email/connections/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

REST requestbash
curl -X POST "https://app.pipeline.help/api/v1/email/connections/oauth" \
-H "Authorization: Bearer $PIPELINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"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"
]
}

HTTP errors

401
Missing or invalid API key.
403
Authenticated but not permitted for the workspace or resource.
404
The requested resource was not found.
Pipeline REST API reference | Pipeline