Create a new widget

Creates a new user-generated widget with type-specific content structure.

Content format by widget type:

  • RICH_TEXT: {"html": "HTML content"}
  • AI_GENERATED_TEXT: {} (empty object - content is generated by calling the AI generation endpoint after widget creation)
  • MEDIA_CONTENT: {"type": "YOUTUBE_VIDEO|LINK|FILE_UPLOAD|GOOGLE_WORKSPACE|PDF_UPLOAD", "url": "...", "fileId": "...", "title": "..."}
  • USER_PDF: {"fileId": "uploaded-file-uuid"}

Media content types:

  • YOUTUBE_VIDEO: YouTube video URLs
  • LINK: Generic web links
  • FILE_UPLOAD: References uploaded files via fileId
  • GOOGLE_WORKSPACE: Google Docs/Sheets/Slides URLs
  • PDF_UPLOAD: References uploaded PDF files via fileId

AI Generated content structure after generation:

  • type: "AI_GENERATED_TEXT"
  • aiContentId: UUID of the generated content record
  • displayContent: The actual generated text content
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params

Widget creation request with type-specific content format

string
length between 0 and 255
string
enum
required
string
length between 0 and 10000
Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json