AnythingLLM’s Embed feature lets you drop a chat widget into any website by generating a JavaScript snippet tied to a workspace. Each embed has its own configuration — chat mode, domain allowlist, rate limits, and toggle switches that let end-users override the model, temperature, or system prompt. The Embeds API gives you full programmatic control over these configurations and provides read access to the conversations that happen through embedded widgets.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Mintplex-Labs/anything-llm/llms.txt
Use this file to discover all available pages before exploring further.
Embed configurations are identified by a UUID. When you create an embed the
response includes the
uuid field — store this value, as you will need it for
all subsequent read, update, and delete operations.GET /v1/embed
Return a list of every embed configuration on the instance, including a chat message count and the associated workspace name.Response Fields
POST /v1/embed/new
Create a new embed configuration tied to a workspace. Returns the full embed object on success.Body Parameters
Slug of the workspace this embed will use for chat context.
Conversation mode for the widget:
"chat" (general knowledge + documents) or "query" (documents only). Default "chat".Array of domain strings that are permitted to load the widget. Leave empty to allow any domain. Example:
["example.com", "app.example.com"].Allow the embedded widget to accept a
model parameter that overrides the workspace’s default LLM. Default false.Allow the widget to accept a
temperature override. Default false.Allow the widget to accept a custom system
prompt override. Default false.Maximum total chat messages this embed will process across all sessions in a 24-hour period.
null for unlimited.Maximum chat messages per individual session.
null for unlimited.Response Fields
null on success or an error description.GET /v1/embed/{embedUuid}/chats
Retrieve all chat messages sent through a specific embed, across all user sessions.Path Parameters
UUID of the embed to inspect.
Response Fields
GET /v1/embed/{embedUuid}/chats/{sessionUuid}
Retrieve the chat history for a specific embed session. Useful for reviewing a single anonymous user’s conversation.Path Parameters
UUID of the embed.
UUID of the session to retrieve.
Response Fields
POST /v1/embed/{embedUuid}
Update the configuration of an existing embed. All fields are optional — only the ones you supply will be changed.Path Parameters
UUID of the embed to update.
Body Parameters
Enable or disable the embed widget.
Update the conversation mode:
"chat" or "query".Replace the domain allowlist.
Toggle model override permission.
Toggle temperature override permission.
Toggle prompt override permission.
Update the daily chat cap.
Update the per-session chat cap.
Response Fields
Whether the update was applied.
null on success or an error description.DELETE /v1/embed/{embedUuid}
Permanently delete an embed configuration. The widget script on any site still referencing this UUID will stop functioning immediately.Path Parameters
UUID of the embed to delete.
Response Fields
Whether the deletion was successful.
null on success or an error message.