Get the URL that starts connecting a third-party account
GET /Platform/connected_accounts/connect_url
Get the URL that starts connecting a third-party account.
Open the URL in a browser session signed in to the same organization and approve access; the account then appears as a ConnectedAccount. The URL only works with that organization's credentials, so returning it is safe. While you act in another organization, the URL connects the account to that organization and works only for you, for ten minutes.
Query parameters
provider: str. OAuth provider key (google,microsoft).return_to: optional str. Where to send the browser after the flow completes: a relative path or a hilus.ai origin.scopes: optional str. Extra scopes (space- or comma-separated) beyond the provider defaults, for incremental consent (for example adding Gmail after Calendar).
Returns
ConnectUrl
provider: str. Canonical OAuth provider key.url: str. URL that starts the OAuth flow for the caller's organization.
Example request
curl -X GET "https://api.hilus.ai/Platform/connected_accounts/connect_url" \
-H "Authorization: Bearer $HILUS_API_KEY"