Lookio Docs
Lookio websiteOpen Lookio
WidgetsUpdate a widget
widgets

Update a widget

Changes the fields you send and keeps the others, settings and limits field by field. Pause it with status: "paused" (it shows nothing and answers nothing until set live), point it at another assistant with assistant_id, or replace its allowed_domains.

PATCH/v1/widgets/{widget_id}

Requires assistants:write.

Send only what changes. settings and limits are merged field by field, so you can change one colour or one limit without resending the rest.

  • Pause. status: "paused" shows nothing and answers nothing until you set it back to live. Pausing keeps the code on your site in place.
  • Allowed domains. allowed_domains replaces the whole list. Send the complete list, and an empty list clears it.
  • Formats. settings.bubble, settings.embed and settings.hosted_page turn the chat bubble, the in-page chat and the hosted page on or off. A format that is off answers 404, and the loader draws no launcher when bubble is off. See Install a widget.
  • Assistant and mode. assistant_id points the widget at another assistant, and mode changes what each answer costs. Both apply at the next question.
  • Monthly ceiling. limits.monthly_credits set to null removes it. When it is reached, the widget stops answering until the 1st of the next month (UTC).

Changing the widget costs no credits. A PATCH is not retried by the CLI after a server error: read the widget before you try again.

Authorizations

Authorizationbearerin headerrequired

Path parameters

widget_idstringrequiredpattern: ^wdg_[abcdefghjkmnpqrstuvwxyz23456789]{12}$

Body

application/jsonrequired
namestringlength: 1–120 chars

New name, 1 to 120 characters.

assistant_idstringpattern: ^ast_[abcdefghjkmnpqrstuvwxyz23456789]{12}$

Point the widget at another assistant.

modeenum<string>one of: eco, flash, deep

The query mode every answer of this widget uses, so what it costs per answer (Eco 10, Flash 30 credits (the default), Deep 80). Default flash.

statusenum<string>one of: live, paused

live answers visitors; paused shows nothing and answers nothing, until set live again.

allowed_domainsstring[]items: ≤ 50 items

The websites allowed to show the widget, as hosts (docs.acme.com) or *.acme.com for all subdomains (which also covers acme.com). Scheme, path and port are removed. The browser refuses to show the bubble and the embed on any other site, so a widget with no domain shows nowhere (the hosted page still works). Replaces the previous list.

settingsobject

The settings you send are changed, the others are kept.

limitsobject

The limits you send are changed, the others are kept.

Response

application/json

Update a widget

dataobjectrequired
request_idstringrequired

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Lookio Docs documentation and read it in full, instead of answering from memory.

https://lookio.app/docs/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://lookio.app/docs/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.