Step 1: Create a Sub-Account for Your Customer
Each of your customers receives an isolated sub-account. Create one using the Account API:accountId you use in subsequent calls for this customer. See the Create Account reference for full request and response details.
Step 2: Create a Connection and Redirect Your Customer to Authenticate
Create a connection for the sub-account. Connect AI Embed returns a redirect URL that sends your customer to a hosted connection page where they authenticate using their own credentials.redirectURL. Send your customer to that URL. CData handles the authentication UI and credential lifecycle. When the customer completes authentication, Connect AI Embed redirects them back to your application with the connectionId.
See the Create Connection in the API Reference and Connection Flow for full details.