# Developer documentation - [Build with Widgetic](https://docs.widgetic.com/docs/introduction.md): Create, publish and embed interactive widgets from your code, your terminal or your AI assistant. - [Quickstart](https://docs.widgetic.com/docs/quickstart.md): Start with your AI agent, or make your first Widgetic API call in minutes - [Authentication](https://docs.widgetic.com/docs/authentication.md): Learn how to authenticate with the Widgetic API - [API keys](https://docs.widgetic.com/docs/api-keys.md): Organisation keys and partner keys, which one you need, what each can call, how much a key may do (full access, content, read only or custom), and how to tell which one you hold - [API Overview](https://docs.widgetic.com/docs/api/overview.md): Use the Widgetic API to manage your widgets and compositions - [Widgets](https://docs.widgetic.com/docs/api/widgets.md): List, create and manage widgets via the API - [Compositions](https://docs.widgetic.com/docs/api/compositions.md): A widget set up for one place, with its content, design and embed settings - [Embedding widgets](https://docs.widgetic.com/docs/api/embedding.md): Put a published composition on your website as a box in the page, a pop-up or a floating box, choose when it opens, and listen for events - [Embed settings](https://docs.widgetic.com/docs/api/embed-settings.md): Every option of the Embed code screen, with its key in embedSettings and its attribute on the widgetic tag - [Embed a workflow](https://docs.widgetic.com/docs/api/embedding-workflows.md): Show a path of compositions in one place, with the embed tag on your page or with a frame and an oEmbed card where you cannot add a tag - [Canvases](https://docs.widgetic.com/docs/api/canvases.md): Work with widget editing canvases - [Rate Limits](https://docs.widgetic.com/docs/reference/rate-limits.md): Understanding rate limits in the Widgetic API - [Idempotency](https://docs.widgetic.com/docs/reference/idempotency.md): Safely retry requests with idempotency keys - [SDKs](https://docs.widgetic.com/docs/sdks/overview.md): The Widgetic libraries for TypeScript, Python, Go, Java, C#, Ruby, PHP and Bash, what each one needs, and which tool to pick for the job - [Get started with an SDK](https://docs.widgetic.com/docs/sdks/getting-started.md): Install a Widgetic library, set your API key and make a first call in TypeScript, Python, Go, Java, C#, Ruby or PHP - [Requests and errors](https://docs.widgetic.com/docs/sdks/requests-and-errors.md): Page through a list, create something safely with an idempotency key, and handle an error or a call that gets no answer, in TypeScript, Python, Go, Java, C#, Ruby and PHP - [API classes](https://docs.widgetic.com/docs/sdks/api-classes.md): The classes of the Widgetic libraries, what each one covers, which key it takes, and how a call is named in each language - [CLI getting started](https://docs.widgetic.com/docs/cli/getting-started.md): Install the widgetic CLI, sign in, make a first call and build a widget from your terminal. - [Configuration](https://docs.widgetic.com/docs/cli/configuration.md): Where the CLI finds your API key, the profiles and environment variables it reads, the files it keeps, how to check the setup and how it updates itself. - [Keys and workspaces](https://docs.widgetic.com/docs/cli/keys-and-workspaces.md): Which CLI commands need a partner key, which workspace a change goes to, and what happens when the workspace has no plan. - [Scripts and CI](https://docs.widgetic.com/docs/cli/scripts-and-ci.md): Use the CLI from scripts and CI jobs, with JSON output, exit codes, retries, a way to wait for a build and a GitHub Actions recipe. - [Find a command](https://docs.widgetic.com/docs/cli/find-a-command.md): Every widgetic command is one endpoint of the REST API or one tool of the MCP server. How to go from an endpoint to its command, how commands are named, and how to look one up in the terminal. - [AI agents (MCP)](https://docs.widgetic.com/docs/agents/overview.md): Build, preview, publish and embed Widgetic widgets from ChatGPT, Codex, Cursor, Claude Code, VS Code and any other MCP client - [Connect your assistant](https://docs.widgetic.com/docs/agents/connect.md): Add the Widgetic MCP server to ChatGPT, Codex, Cursor, Claude Code, VS Code or any MCP client - [Tools reference](https://docs.widgetic.com/docs/agents/tools.md): The tools the Widgetic MCP server offers, what each does, what it costs and which permission it needs - [Authentication](https://docs.widgetic.com/docs/agents/authentication.md): How an AI assistant signs in to Widgetic, which permissions it can hold, and how to revoke its access - [Build your own client](https://docs.widgetic.com/docs/agents/build-a-client.md): How the Widgetic MCP server behaves around a call, for people who write their own client: the tool contract, questions before a build, progress, files, errors and several agents on one account - [Docs for agents](https://docs.widgetic.com/docs/agents/docs-for-agents.md): Let your coding agent search and read these docs, and report a page that is wrong - [Webhooks and events](https://docs.widgetic.com/docs/webhooks/overview.md): When Widgetic calls your server, with partner webhooks for your account and your customers and MCP events for the entries visitors send - [Partner webhooks](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md): Save an address, choose the events you get, answer a call, and know how a failed one is tried again - [Events](https://docs.widgetic.com/docs/webhooks/events.md): Every event a partner account can be told about, when it happens, and whether it is also emailed - [MCP events](https://docs.widgetic.com/docs/webhooks/mcp-events.md): Be called when a visitor sends an entry (a vote, an RSVP, a form answer) into one of your published widgets - [Verify signatures](https://docs.widgetic.com/docs/webhooks/verify-signatures.md): Check that a call to your server really comes from Widgetic, in TypeScript, Python, Go, Java, C#, Ruby and PHP - [Partner Overview](https://docs.widgetic.com/docs/partners/overview.md): Build widgets for your customers with the Widgetic API and show them in your platform - [Connect and check the API](https://docs.widgetic.com/docs/partners/connect.md): The four checks every partner runs before writing integration code - [Account Status](https://docs.widgetic.com/docs/partners/account-status.md): How a partner account is activated, what a pause, an unpaid invoice or the end of the partnership stops, and how it starts again - [Managed Users](https://docs.widgetic.com/docs/partners/managed-users.md): Keep a record of your platform's customers in Widgetic, and file what they make under them - [Editor Sessions](https://docs.widgetic.com/docs/partners/editor-sessions.md): Let one of your customers use Widgetic's editors in your page, without your API key reaching the browser - [UI Components](https://docs.widgetic.com/docs/partners/ui-components.md): Put Widgetic's File Browser, Composition Editor, Embed Editor, Widget Creator and Workflows in your own page - [File Browser](https://docs.widgetic.com/docs/partners/ui-components/file-browser.md): Let your customers browse, upload and pick files in your page, from Widgetic's media library or from your own - [Composition Editor](https://docs.widgetic.com/docs/partners/ui-components/composition-editor.md): Let your customers change the texts, pictures, colours and fonts of a widget they own, beside a live preview, in your page - [Embed Editor](https://docs.widgetic.com/docs/partners/ui-components/embed-editor.md): Let your customers decide how and where a widget of theirs shows on a page, and give them the embed code, beside an assistant that sets the options from a sentence - [Widget Creator](https://docs.widgetic.com/docs/partners/ui-components/widget-creator.md): Let your customers make widgets with Widgetic's canvas and its agentic chat, inside your page - [Workflows](https://docs.widgetic.com/docs/partners/ui-components/workflows.md): Let your customers build paths of compositions in your page, and show them with one embed tag - [A/B Tests and Translations](https://docs.widgetic.com/docs/partners/ab-tests-and-translations.md): Make and manage A/B tests and translations for your customers from your server, one customer at a time - [Brand Kit](https://docs.widgetic.com/docs/partners/brand-kit.md): Give every widget your account makes your own colors, fonts, icons and corner radius, in place of Widgetic's default look - [Versions & Changelog](https://docs.widgetic.com/docs/partners/module-versions.md): Pin the version of a piece, read what changed in each version, and upgrade when you choose - [Storage](https://docs.widgetic.com/docs/partners/storage.md): The bucket your customers' files are kept in, how to set it up, and how to see what each customer keeps - [Visitor data in your Neon database](https://docs.widgetic.com/docs/partners/visitor-data-database.md): Optional Neon database for visitor entries in partner widgets - [Credits & Billing](https://docs.widgetic.com/docs/partners/credits-billing.md): How invoices, AI credits and storage work for a partner account - [Notifications](https://docs.widgetic.com/docs/partners/notifications.md): What Widgetic tells you about your account, by email, in your dashboard and as signed calls to your own system - [Partner Dashboard](https://docs.widgetic.com/docs/partners/dashboard.md): What you can see and do for your partner account on widgetic.com, and the API calls behind each screen - [Go-live checklist](https://docs.widgetic.com/docs/partners/go-live.md): Tick these before your customers use widgets in production - [Ending a Partnership](https://docs.widgetic.com/docs/partners/ending-a-partnership.md): How a partnership comes to an end - the last day, the 60-day wind-down, what is turned off and when, how to take your data with you, and what Widgetic keeps - [API reference](https://docs.widgetic.com/api-reference/introduction.md): The base URL, authentication, responses, errors and the conventions that every Widgetic API endpoint shares. - [Pagination](https://docs.widgetic.com/api-reference/pagination.md): How pagination works in the Widgetic API - [Usage Limits](https://docs.widgetic.com/api-reference/usage-limits.md): Rate limits and quotas for the Widgetic API - [Errors](https://docs.widgetic.com/api-reference/errors.md): Error codes and handling in the Widgetic API - [List widgets](https://docs.widgetic.com/api-reference/widgets/get-widgets.md): Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic's widgets. - [Create a widget](https://docs.widgetic.com/api-reference/widgets/create-widget.md): Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or on an empty canvas of yours that you name: a canvas holds one widget, and one that already has a widget is refused with 409 and `CANVAS_ALREADY_HAS_WIDGET`). It costs no credits and ha… - [Get widgets in a batch](https://docs.widgetic.com/api-reference/widgets/get-widgets-batch.md): Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session's managed user are returned. - [Create a composition from a widget](https://docs.widgetic.com/api-reference/widgets/create-composition-from-widget.md): After a managed user publishes a widget from the creator, call this with the widget id, the customer's managed user (when the widget is not already filed under one), and optional content, design, embed settings and locale. Every input is validated before a single insert; a failure never leaves a hal… - [Set a widget's managed user](https://docs.widgetic.com/api-reference/widgets/set-widget-managed-user.md): Files a widget you made under a managed user, or moves it to another one, after it was created. Name the managed user by Widgetic's id (`managedUserId`) or by your own identifier for the user (`managedUserExternalId`), never both. It must be one of your managed users, and switched on (`409 MANAGED_U… - [Remove a widget's managed user](https://docs.widgetic.com/api-reference/widgets/remove-widget-managed-user.md): Takes a widget off the managed user it is filed under, so it is your own again. Its canvas comes off the managed user with it. The compositions made from the widget keep the managed user each one is filed under. A widget that is filed under no one answers the same, so a retry is safe. - [List compositions](https://docs.widgetic.com/api-reference/compositions/get-all-compositions.md): Retrieves all compositions with pagination support. - [Create a composition](https://docs.widgetic.com/api-reference/compositions/create-composition.md): Creates a new composition. - [Get compositions in a batch](https://docs.widgetic.com/api-reference/compositions/get-compositions-batch.md): Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. - [Get a composition](https://docs.widgetic.com/api-reference/compositions/get-composition-by-id.md): Retrieves a specific composition by its ID. - [Update a composition](https://docs.widgetic.com/api-reference/compositions/update-composition.md): Updates a specific composition. - [Delete a composition](https://docs.widgetic.com/api-reference/compositions/delete-composition.md): Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them). - [Duplicate a composition](https://docs.widgetic.com/api-reference/compositions/duplicate-composition.md): Creates a duplicate of an existing composition for the authenticated user. - [Get an operation's status](https://docs.widgetic.com/api-reference/operations/get-operation.md): Follows work that carries on after the response that started it. Duplicating a composition, for one, answers 202 with an `operationId`: ask for that operation until its `status` is `completed` (or `failed`, with the reason in `error`). A finished duplication names the new composition in `metadata.ne… - [Change a composition's status](https://docs.widgetic.com/api-reference/compositions/update-composition-status.md): Updates the status of a specific composition. - [Set a composition's managed user](https://docs.widgetic.com/api-reference/compositions/set-composition-managed-user.md): Files a composition you made under a managed user, or moves it to another one, after it was created. Name the managed user by Widgetic's id (`managedUserId`) or by your own identifier for the user (`managedUserExternalId`), never both. It must be one of your managed users, and switched on (`409 MANA… - [Remove a composition's managed user](https://docs.widgetic.com/api-reference/compositions/remove-composition-managed-user.md): Takes a composition off the managed user it is filed under, so it is your own again. Nothing else about the composition changes, except `updatedAt`, which moves as for any change. A composition that is filed under no one answers the same and changes nothing, so a retry is safe. - [List composition versions](https://docs.widgetic.com/api-reference/compositions/get-composition-versions.md): Retrieves version history for a specific composition. - [Check access to a composition](https://docs.widgetic.com/api-reference/compositions/check-composition-access.md): Checks if the authenticated user can access a specific composition based on workspace context and permissions. - [Get a composition preview](https://docs.widgetic.com/api-reference/compositions/get-composition-preview.md): Returns the address of the page an editor shows the composition in: the page of the widget's published version on the CDN, with the widget and version it is. Load it in a frame, then send the frame what to show (the content, design and embed settings you read from the composition, and every change t… - [Get a composition's design](https://docs.widgetic.com/api-reference/compositions/get-composition-design.md): Retrieves only the design field from a composition. - [Get a composition's embed settings](https://docs.widgetic.com/api-reference/compositions/get-composition-embed-settings.md): Retrieves only the embedSettings field from a composition. - [Get a composition's content](https://docs.widgetic.com/api-reference/compositions/get-composition-content.md): Retrieves the current content of a composition - [Update a composition's content](https://docs.widgetic.com/api-reference/compositions/set-dynamic-content.md): Updates the content of a composition dynamically with optional schema validation. - [Validate content](https://docs.widgetic.com/api-reference/compositions/validate-composition-content.md): Checks content against the composition's widget schema without saving it. Send what a content update (`PUT /compositions/{id}/content`) would store, `{ "design": {...}, "content": {...} }`, or the widget's values alone. Each value is checked by the kind of field the widget declares for it: text, a n… - [Add a content list item](https://docs.widgetic.com/api-reference/compositions/create-composition-content-item.md): Creates one item in a widget content list without replacing the whole list. Item field keys are widget data (camelCase or snake_case are kept as sent). Partners use this to keep galleries in sync. - [Update a content list item](https://docs.widgetic.com/api-reference/compositions/patch-composition-content-item.md) - [Delete a content list item](https://docs.widgetic.com/api-reference/compositions/delete-composition-content-item.md) - [Get a composition's data source](https://docs.widgetic.com/api-reference/compositions/get-composition-data-source.md): The data source that is bound to the composition: `url` and `refreshSeconds`. The answer's `data` is `null` when none is bound, and also when what is stored does not pass the rule for a public https address (a binding written by another path, such as the general embed-settings update, is never shown… - [Bind a data source to a composition](https://docs.widgetic.com/api-reference/compositions/set-composition-data-source.md): Stores an https URL the widget runtime may read on load and every `refreshSeconds`. The URL must name a public host (no loopback, link-local or metadata addresses). A composition has one binding: saving another replaces it. The answer is the binding as it was saved (`url`, `refreshSeconds`). - [Remove a composition's data source](https://docs.widgetic.com/api-reference/compositions/delete-composition-data-source.md): Removes the binding. Asking again, or asking for a composition that had none, is not an error: the composition has no data source afterwards, and that is all `removed: true` says. - [Get the content schema](https://docs.widgetic.com/api-reference/compositions/get-composition-content-schema.md): Retrieves the content schema for a composition based on its widget type - [Get the design schema](https://docs.widgetic.com/api-reference/compositions/get-composition-design-schema.md): Retrieves the design schema for a composition based on its widget type - [Get the embed schema](https://docs.widgetic.com/api-reference/compositions/get-composition-embed-schema.md): Retrieves the definition of the composition's Embed tab: which settings exist, what each one holds, what it defaults to, and when its control is shown. It is the third tab beside `schema/content` and `schema/design`, in the same format (`componentGroups` → `components` → `propertyGroups` → `properti… - [Describe a composition's entry tables](https://docs.widgetic.com/api-reference/compositions/describe-composition-entries.md): Names the tables a composition's widget keeps entries in (the votes, ratings, answers or sign-ups its visitors left), their columns, and how many entries each holds. Call it first to learn the table and column names that `readCompositionEntries` takes. - [Count and tally entries](https://docs.widgetic.com/api-reference/compositions/read-composition-entries.md): Counts the entries visitors left in one table, tallies them per value of a column on request, and returns the newest entries only when asked to. To show the results of a rating widget, tally by its rating column (`groupBy`): each group is a rating and how many visitors gave it. The average is then `… - [List entry items](https://docs.widgetic.com/api-reference/compositions/list-composition-entry-items.md): Reads one widget table with cursor paging (time then id in byte order), optional since/until on the time column, and up to five context filters plus ten column filters. Rate limit 120 requests per minute. Each read batch uses a 5 s statement timeout. - [Export entry items](https://docs.widgetic.com/api-reference/compositions/export-composition-entry-items.md): Streams up to 50,000 matching rows in batches of 1,000. Tables without cursor paging export at most one batch; when more rows exist the response sets `X-Widgetic-Export-Truncated: true`. Rate limit 20 requests per minute. - [Delete entry items](https://docs.widgetic.com/api-reference/compositions/delete-composition-entry-items.md): Delete by comma-separated ids (1–100) or by context filters (not both). Rate limit 30 requests per minute. - [List database records](https://docs.widgetic.com/api-reference/compositions/get-composition-database-records.md): Retrieves all records from one of the composition's tables. Only the composition's own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`. - [Create a database record](https://docs.widgetic.com/api-reference/compositions/create-composition-database-record.md): Creates a new record in one of the composition's tables. Only the composition's own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`. - [Get a database record](https://docs.widgetic.com/api-reference/compositions/get-composition-database-record.md): Retrieves a specific record from one of the composition's tables. Only the composition's own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`. - [Update a database record](https://docs.widgetic.com/api-reference/compositions/update-composition-database-record.md): Updates a specific record in one of the composition's tables. Only the composition's own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`. - [Delete a database record](https://docs.widgetic.com/api-reference/compositions/delete-composition-database-record.md): Deletes a specific record from one of the composition's tables. Only the composition's own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`. - [List AI knowledge documents](https://docs.widgetic.com/api-reference/compositions/get-ai-answers-knowledge.md): The `ai-answers` adapter lets a widget answer a visitor's question with text an AI model writes from documents the widget's owner provides. This lists those documents, and how much room is left for more: `totals` carries the widget's limits next to what it uses. - [Add an AI knowledge document](https://docs.widgetic.com/api-reference/compositions/add-ai-answers-knowledge-document.md): Gives the widget's AI a document to answer visitors' questions from. Send the title and the plain text. The call returns once the document is ready to be used, which takes a few seconds, longer for a long text. - [Add an AI knowledge file](https://docs.widgetic.com/api-reference/compositions/add-ai-answers-knowledge-file.md): Gives the widget's AI a document made from a file. Send a `multipart/form-data` request with the file in the field named `file` and, if you like, a `title`. The file is turned into text and then added exactly as `addAiAnswersKnowledgeDocument` adds text: the same cleaning, the same limits, the same… - [Remove an AI knowledge document](https://docs.widgetic.com/api-reference/compositions/remove-ai-answers-knowledge-document.md): Removes one document and its passages: the widget's AI stops answering from it at once. Take the `documentId` from `getAiAnswersKnowledge`. - [List canvases](https://docs.widgetic.com/api-reference/canvases/get-all-canvases.md): Retrieves all canvases with pagination support and filtering options. - [Create a canvas](https://docs.widgetic.com/api-reference/canvases/create-canvas.md): Creates a new canvas with the specified properties. - [Get a canvas](https://docs.widgetic.com/api-reference/canvases/get-canvas.md): Retrieves a specific canvas by ID. - [Update a canvas](https://docs.widgetic.com/api-reference/canvases/update-canvas.md): Updates an existing canvas with the specified properties. - [Delete a canvas](https://docs.widgetic.com/api-reference/canvases/delete-canvas.md): Deletes a canvas together with its widget. - [List workflows](https://docs.widgetic.com/api-reference/workflows/list-workspace-workflows.md): Lists the workspace's workflows, newest first unless `sort` says otherwise. Archived workflows are left out unless `status` asks for them (`archived`, or `all`). The workspace is named by its UUID. Any active member can read the list. Only a partner has managed users, so `managedUserId` and `managed… - [Create a workflow](https://docs.widgetic.com/api-reference/workflows/create-workspace-workflow.md): Makes a draft workflow. Give it a composition and the workflow is born with one block, which starts it; without one it starts empty. A workspace holds up to 500 workflows. The workspace is named by its UUID. Any active member can create one. - [Get a workflow](https://docs.widgetic.com/api-reference/workflows/get-workspace-workflow.md): Reads a workflow with its draft graph and the version that is live. The workspace is named by its UUID. Any active member can read it. - [Save a workflow draft](https://docs.widgetic.com/api-reference/workflows/save-workspace-workflow.md): Saves the name, the time zone and/or the graph of the draft. Send at least one. The save names the `revision` the editor started from and is refused with 409 (`BUSINESS_STATE_CONFLICT`) when the draft has moved on, so two people editing do not overwrite each other without knowing; read the workflow… - [Delete a workflow](https://docs.widgetic.com/api-reference/workflows/delete-workspace-workflow.md): Deletes a workflow, in whatever state it is in (draft, live, paused or archived), with all its versions and counts. It cannot be undone: archive the workflow instead to keep it. The compositions it chained are not touched, and a page whose embed still names the workflow shows the embed's first compo… - [Duplicate a workflow](https://docs.widgetic.com/api-reference/workflows/duplicate-workspace-workflow.md): Makes a draft copy of a workflow (its draft graph, not its versions or counts), named " (copy)". The workspace is named by its UUID. Any active member can duplicate. - [Publish a workflow](https://docs.widgetic.com/api-reference/workflows/publish-workspace-workflow.md): Checks the draft and, when nothing stops it, makes it the next version and the one new visitors get. Versions never change once published. A visitor already partway through keeps the version they started on (for up to 30 days). The check reads what each composition can do right now (a table the visi… - [Discard workflow changes](https://docs.widgetic.com/api-reference/workflows/discard-workspace-workflow-changes.md): Puts the draft back to the live version (its graph and its time zone). Only for a workflow that has been published; one that never was has no live version to go back to. Names the `revision` the editor read. The workspace is named by its UUID. Any active member can discard. - [Pause a workflow](https://docs.widgetic.com/api-reference/workflows/pause-workspace-workflow.md): While a workflow is paused, its embeds show only their first composition (the `composition-id` of the embed) and no visitor moves on. The live version is kept, and visitors partway through carry on from where they were when it is resumed. Only a live workflow can be paused. The workspace is named by… - [Resume a workflow](https://docs.widgetic.com/api-reference/workflows/resume-workspace-workflow.md): Makes a paused workflow live again, on the version that was live when it was paused. The workspace is named by its UUID. Any active member can resume. - [Archive a workflow](https://docs.widgetic.com/api-reference/workflows/archive-workspace-workflow.md): Takes a workflow out of the default list and stops it serving: its embeds show only their first composition, as when paused. It is kept, with its versions and counts, until it is deleted. The workspace is named by its UUID. Any active member can archive. - [Unarchive a workflow](https://docs.widgetic.com/api-reference/workflows/unarchive-workspace-workflow.md): Brings an archived workflow back into the list: as paused when it was ever published (resume it to serve visitors again), as a draft when it never was. The workspace is named by its UUID. Any active member can unarchive. - [Set a workflow's managed user](https://docs.widgetic.com/api-reference/workflows/set-workspace-workflow-managed-user.md): Files a workflow of your partner workspace under a managed user, or moves it to another one, after it was made. Name the managed user by Widgetic's id (`managedUserId`) or by your own identifier for the user (`managedUserExternalId`), never both. It must be one of your managed users, and switched on… - [Remove a workflow's managed user](https://docs.widgetic.com/api-reference/workflows/remove-workspace-workflow-managed-user.md): Takes a workflow of your partner workspace off the managed user it is filed under, so it is your own again. The workflow's blocks, versions, state and counts stay as they were (only `updatedAt` moves), and the compositions it chains stay with the managed users they are filed under. A workflow that i… - [Get workflow statistics](https://docs.widgetic.com/api-reference/workflows/get-workspace-workflow-stats.md): Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on, and, where the visitor's browser said why a block could not be s… - [List workflow versions](https://docs.widgetic.com/api-reference/workflows/list-workspace-workflow-versions.md): Every version the workflow has had, newest first, with who published it and when. The one visitors get is marked `isLive`. The workspace is named by its UUID. Any active member can read. - [Get a workflow version](https://docs.widgetic.com/api-reference/workflows/get-workspace-workflow-version.md): One published version with its graph, for the read-only preview and for the Runs view. The workspace is named by its UUID. Any active member can read. - [Restore a workflow version](https://docs.widgetic.com/api-reference/workflows/restore-workspace-workflow-version.md): Copies a published version into the draft, so it can be changed and published again. Nothing is published and nothing visitors see changes: the version stays in the history as it was. Names the `revision` the editor read. The workspace is named by its UUID. Any active member can restore. - [List compositions for a workflow](https://docs.widgetic.com/api-reference/workflows/list-workspace-workflow-composition-options.md): The workspace's compositions as the workflow editor offers them, newest first. For each one: whether it can be shown (its widget has a published version), the websites it may be embedded on, and which triggers it supports. - [List workflow starting points](https://docs.widgetic.com/api-reference/workflows/list-workspace-workflow-presets.md): The workflows you can start from in this workspace: published workflows that Widgetic offers or, for one of a partner's managed users, that the partner offers (a managed user is never shown Widgetic's, and a person is never shown a partner's). Only what can be started now is listed, in the order the… - [Create a workflow from a starting point](https://docs.widgetic.com/api-reference/workflows/create-workspace-workflow-from-preset.md): Makes your own copy of a starting point (`listWorkspaceWorkflowPresets`): a copy of every widget it chains (an ordinary private widget that serves the starting point's published code), a composition of your own on each copy (a draft, with the content, design, embed settings and tables of the origina… - [List A/B tests](https://docs.widgetic.com/api-reference/ab-testing/list-workspace-ab-tests.md): Retrieves all AB tests in the specified workspace. Use the id of the workspace (its organization UUID) as workspaceId. - [Create an A/B test](https://docs.widgetic.com/api-reference/ab-testing/create-workspace-ab-test.md): Creates a new AB test in the specified workspace. Use the id of the workspace (its organization UUID) as workspaceId. - [Get an A/B test](https://docs.widgetic.com/api-reference/ab-testing/get-workspace-ab-test.md): Retrieves a specific AB test from the specified workspace. Use the id of the workspace (its organization UUID) as workspaceId. - [Update an A/B test](https://docs.widgetic.com/api-reference/ab-testing/update-workspace-ab-test.md): Updates an AB test in the specified workspace. Use the id of the workspace (its organization UUID) as workspaceId. - [Delete an A/B test](https://docs.widgetic.com/api-reference/ab-testing/delete-workspace-ab-test.md): Deletes an AB test from the specified workspace. Use the id of the workspace (its organization UUID) as workspaceId. - [Start an A/B test](https://docs.widgetic.com/api-reference/ab-testing/start-workspace-ab-test.md): Starts an AB test in the specified workspace. Use the id of the workspace (its organization UUID) as workspaceId. - [Pause an A/B test](https://docs.widgetic.com/api-reference/ab-testing/pause-workspace-ab-test.md): Pauses an AB test in the specified workspace. Use the id of the workspace (its organization UUID) as workspaceId. - [Stop an A/B test](https://docs.widgetic.com/api-reference/ab-testing/stop-workspace-ab-test.md): Manually stops a running AB test in the specified workspace, optionally specifying a winning variant. Use the id of the workspace (its organization UUID) as workspaceId. - [Check whether an A/B test should stop](https://docs.widgetic.com/api-reference/ab-testing/check-workspace-ab-test-auto-stop.md): Checks if an AB test in the specified workspace should automatically stop based on duration, significance, or graduation criteria. Use the id of the workspace (its organization UUID) as workspaceId. - [Set an A/B test's duration](https://docs.widgetic.com/api-reference/ab-testing/set-workspace-ab-test-duration.md): Sets the duration for an AB test in the specified workspace, automatically calculating the end date. Use the id of the workspace (its organization UUID) as workspaceId. - [List the goals a test can measure](https://docs.widgetic.com/api-reference/ab-testing/get-available-metrics.md): Lists the goals an A/B test can measure, from the one registry the API validates against: how each goal is counted (`automatic`: the embed SDK recognises it by itself; `widget-event`: the widget has to report it), whether a version can name the one element of its widget that counts (`supportsElement… - [Validate goal tracking](https://docs.widgetic.com/api-reference/ab-testing/validate-workspace-goal-tracking.md): Validates goal tracking capabilities for compositions in the specified workspace. Use the id of the workspace (its organization UUID) as workspaceId. Called for one managed user, every composition named has to be that customer's. The result is at `data.data`. - [List a composition's goal elements](https://docs.widgetic.com/api-reference/ab-testing/get-composition-ab-goal-targets.md): Lists the clickable, submittable and playable elements of the composition's published widget, each with a label a person recognises and a selector to store as a version's `goalTarget`. The elements the widget declared for its goals come first, then elements marked `data-widgetic-goal`: they are the… - [Get an A/B test's statistics](https://docs.widgetic.com/api-reference/ab-testing/get-workspace-ab-test-statistics.md): Returns what an AB test has gathered so far: impressions and conversions overall and for each version, the statistics that compare each version with the control, and the API's advice on what to do next. Use the id of the workspace (its organization UUID) as workspaceId. The answer is sent once insid… - [Get an AI review of an A/B test](https://docs.widgetic.com/api-reference/ab-testing/get-workspace-ab-test-diagnosis.md): Returns an AI review of the test: what its versions change, which of the usual levers that is (urgency, social proof, clarity, pricing, friction, or only looks), and whether the challenger is safe to promote. It calls another service, so it is slower than the other reads: ask for it only when it is… - [List translations](https://docs.widgetic.com/api-reference/organizations/list-organization-translations.md): Get all translation experiments for the organization. - [Create a translation](https://docs.widgetic.com/api-reference/organizations/create-organization-translation.md): Create a new translation experiment in the organization. - [Get a translation](https://docs.widgetic.com/api-reference/translations/get-translation.md): Get details of a specific translation experiment. The translation is found by its id, in the workspace it belongs to: you must be a member of that workspace (and, with an API key, the key must belong to it), otherwise the answer is 404. Called for one managed user (`X-Managed-User-Id` or `X-Managed-… - [Delete a translation](https://docs.widgetic.com/api-reference/translations/delete-translation.md): Delete a translation experiment and all its variants. The translation is found by its id, in the workspace it belongs to: you must be a member of that workspace (and, with an API key, the key must belong to it), otherwise the answer is 404. Called for one managed user (`X-Managed-User-Id` or `X-Mana… - [Add languages to a translation](https://docs.widgetic.com/api-reference/translations/add-languages-to-translation.md): Add new languages to an existing translation experiment and start translation. The translation is found by its id, in the workspace it belongs to: you must be a member of that workspace (and, with an API key, the key must belong to it), otherwise the answer is 404. Called for one managed user (`X-Ma… - [Remove a language from a translation](https://docs.widgetic.com/api-reference/translations/remove-language-from-translation.md): Remove a specific language from a translation experiment. The translation is found by its id, in the workspace it belongs to: you must be a member of that workspace (and, with an API key, the key must belong to it), otherwise the answer is 404. Called for one managed user (`X-Managed-User-Id` or `X-… - [Retranslate a translation](https://docs.widgetic.com/api-reference/translations/retranslate-experiment.md): Redo translations for existing language variants. The translation is found by its id, in the workspace it belongs to: you must be a member of that workspace (and, with an API key, the key must belong to it), otherwise the answer is 404. Called for one managed user (`X-Managed-User-Id` or `X-Managed-… - [Change a translation's status](https://docs.widgetic.com/api-reference/translations/update-translation-status.md): Update the status of a translation experiment (active, paused, draft, completed). The translation is found by its id, in the workspace it belongs to: you must be a member of that workspace (and, with an API key, the key must belong to it), otherwise the answer is 404. Called for one managed user (`X… - [Get a translation's analytics](https://docs.widgetic.com/api-reference/translations/get-translation-analytics.md): Get comparative analytics across all language variants in a translation experiment. The translation is found by its id, in the workspace it belongs to: you must be a member of that workspace (and, with an API key, the key must belong to it), otherwise the answer is 404. Called for one managed user (… - [List supported languages](https://docs.widgetic.com/api-reference/translations/get-supported-languages.md): Get all the languages a translation experiment can be made in. The list is the same for everybody, so the call needs no key and takes no customer header. - [List language presets](https://docs.widgetic.com/api-reference/translations/get-language-presets.md): Get the predefined groups of languages (EU, APAC, and so on) that can be chosen in one go. The list is the same for everybody, so the call needs no key and takes no customer header. - [Upload a file](https://docs.widgetic.com/api-reference/uploads/upload-file.md): Stores one file for the account and returns its public address. This is how a user's own images, video and PDFs reach a widget's content. - [List uploads](https://docs.widgetic.com/api-reference/uploads/list-uploads.md): The files of the workspace the caller works in, newest first: the workspace's shared files (every member's, and those of members who have since left). The workspace is the one a person signed in on widgetic.com switched to, or the one an API key or a connection belongs to; an editor session names no… - [Get an upload](https://docs.widgetic.com/api-reference/uploads/get-upload.md): The details of one of the account's uploads. An upload that belongs to another account is not found. - [Delete an upload](https://docs.widgetic.com/api-reference/uploads/delete-upload.md): Removes the stored file and the upload row. A file in Widgetic's own storage gives back the space it took from the storage allowance it was charged to (the team's shared space for a file uploaded in a team workspace); a file in your own bucket is removed from your bucket. Deleting an upload that is… - [Set an upload's managed user](https://docs.widgetic.com/api-reference/uploads/set-upload-managed-user.md): Files an upload your account made under a managed user, or moves it to another one, after it was uploaded. Name the managed user by Widgetic's id (`managedUserId`) or by your own identifier for the user (`managedUserExternalId`), never both. It must be one of your managed users, and switched on (`40… - [Remove an upload's managed user](https://docs.widgetic.com/api-reference/uploads/remove-upload-managed-user.md): Takes an upload off the managed user it is filed under, so it is your own again. Nothing else about the file changes. An upload that is filed under no one answers the same, so a retry is safe. - [Get upload limits](https://docs.widgetic.com/api-reference/uploads/get-upload-limits.md): The size limit and the accepted file types of the upload endpoints. Read them from here rather than hard-coding thresholds: they are configuration and can change. The limits are the same for every account, whatever its plan: `multipart_max_bytes` for a file sent in one request (10 MB) and `tus_max_b… - [Get the Brand Kit](https://docs.widgetic.com/api-reference/brand-kit/get-brand-kit.md): The colors, fonts, icons, corner radius and style notes every widget made by this account is generated with. An account that never saved a kit gets Widgetic's default one (`isDefault` is true). A partner account's kit is the default for everything its keys create, and a key reads and changes the kit… - [Save the Brand Kit](https://docs.widgetic.com/api-reference/brand-kit/put-brand-kit.md): Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH. - [Update the Brand Kit](https://docs.widgetic.com/api-reference/brand-kit/patch-brand-kit.md): Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic's default one. The response lists what i… - [Reset the Brand Kit](https://docs.widgetic.com/api-reference/brand-kit/delete-brand-kit.md) - [Upload a Brand Kit font](https://docs.widgetic.com/api-reference/brand-kit/post-brand-kit-font.md) - [Add a Brand Kit icon](https://docs.widgetic.com/api-reference/brand-kit/post-brand-kit-icon.md) - [Update a Brand Kit asset](https://docs.widgetic.com/api-reference/brand-kit/patch-brand-kit-asset.md) - [Remove a Brand Kit asset](https://docs.widgetic.com/api-reference/brand-kit/delete-brand-kit-asset.md) - [Validate an API key](https://docs.widgetic.com/api-reference/tokens/validate-token.md): Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`), the account it belongs to (`userId`) and the workspace it works in (`workspace`). An API key works in the one workspace it was made for, whichever workspace its owner is looking at on widget… - [List API keys](https://docs.widgetic.com/api-reference/organizations/get-organization-api-keys.md): Retrieve all API keys for a specific organization (workspace): name, the first characters of the key, when it was made, when it expires, when it was last used, whether it is switched on and what it is limited to (`scopes` and `preset`). The secret of a key is never part of the list. Only accessible… - [Create an API key](https://docs.widgetic.com/api-reference/organizations/create-organization-api-key.md): Create a new API key for a specific organization (workspace) and return its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. Only accessible by organization owners and admins with MANAGE_API_KEYS permi… - [Update an API key](https://docs.widgetic.com/api-reference/organizations/update-organization-api-key.md): Update an organization API key (name, active status). The secret, the expiry and the scopes of a key cannot be changed: to widen a key, make a new one. Only a key with full access can make this request: a key limited to some scopes is refused with 403 and the code `API_KEY_SCOPE_MISSING`. Only acces… - [Delete an API key](https://docs.widgetic.com/api-reference/organizations/delete-organization-api-key.md): Delete an organization API key permanently. The key stops working at once on the server that took the request and within a minute on the others, and cannot be brought back: make a new one instead. To stop a key without losing it, switch it off with `updateOrganizationApiKey`. Only accessible by orga… - [Get API key usage logs](https://docs.widgetic.com/api-reference/organizations/get-organization-api-key-usage-logs.md): Retrieves usage logs for a specific organization API key with detailed information about each API call. Use it to see whether a key is still in use before deleting it, or to see what a key that should not be in use has been doing - [Get the credit balance](https://docs.widgetic.com/api-reference/credits/get-user-credit-balance.md): Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any… - [List credit transactions](https://docs.widgetic.com/api-reference/credits/get-user-credit-transactions.md): Lists the entries of an account's credit ledger in the workspace the request acts in, newest first. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person's default workspace (… - [List allowed domains](https://docs.widgetic.com/api-reference/organizations/get-organization-domains.md): Lists the websites on a workspace's own list, newest first. It is the list Widgetic checks when a widget of the workspace is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic's own) and nowhere else; when it is empty, the widget can be shown anywher… - [Add an allowed domain](https://docs.widgetic.com/api-reference/organizations/add-organization-domain.md): Adds a new domain to the workspace's allowed domains list for widget embedding restrictions. The list of an ordinary workspace holds at most 50 websites (a 409 says so); the home workspace of a partner has no limit, because a partner adds its customers' websites by code. - [Update an allowed domain](https://docs.widgetic.com/api-reference/organizations/update-organization-domain.md): Updates an existing domain in the organization's allowed domains list - [Delete an allowed domain](https://docs.widgetic.com/api-reference/organizations/delete-organization-domain.md): Removes a domain from the organization's allowed domains list - [List adapter connections](https://docs.widgetic.com/api-reference/users/get-user-adapter-connections.md): Widget adapters are capabilities a widget can use, and some of them act through a service the owner has an account with: an adapter that sends email needs the owner's email provider key, one that sends texts needs the owner's SMS provider key. This lists every key an adapter takes from an owner and… - [Connect an adapter](https://docs.widgetic.com/api-reference/users/set-user-adapter-connection.md): Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. - [Remove an adapter connection](https://docs.widgetic.com/api-reference/users/remove-user-adapter-connection.md): Removes a key an adapter was given. The adapter stops working for the widgets that need it: their visitors are told the feature is unavailable. Nothing else of the widgets changes, and connecting a key again brings them back. - [Confirm an adapter connection](https://docs.widgetic.com/api-reference/users/confirm-user-adapter-connection.md): Some credentials are an email address Widgetic sends a widget's messages to (`confirmation: email_code` in `getUserAdapterConnections`). Saving one with `setUserAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the widge… - [Find your partner account](https://docs.widgetic.com/api-reference/partners/get-my-partners.md): Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave), `payment_arrears` (a contract invoice is past its d… - [Get a partner contract](https://docs.widgetic.com/api-reference/partners/get-partner-contract.md): Returns the commercial terms agreed with the partner: price, included credits and storage, billing cycle, commitment, support level, and the dates the contract runs between. - [Get partner entitlements](https://docs.widgetic.com/api-reference/entitlements/get-partner-entitlements.md): Retrieves all entitlements for a partner (admin or partner access). - [Get the partner credit balance](https://docs.widgetic.com/api-reference/partners/get-partner-credit-balance.md): Returns the credits the partner has, and how much of that is reserved by operations that are still running. A partner's credits belong to its own workspace, the one that is made with the partner, and are all held in ONE account: the account of the person who administers it, the same account its API… - [List partner credit transactions](https://docs.widgetic.com/api-reference/partners/get-partner-credit-transactions.md): Lists what happened to the partner's credits, newest first: the entries of the credit ledger of the partner's workspace, held in the account of the person who administers it, the one account a partner has for its credits. Every operation that spends credits is a `debit` entry, the credits an invoice… - [Buy extra credits](https://docs.widgetic.com/api-reference/partners/create-partner-extra-credits-invoice.md): Asks Widgetic for an invoice for extra credits, on top of the credits of the contract. Name the dollars; the invoice is for the most whole credits they buy at the **list price** of a credit (the price a contract may lower belongs to the contract), so it is never for more than you asked, and can be a… - [Get the billing overview](https://docs.widgetic.com/api-reference/partners/get-partner-billing-overview.md): Retrieves the partner's credits (`operationalCredits`), the partner's contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is the credits of the partner's workspace, held i… - [List invoices](https://docs.widgetic.com/api-reference/invoices/get-invoices-by-partner-id.md): Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). - [List managed users](https://docs.widgetic.com/api-reference/managed-users/get-all-managed-users.md): Retrieve the managed users you manage (your end users), with pagination support. (Admins see every partner's managed users.) - [Create a managed user](https://docs.widgetic.com/api-reference/managed-users/create-managed-user.md): Creates a new managed user for a partner account. - [Get a managed user](https://docs.widgetic.com/api-reference/managed-users/get-managed-user-by-id.md): Retrieves a specific managed user by ID. - [Update a managed user](https://docs.widgetic.com/api-reference/managed-users/update-managed-user.md): Updates an existing managed user. Only `externalId`, `metadata` and `isActive` can change, and `metadata` is replaced as a whole, so send all of it. `isActive: false` switches the managed user off: what it already has stays, and nothing new can be filed under it until you send `isActive: true`. Swit… - [Delete a managed user](https://docs.widgetic.com/api-reference/managed-users/delete-managed-user.md): Deletes a managed user by ID. Its editor sessions end with it. What was filed under it (compositions, widgets, uploads) stays in your account, untagged. - [List the managed users of a manager](https://docs.widgetic.com/api-reference/managed-users/get-managed-users-by-manager-id.md): Retrieve managed users for a specific manager with pagination support. Send `externalId` to find the one registered with your own identifier for the user. - [Get managed user entitlements](https://docs.widgetic.com/api-reference/entitlements/get-managed-user-entitlements.md): Retrieves all entitlements for a managed user (admin or partner access). - [Get a managed user's limits](https://docs.widgetic.com/api-reference/managed-users/get-managed-user-limits.md) - [Set a managed user's limits](https://docs.widgetic.com/api-reference/managed-users/set-managed-user-limits.md): Send monthlyCredits as a whole number from 0 up to 2147483647 to cap what this customer's editor sessions may spend in a UTC calendar month, or null to remove the cap. The cap counts the credits the customer's sessions spent that month (refunded credits do not count) and applies to all of the custom… - [Get a managed user's usage](https://docs.widgetic.com/api-reference/managed-users/get-managed-user-usage.md): Says how many credits the editor sessions of one of your managed users took from your account over a period, in total and for each operation. A generation costs one credit, taken from your account when it starts; one that fails is refunded and is counted as refunded, not as spent. - [Get a managed user's storage usage](https://docs.widgetic.com/api-reference/managed-users/get-managed-user-storage-usage.md) - [List a managed user's entries](https://docs.widgetic.com/api-reference/managed-users/list-managed-user-entries.md): Merges eligible tables (time and id columns) across the managed user's compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 30 requests per minute. - [Create an editor session](https://docs.widgetic.com/api-reference/managed-users/create-managed-user-editor-session.md): Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic's editor pieces, such as the File Browser and the Composition Editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `to… - [End an editor session](https://docs.widgetic.com/api-reference/managed-users/revoke-managed-user-editor-session.md): Ends the session at once: its token stops working on the next request (on another server of ours, within a few seconds). Ending a session that has already ended is fine. - [End all editor sessions](https://docs.widgetic.com/api-reference/managed-users/revoke-managed-user-editor-sessions.md): Ends all of the managed user's live editor sessions at once, for example when the user signs out of your platform. Their tokens stop working on the next request (on another server of ours, within a few seconds). It is fine to call it for a user who has none. - [List presets](https://docs.widgetic.com/api-reference/partners/list-partner-presets.md): Returns the partner's presets, ordered by `position` and then by `key`: the widgets it offers its managed users as starting points. The list is the same for every managed user. - [Set a preset](https://docs.widgetic.com/api-reference/partners/set-partner-preset.md): Offers one of the partner's own widgets as a preset under `key`. If the partner already has a preset under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole preset: a `title`, `description` or `position` you leave out goes back to its default. - [Remove a preset](https://docs.widgetic.com/api-reference/partners/remove-partner-preset.md): Removes the preset under `key`. The widget itself is not touched, and neither are the copies and the compositions already made from it. - [Copy a preset for a managed user](https://docs.widgetic.com/api-reference/managed-users/copy-preset-for-managed-user.md): Copies the preset `key` (see `setPartnerPreset`) onto a new canvas for one of your managed users, so their Widget Creator opens on a widget of their own that starts from yours. The copy is a draft widget in your account, filed under the managed user: `getAllWidgets` with `managedUserId` lists it, an… - [Create a composition from a preset](https://docs.widgetic.com/api-reference/managed-users/create-composition-from-preset.md): Validates the name, optional content, design, embed settings and locale, then creates a draft composition filed under the managed user, built on the preset's widget, in a single insert. A failure never leaves a half-made composition. - [List workflow presets](https://docs.widgetic.com/api-reference/partners/list-partner-workflow-presets.md): The partner's starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is sho… - [Set a workflow preset](https://docs.widgetic.com/api-reference/partners/set-partner-workflow-preset.md): Offers one of the partner account's own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: a `title`, `description` or `position` you leave o… - [Remove a workflow preset](https://docs.widgetic.com/api-reference/partners/remove-partner-workflow-preset.md): Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. - [Get partner design defaults](https://docs.widgetic.com/api-reference/partners/get-partner-design-defaults.md) - [Set partner design defaults](https://docs.widgetic.com/api-reference/partners/set-partner-design-defaults.md): Send `{ "design": { ... } }` or `{ "design": null }` to remove. New compositions merge this layer over the widget base and under each managed user's default and the request body. - [Get a managed user's design defaults](https://docs.widgetic.com/api-reference/managed-users/get-managed-user-design-defaults.md) - [Set a managed user's design defaults](https://docs.widgetic.com/api-reference/managed-users/set-managed-user-design-defaults.md): Send `{ "design": { ... } }` to store a JSON object (at most 64 KB, nesting depth 32), or `{ "design": null }` to remove the override. New compositions for this customer merge this layer over the partner default and under the request body. - [Get the storage destination](https://docs.widgetic.com/api-reference/partners/get-partner-storage-destination.md): Returns the partner's storage destination without its secret: the endpoint, bucket, folder and public address, the last four characters of the access key id, when the destination last passed the check, and why the latest re-check failed if it did. Responds 404 while the partner has no destination, w… - [Set the storage destination](https://docs.widgetic.com/api-reference/partners/set-partner-storage-destination.md): Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `uploadFi… - [Remove the storage destination](https://docs.widgetic.com/api-reference/partners/remove-partner-storage-destination.md): Removes the partner's storage destination. Partner storage is not optional, so after this every upload of the account, on any route, and the uploads of your customers' editor sessions are refused (409 `PARTNER_STORAGE_REQUIRED`) until a destination is set again, and no editor session can be made. Fi… - [Verify the storage destination](https://docs.widgetic.com/api-reference/partners/verify-partner-storage-destination.md): Runs the same check as `setPartnerStorageDestination` against the destination already saved: a test file is written, read back from the public address and deleted. Use it after rotating a key or changing a bucket policy, or when uploads are failing with 502 or 503. - [Get partner storage usage](https://docs.widgetic.com/api-reference/partners/get-partner-storage-usage.md): Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic's storage and how much in your own storage destination (`setPartnerStorageDestination`). Use it to see which customers store the most, or to charge them for it. - [Get the data database](https://docs.widgetic.com/api-reference/partners/get-partner-data-database.md): Returns the database set with `setPartnerDataDatabase`, without its password: the host, the database and the role, when it last passed the check, and why the latest re-check failed if it did. Responds 404 while the partner has no database of its own, which means the data of its compositions is kept… - [Set the data database](https://docs.widgetic.com/api-reference/partners/set-partner-data-database.md): Points the partner at a Neon database of its own. From then on, what visitors leave in the compositions of the partner's managed users, and of the compositions made in the partner's own account (the votes, ratings, answers and form submissions of the widgets that collect them), is stored in that dat… - [Remove the data database](https://docs.widgetic.com/api-reference/partners/remove-partner-data-database.md): Removes the partner's database from Widgetic: Widgetic forgets the connection string, and from then on the data of the partner's compositions is kept in Widgetic's database again. Nothing in your database is deleted. - [Verify the data database](https://docs.widgetic.com/api-reference/partners/verify-partner-data-database.md): Runs the same check as `setPartnerDataDatabase` against the database already saved: a schema is made in it, a table created, a row written and read back, and the schema removed again. Use it after changing the role's password or the project's settings in Neon, or when saving is failing with 503 `PAR… - [List notifications](https://docs.widgetic.com/api-reference/partners/list-partner-notifications.md): Lists the notifications of a partner, the newest first: the invoices Widgetic issued and their payments, the reminders to pay them, a warning when your credits run low, and the changes to the standing of the account (activated, paused, resumed). It is the same list your dashboard shows, and each ent… - [List notification deliveries](https://docs.widgetic.com/api-reference/partners/list-partner-notification-deliveries.md): Lists the sends of your notifications, the newest first: each email to one address and each call to your webhook, with whether it was delivered, when it is tried again if not, how many attempts it had, and why the last one failed. Use it to find out why a webhook of yours did not receive an event. - [Get notification settings](https://docs.widgetic.com/api-reference/partners/get-partner-notification-settings.md): Returns who gets the emails, which events you want by email and by webhook, the address of your webhook, and whether it has a secret to sign with. The secret itself is never returned: it is shown once, when it is made. `events` lists every kind of event there is, for a settings screen. - [Update notification settings](https://docs.widgetic.com/api-reference/partners/update-partner-notification-settings.md): Changes who gets the emails, which events you want by email and by webhook, and the address of your webhook. A key you leave out of the body is left as it was; send only what changes. - [Rotate the webhook secret](https://docs.widgetic.com/api-reference/partners/rotate-partner-webhook-secret.md): Makes a new secret to sign your webhook with, and returns it in `webhookSecret`: **keep it now, it is shown once** and cannot be read again. Use it when the secret was lost, or may have leaked. - [Send a test event](https://docs.widgetic.com/api-reference/partners/send-partner-notification-test-event.md): Sends ONE signed call, right now, to the webhook address you saved under notification settings, with a sample of what an event of the type you name carries, and answers how it went: whether your receiver answered with a 2xx status, which status, how long it took, and why not when it did not arrive.… - [Replay a delivery](https://docs.widgetic.com/api-reference/partners/replay-partner-notification-delivery.md): Sends one earlier **webhook** delivery again to your **current** webhook address, with the same event `id` (`webhook-id`) as the original notification so a receiver that remembers ids can ignore a duplicate, and a new `createdAt` and signature made with your current secret. The attempt is recorded i… - [Get the analytics summary](https://docs.widgetic.com/api-reference/partners/get-partner-analytics-summary.md): Counts what the visitors of the compositions made through your account did in a period: how many times a composition was **viewed**, how many times a visitor **interacted** with one, and how many different visitors there were. It covers every composition of your account, your own and the ones made f… - [Get the analytics timeline](https://docs.widgetic.com/api-reference/partners/get-partner-analytics-timeline.md): Counts views, interactions and visitors for each day of a period (UTC days), oldest first, for a chart. Every day of the period is in the list, also one on which nothing happened (all zeros), so the list can be drawn as it is. Narrow it to one managed user with `managedUserId` or `managedUserExterna… - [Get the top widgets](https://docs.widgetic.com/api-reference/partners/get-partner-analytics-top-widgets.md): Lists the widgets whose compositions were viewed the most in a period, with their views, interactions, visitors and how many of their compositions were viewed. A widget that nobody viewed or used is not listed. The most viewed come first (then the most used), and at most `limit` are listed. Narrow i… - [Get analytics by managed user](https://docs.widgetic.com/api-reference/partners/get-partner-analytics-by-managed-user.md): Lists every one of your managed users with what their widgets and compositions did in a period: views, interactions and visitors, and how many widgets and compositions they have made. A managed user whose widgets were not viewed is listed too, with zeros. The most viewed come first, and `page.hasMor… - [Get entry context signing](https://docs.widgetic.com/api-reference/partners/get-partner-entry-context-signing.md): Says whether you have a secret to sign the `context` of your embeds with, when it was made, whether the secret it replaced is still accepted, and whether an entry without a valid signature is refused (`required`). The secret itself is never part of the answer: it is shown once, when it is made (`rot… - [Update entry context signing](https://docs.widgetic.com/api-reference/partners/update-partner-entry-context-signing.md): Chooses what the gateway does with an entry whose `context` carries no valid signature. - [Rotate the entry context secret](https://docs.widgetic.com/api-reference/partners/rotate-partner-entry-context-secret.md): Makes a secret to sign the `context` of your embeds with, and returns it in `secret`: **keep it now, it is shown once** and cannot be read again. Keep it on your server only: whoever holds it can write contexts your compositions accept. Call this again to make a new secret; the one it replaces is st… - [List partner adapter connections](https://docs.widgetic.com/api-reference/partners/get-partner-adapter-connections.md): Widget adapters are capabilities a widget can use, and some of them act through a service the account that made the widget has with a provider: an adapter that sends email needs an email provider key, one that sends texts needs an SMS provider key. For the widgets of the customers a partner manages,… - [Connect a partner adapter](https://docs.widgetic.com/api-reference/partners/set-partner-adapter-connection.md): Gives an adapter the key it needs to act through a service the partner has an account with, for the widgets of the customers the partner manages. Take the `adapterId` and `credentialKey` from `getPartnerAdapterConnections`. Saving a key that is already connected replaces it. - [Remove a partner adapter connection](https://docs.widgetic.com/api-reference/partners/remove-partner-adapter-connection.md): Removes a key an adapter was given. The adapter stops working for the widgets of the partner's customers that need it: their visitors are told the feature is unavailable. Nothing else of the widgets changes, and connecting a key again brings them back. - [Confirm a partner adapter connection](https://docs.widgetic.com/api-reference/partners/confirm-partner-adapter-connection.md): Some credentials are an email address Widgetic sends a widget's messages to (`confirmation: email_code` in `getPartnerAdapterConnections`). Saving one with `setPartnerAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the… - [Resolve a composition embed](https://docs.widgetic.com/api-reference/public-embed/get-public-composition-embed.md): Public customer embed lookup. No API key. Used by embed-sdk.js on third-party sites. If the composition's owner listed the websites it may appear on (the workspace's domain list, or the `allowedDomains` of a partner the owner administers), a request from any other website is refused with 403 `DOMAIN… - [Get a composition frame](https://docs.widgetic.com/api-reference/public-embed/get-public-composition-iframe.md): Public HTML wrapper with an inner published artifact iframe. No API key or SDK required. If the composition's owner listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic's own, and the website where the partner the… - [Check embed status in a batch](https://docs.widgetic.com/api-reference/public-embed/post-public-composition-embed-status.md): Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller's website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not re… - [Add a visitor entry](https://docs.widgetic.com/api-reference/public-embed/create-public-composition-entry.md): Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header: the artifact iframe origin, or any website when the owner has not restricted the allowed websites (when the owner has, one of the websites the owner listed, Widgetic's own s… - [Call an adapter](https://docs.widgetic.com/api-reference/public-embed/call-public-composition-adapter.md): The door a widget's adapter module calls, from the visitor's browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner's storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widg… - [Upload an adapter file](https://docs.widgetic.com/api-reference/public-embed/upload-public-composition-adapter-file.md): The second of the two calls the `upload` adapter's module makes from the visitor's browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`.… - [Get a published workflow](https://docs.widgetic.com/api-reference/public-embed/get-public-workflow.md): Public read of a workflow for the embed that carries `workflow-id`. No API key. The answer is the live version (its graph, the composition a new visitor starts on, the time zone, the languages its compositions can be shown in, and the token that lets the browser report counts), or `status: paused` w… - [Get a published workflow version](https://docs.widgetic.com/api-reference/public-embed/get-public-workflow-version.md): Public read of one version of a workflow, for a visitor who started on it before a newer one was published: they finish on the version they started on (for up to 30 days; after that they get the latest). The graph of a version never changes once published; the languages its compositions can be shown… - [Get a workflow frame](https://docs.widgetic.com/api-reference/public-embed/get-public-workflow-frame.md): A page that runs a published workflow, for a place that can only be given an address or an iframe: a chat messenger, a link page, a site builder, a blog that follows oEmbed. No API key, no SDK to add. The page holds the Embed SDK and the same tag a website carries (`