Ilana Docs
API

GET /embed-config

Endpoint

GET /embed-config?botId=<bot-id>

Authentication: None required — this is a public endpoint.

Query Parameters

ParameterTypeRequiredDescription
botIdstringYesThe agent ID

Response (200 OK)

{
  "botName": "Acme Assistant",
  "welcomeMessage": "Hi! How can Acme Assistant help you today?",
  "runtimeEndpoint": "https://api.getilana.ai",
  "cdnUrl": "https://cdn.getilana.ai",
  "poweredByRequired": true,
  "theme": {
    "primaryColor": "#0ea5e9",
    "backgroundColor": "#18181b"
  },
  "suggestedQuestions": [
    { "id": "q1", "text": "What plans do you offer?", "order": 0 },
    { "id": "q2", "text": "How do I get started?", "order": 1 }
  ],
  "suggestedQuestionsStyle": "pills",
  "template": {
    "id": "chat",
    "bundleUrl": "https://cdn.getilana.ai/templates/chat.js",
    "options": {}
  }
}
FieldTypeDescription
botNamestringDisplay name of the agent
welcomeMessagestringWelcome message (with {botName} substituted)
runtimeEndpointstringRuntime API URL for the widget to use
cdnUrlstringCDN base URL for assets
poweredByRequiredbooleanWhether "Powered by Ilana" must be shown
themeWidgetTheme | undefinedTheme configuration set in admin portal
suggestedQuestionsSuggestedQuestion[]Pre-configured questions to show in the widget
suggestedQuestionsStylestringDisplay style: 'pills' or 'message_box'
templateobject | undefinedCustom template configuration

SuggestedQuestion

FieldTypeDescription
idstringQuestion identifier
textstringQuestion display text
ordernumberDisplay order (ascending)

template

FieldTypeDescription
idstringTemplate ID (e.g., 'chat', 'demo-search')
bundleUrlstringURL to the template's JavaScript bundle
optionsobject | undefinedTemplate-specific configuration options

Variable Substitution

The welcomeMessage field supports the {botName} variable, which is automatically replaced with the agent's name before being returned.

Example

curl "https://api.getilana.ai/embed-config?botId=bot-abc-123"

Error Responses

StatusCodeCause
400INVALID_REQUESTMissing botId query parameter
404NOT_FOUNDBot not found or bot is disabled