Register a site and give it a working, published banner
account.createAppRegisters a domain as a new app and leaves it ready to install: it creates the app, builds and PUBLISHES its banner configuration, and activates it, so install.getSnippet works immediately afterwards. Use it when the customer has an account but no app for this site. It checks the account's existing apps first and will reuse one that is already registered for the domain rather than creating a duplicate; when another app exists on the same base domain it returns a question for the site owner instead of guessing, because a domain cannot be freed once taken. Accepts appearance overrides from demo.suggestDesign so the banner is on-brand from its first render. It does NOT accept compliance settings — the new app starts on the same defaults the dashboard applies, and the result names them. A new app is put on banner engine v2 unless widgetVersion is v1 because the owner asked for the v1 banner; reusing an existing app does not change its engine. On v2, button text is set to 'auto' (readable text picked from the site colours) unless design.btnTextColor is given. No account at all? Call help.startSignup; creating an account needs a password and must be done by the person, in their browser.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domainUrl": "<domainUrl>"
},
"name": "account.createApp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | No | Appearance overrides to apply at creation, so the banner is on-brand from its first render. Pass the `normalized` object from demo.suggestDesign. Appearance only — compliance settings are NOT accepted here. | |
| createNew | No | After the site owner has confirmed they want a separate app for this domain, pass true. | |
| domainUrl | Yes | The site to register, e.g. example.com or https://shop.example.com. This is what the banner's consent records are attributed to, so use the site the snippet will actually run on. | |
| languages | No | Additional language codes to install banner text for. | |
| domainName | No | A friendly name for the app in the dashboard. Defaults to the domain. | |
| description | No | Optional note stored against the app. | |
| widgetVersion | No | Banner engine for a newly created app. Omit this, or pass v2: a new app is put on v2. Pass v1 only when the site owner asked for the v1 banner. Has no effect when an existing app is reused. | |
| defaultLanguage | No | Two-letter language code for the banner's default language. Defaults to `en`. | |
| useExistingAppID | No | After the site owner has chosen an existing app, pass its AppID here. Creates nothing. |