Get widget configuration

View as Markdown

Returns the current web widget configuration for the agent. Also includes assistantId (same as the agent ID) as a convenience field for the widget embed code.

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Path parameters

idstringRequired
Agent ObjectId

Response

Widget configuration
successboolean
dataobject
All fields may be absent if not yet configured

Errors

401
Unauthorized Error
404
Not Found Error
500
Internal Server Error