Create Widget
Widgets
Create Widget
Creates a new widget.
POST
Create Widget
Documentation Index
Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Your API key for authentication.
Body
UUID of the pathway to associate with the widget. Must be defined if
agent_prompt is null.Prompt to use for the widget agent. Must be defined if
pathway_id is null.Array of domains where the widget can be embedded.
Rate limit for messages (minimum: 0).
Widget configuration object (flexible JSON). Supports
timeoutSeconds to configure conversation timeout (default: 86400 seconds / 24 hours).Optional UUID of agent to associate with widget.
Optional URL to receive post-conversation webhook payloads when conversations end. See Post-Conversation Webhooks for payload details.
Response
HTTP status code (200 for success).
The created widget object containing:
id(string): Generated widget UUIDpathway_id(string): Associated pathway UUIDagent_id(string | null): Associated agent UUID or nullallowed_domains(string[]): Array of allowed domainsmessages_per_minute(number): Rate limit for messagesconfig(object): Widget configuration objectwebhook_url(string | null): Post-conversation webhook URL or nullcreated_at(string): ISO timestampupdated_at(string): ISO timestamp
Always null on successful response.
Docs for agents: llms.txt