API reference
Get the Ask Io widget's branding
The account's Ask Io widget: its widget_id, the branding stored (name, tagline, avatar, logo, colours), its revision, whether the plan lets custom branding show (custom_branding_allowed, plan, required_plan) and the config the public widget answers now. The title is always "AI Agent". A key with account:read reads its own account's.
Needs scope account:read.
bearerAuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
org_id*stringThe account's id: org in GET /v1/me.
iohr.accounts.v1.GetWidgetBrandingResponse
application/json- response
iohr.accounts.v1.GetWidgetBrandingResponse
branding?iohr.accounts.v1.WidgetBranding
config?iohr.accounts.v1.WidgetConfig
custom_branding_allowed*booleanplan*stringrequired_plan*stringrevision*stringint64updated_at*stringwidget_id*stringimport { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { const { value } = await api.accounts.getWidgetBranding("<org_id>"); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "branding": { "accent": "string", "accent_foreground": "string", "avatar_url": "string", "logo_url": "string", "name": "string", "surface": "string", "tagline": "string" }, "config": { "avatar_url": "string", "colors": { "accent": "string", "accent_foreground": "string", "surface": "string" }, "custom_branding": true, "logo_url": "string", "name": "string", "powered_by": true, "tagline": "string", "title": "string", "widget_id": "string" }, "custom_branding_allowed": true, "plan": "string", "required_plan": "string", "revision": "string", "updated_at": "string", "widget_id": "string"}