Start Native OAuth
startNativeOAuthStart an OAuth-based connection with a native provider (Gmail, Google Sheets, Outlook, etc.). Returns an authorization URL that must be opened in a browser by a human end-user; once they grant consent, Duvo creates the matching connection and redirects the browser to the optional return_url (or the Duvo dashboard if none is provided). Poll /v2/teams/:team_id/connections to detect the new connection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | No | Duvo team UUID to operate on. API keys are pinned to a single team — omit this (it falls back to the key's team) or pass that same team; a different team is rejected. OAuth callers, who can span multiple teams, should pass the target team here. | |
| provider | Yes | OAuth provider slug (e.g. 'google', 'gmail', 'googlesheets', 'outlook'). Must match a configured native OAuth provider. | |
| return_url | No | Where to send the user's browser after OAuth completes. | |
| reconnect_instance_id | No | When set, the OAuth flow will update the existing connection in place rather than creating a new one. |