/app/embed on your Vida domain.
Before you begin
You need:- an eligible Vida reseller account;
- a Vida domain, such as
agents.example.com; - a trusted mapping between each customer in your system and its Vida organization;
- a backend that can authenticate the current user and call the Vida API.
1. Resolve the customer organization
Store the Vida organization ID when you create a customer. Also send your own stableexternalAccountId so the organization can be reconciled later.
- Create a customer organization with the documented Organizations API.
- Resolve an existing customer through
GET /api/v2/getAccountByExternalIdwhen you have its external ID.
2. Generate a one-time authentication token
From your backend, call:externalAccountId. If the
email is not already a member and the external organization is valid, Vida can create the member
without sending an invitation email.
The response includes authToken and the authenticated account ID. Return the one-time token to
your frontend only after verifying the current user belongs to that customer in your system.
3. Build the iframe URL
Use/app/embed on your Vida or white-label domain:
URL and searchParams
instead of concatenating unescaped query strings.
Render the result:
Optional destination and onboarding values
redirectUrl can select a destination inside the same embedded Vida application. Supply a
URL-encoded /app/... destination; external origins and another /app/embed loader are rejected.
For new organizations, you may preselect a template and prefill onboarding:
Prefilling a value does not automatically skip its step. Unknown or unavailable values may be
ignored. Treat onboarding query values as draft inputs, then read and verify the resulting
organization and Agent configuration.
Production checklist
- Verify the signed-in user-to-customer mapping on every token request.
- Keep the Vida API token server-side.
- Use HTTPS for your product and Vida domain.
- Confirm the iframe host’s Content Security Policy permits the Vida domain.
- Test login, logout, account switching, microphone permission, onboarding, and deep links.
- Do not reuse or cache one-time authentication tokens.