Skip to main content
widgetic api compositions <command> runs the Compositions operations of the REST API. It has 39 commands. Every command also takes the flags every command takes.

widgetic api compositions add-ai-answers-knowledge-document

Add a document for a widget’s AI to answer from
  • Request: POST /compositions/{id}/adapters/ai-answers/knowledge/documents
  • Operation: addAiAnswersKnowledgeDocument (widgetic api call addAiAnswersKnowledgeDocument runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions add-ai-answers-knowledge-document.

widgetic api compositions add-ai-answers-knowledge-file

Add a text file or a picture of a document (a PDF once PDFs are read) for a widget’s AI to answer from
  • Request: POST /compositions/{id}/adapters/ai-answers/knowledge/documents/file
  • Operation: addAiAnswersKnowledgeFile (widgetic api call addAiAnswersKnowledgeFile runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions add-ai-answers-knowledge-file.

widgetic api compositions check-composition-access

Check Composition Access
  • Request: GET /compositions/{id}/access
  • Operation: checkCompositionAccess (widgetic api call checkCompositionAccess runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions check-composition-access.

widgetic api compositions create-composition

Create Composition
  • Request: POST /compositions
  • Operation: createComposition (widgetic api call createComposition runs it by that name)
  • Also written: widgetic api compositions create
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions create-composition.

widgetic api compositions create-composition-content-item

Add a content list item
  • Request: POST /compositions/{id}/content/{list}/items
  • Operation: createCompositionContentItem (widgetic api call createCompositionContentItem runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions create-composition-content-item.

widgetic api compositions create-composition-database-record

Create Record In Composition Database
  • Request: POST /compositions/{id}/database/{table}
  • Operation: createCompositionDatabaseRecord (widgetic api call createCompositionDatabaseRecord runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions create-composition-database-record.

widgetic api compositions delete-composition

Delete Composition
  • Request: DELETE /compositions/{id}
  • Operation: deleteComposition (widgetic api call deleteComposition runs it by that name)
  • Also written: widgetic api compositions delete
  • Works with any API key.
  • It deletes something, so it asks first; without a terminal it needs --yes.
The whole description and the schemas: widgetic schema api compositions delete-composition.

widgetic api compositions delete-composition-content-item

Delete a content list item
  • Request: DELETE /compositions/{id}/content/{list}/items/{itemId}
  • Operation: deleteCompositionContentItem (widgetic api call deleteCompositionContentItem runs it by that name)
  • Works with any API key.
  • It deletes something, so it asks first; without a terminal it needs --yes.
The whole description and the schemas: widgetic schema api compositions delete-composition-content-item.

widgetic api compositions delete-composition-data-source

Remove the composition data source binding
  • Request: DELETE /compositions/{id}/data-source
  • Operation: deleteCompositionDataSource (widgetic api call deleteCompositionDataSource runs it by that name)
  • Works with any API key.
  • It deletes something, so it asks first; without a terminal it needs --yes.
The whole description and the schemas: widgetic schema api compositions delete-composition-data-source.

widgetic api compositions delete-composition-database-record

Delete Record From Composition Database
  • Request: DELETE /compositions/{id}/database/{table}/{recordId}
  • Operation: deleteCompositionDatabaseRecord (widgetic api call deleteCompositionDatabaseRecord runs it by that name)
  • Works with any API key.
  • It deletes something, so it asks first; without a terminal it needs --yes.
The whole description and the schemas: widgetic schema api compositions delete-composition-database-record.

widgetic api compositions delete-composition-entry-items

Delete composition entry items by id or host context
  • Request: DELETE /compositions/{id}/entries/{table}/items
  • Operation: deleteCompositionEntryItems (widgetic api call deleteCompositionEntryItems runs it by that name)
  • Works with any API key.
  • It deletes something, so it asks first; without a terminal it needs --yes.
The whole description and the schemas: widgetic schema api compositions delete-composition-entry-items.

widgetic api compositions describe-composition-entries

Describe What a Composition Keeps
  • Request: GET /compositions/{id}/entries
  • Operation: describeCompositionEntries (widgetic api call describeCompositionEntries runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions describe-composition-entries.

widgetic api compositions duplicate-composition

Duplicate Composition
  • Request: POST /compositions/{id}/duplicate
  • Operation: duplicateComposition (widgetic api call duplicateComposition runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions duplicate-composition.

widgetic api compositions export-composition-entry-items

Export composition entry items
  • Request: GET /compositions/{id}/entries/{table}/export
  • Operation: exportCompositionEntryItems (widgetic api call exportCompositionEntryItems runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions export-composition-entry-items.

widgetic api compositions get-ai-answers-knowledge

See the documents a widget’s AI answers from
  • Request: GET /compositions/{id}/adapters/ai-answers/knowledge
  • Operation: getAiAnswersKnowledge (widgetic api call getAiAnswersKnowledge runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-ai-answers-knowledge.

widgetic api compositions get-all-compositions

Get All Compositions
  • Request: GET /compositions
  • Operation: getAllCompositions (widgetic api call getAllCompositions runs it by that name)
  • Also written: widgetic api compositions list
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-all-compositions.

widgetic api compositions get-composition-by-id

Get Composition
  • Request: GET /compositions/{id}
  • Operation: getCompositionById (widgetic api call getCompositionById runs it by that name)
  • Also written: widgetic api compositions get
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-by-id.

widgetic api compositions get-composition-content

Get Current Content
  • Request: GET /compositions/{id}/content
  • Operation: getCompositionContent (widgetic api call getCompositionContent runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-content.

widgetic api compositions get-composition-content-schema

Get Content Schema
  • Request: GET /compositions/{id}/schema/content
  • Operation: getCompositionContentSchema (widgetic api call getCompositionContentSchema runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-content-schema.

widgetic api compositions get-composition-data-source

Read the composition data source binding
  • Request: GET /compositions/{id}/data-source
  • Operation: getCompositionDataSource (widgetic api call getCompositionDataSource runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-data-source.

widgetic api compositions get-composition-database-record

Get Record From Composition Database
  • Request: GET /compositions/{id}/database/{table}/{recordId}
  • Operation: getCompositionDatabaseRecord (widgetic api call getCompositionDatabaseRecord runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-database-record.

widgetic api compositions get-composition-database-records

Get All Records From Composition Database Table
  • Request: GET /compositions/{id}/database/{table}
  • Operation: getCompositionDatabaseRecords (widgetic api call getCompositionDatabaseRecords runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-database-records.

widgetic api compositions get-composition-design

Get Composition Design
  • Request: GET /compositions/{id}/design
  • Operation: getCompositionDesign (widgetic api call getCompositionDesign runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-design.

widgetic api compositions get-composition-design-schema

Get Design Schema
  • Request: GET /compositions/{id}/schema/design
  • Operation: getCompositionDesignSchema (widgetic api call getCompositionDesignSchema runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-design-schema.

widgetic api compositions get-composition-embed-schema

Get Embed Schema
  • Request: GET /compositions/{id}/schema/embed
  • Operation: getCompositionEmbedSchema (widgetic api call getCompositionEmbedSchema runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-embed-schema.

widgetic api compositions get-composition-embed-settings

Get Composition Embed Settings
  • Request: GET /compositions/{id}/embed-settings
  • Operation: getCompositionEmbedSettings (widgetic api call getCompositionEmbedSettings runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-embed-settings.

widgetic api compositions get-composition-preview

Get Composition Preview
  • Request: GET /compositions/{id}/preview
  • Operation: getCompositionPreview (widgetic api call getCompositionPreview runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-preview.

widgetic api compositions get-composition-versions

Get Composition Versions
  • Request: GET /compositions/{id}/versions
  • Operation: getCompositionVersions (widgetic api call getCompositionVersions runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-composition-versions.

widgetic api compositions get-compositions-batch

Get Compositions Batch
  • Request: POST /compositions/batch
  • Operation: getCompositionsBatch (widgetic api call getCompositionsBatch runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions get-compositions-batch.

widgetic api compositions list-composition-entry-items

List composition entry items with paging and filters
  • Request: GET /compositions/{id}/entries/{table}/items
  • Operation: listCompositionEntryItems (widgetic api call listCompositionEntryItems runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions list-composition-entry-items.

widgetic api compositions patch-composition-content-item

Update a content list item
  • Request: PATCH /compositions/{id}/content/{list}/items/{itemId}
  • Operation: patchCompositionContentItem (widgetic api call patchCompositionContentItem runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions patch-composition-content-item.

widgetic api compositions read-composition-entries

Read the Entries of a Composition’s Table
  • Request: GET /compositions/{id}/entries/{table}
  • Operation: readCompositionEntries (widgetic api call readCompositionEntries runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions read-composition-entries.

widgetic api compositions remove-ai-answers-knowledge-document

Remove a document from a widget’s knowledge base
  • Request: DELETE /compositions/{id}/adapters/ai-answers/knowledge/documents/{documentId}
  • Operation: removeAiAnswersKnowledgeDocument (widgetic api call removeAiAnswersKnowledgeDocument runs it by that name)
  • Works with any API key.
  • It deletes something, so it asks first; without a terminal it needs --yes.
The whole description and the schemas: widgetic schema api compositions remove-ai-answers-knowledge-document.

widgetic api compositions set-composition-data-source

Bind a public JSON data source for embed refresh
  • Request: PUT /compositions/{id}/data-source
  • Operation: setCompositionDataSource (widgetic api call setCompositionDataSource runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions set-composition-data-source.

widgetic api compositions set-dynamic-content

Set Dynamic Content
  • Request: PUT /compositions/{id}/content
  • Operation: setDynamicContent (widgetic api call setDynamicContent runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions set-dynamic-content.

widgetic api compositions update-composition

Update Composition
  • Request: PUT /compositions/{id}
  • Operation: updateComposition (widgetic api call updateComposition runs it by that name)
  • Also written: widgetic api compositions update
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions update-composition.

widgetic api compositions update-composition-database-record

Update Record In Composition Database
  • Request: PUT /compositions/{id}/database/{table}/{recordId}
  • Operation: updateCompositionDatabaseRecord (widgetic api call updateCompositionDatabaseRecord runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions update-composition-database-record.

widgetic api compositions update-composition-status

Update Composition Status
  • Request: PUT /compositions/{id}/status
  • Operation: updateCompositionStatus (widgetic api call updateCompositionStatus runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions update-composition-status.

widgetic api compositions validate-composition-content

Validate Content
  • Request: POST /compositions/{id}/content/validate
  • Operation: validateCompositionContent (widgetic api call validateCompositionContent runs it by that name)
  • Works with any API key.
The whole description and the schemas: widgetic schema api compositions validate-composition-content.