v1

latestOpenAPI 3.0.32026-07-24614422630.2 KB
Intelligent Sales Room

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
post/intelligent-sales-rooms/{salesRoomId}/widgets

Path parameters

salesRoomIdstring required

Request body

namestring
type'ORDER_FORM_PDF' | 'CUSTOMER_INFORMATION' | 'ADDITIONAL_INFORMATION' | 'E_SIGNATURE_BUTTON' | 'ACCEPT_PROPOSAL_BUTTON' | 'MEDIA_CONTENT' | 'RICH_TEXT' | 'AI_GENERATED_TEXT' | 'USER_PDF' required
contentstring

Response

successful operation

namestring
idstring uuid
type'ORDER_FORM_PDF' | 'CUSTOMER_INFORMATION' | 'ADDITIONAL_INFORMATION' | 'E_SIGNATURE_BUTTON' | 'ACCEPT_PROPOSAL_BUTTON' | 'MEDIA_CONTENT' | 'RICH_TEXT' | 'AI_GENERATED_TEXT' | 'USER_PDF'
contentstring
createdOninteger
updatedOninteger
salesRoomIdstring
isUserGeneratedboolean
isDeletableboolean
sortOrderinteger