Partners have a step-by-step guide as well: the Widgetic Partner integration guide. It gives the order to do things in, a brief you can hand to an AI agent, a test plan and a go-live checklist. This documentation is the reference for every call and answer, so use them together. Start with section 1 to choose your approach and section 3 to set up your partner account.
What Partners Can Do
Build and Embed Widgets
Create compositions with the API and show the published widgets in your platform with the embed code
Keep Track of End-Users
Keep a record of your customers as managed users, and find one customer’s widgets when they ask for help
Editors in Your Page
Mount Widgetic’s File Browser, Composition Editor, Embed Editor, AI Widget Creator and Workflows in your own page for one customer at a time
A/B Tests and Translations
Make and run A/B tests and translations from your server, for one customer at a time
Credits & Billing
Pay by invoice, with tax, and track the AI credits on your account
Your Own Storage
Your customers’ files are kept in a bucket you own
Dashboard and Analytics
Your credits, invoices, customers and presets, and how their widgets are viewed
Notifications
Invoices, payments, low credits and pauses, by email and as signed webhooks
Partner API Key
A partner key starts withwgt_prt_ and acts as your partner. You make it yourself: sign in with the shared mailbox that Widgetic invited, open your partner’s home workspace and make the key under Settings → API keys. Make one key for each integration, named after what it serves (the checkout server, the support tool), with only the access that integration needs, so you can switch one off without stopping the others. Widgetic never makes or sends you a key. API keys shows how.
A partner key reaches everything your account can (compositions, widgets, uploads and workflows) and the partner endpoints: your managed users, your contract, your invoices and your credits.
A key does everything your account may do, unless you limit it when you make it. A server that only reads your invoices, for example, can hold a key that cannot create anything. See Limit what a key can do.
Your Account
A partner is one login with one workspace. Widgetic makes both for you when it invites you: you give it the address of a shared mailbox of your company (not the address of one person, so the account survives a change of staff), and Widgetic sends that mailbox an invitation with a link to choose a password. There is no sign-up, and you do not choose a plan: your contract decides your credits and features, and your workspace shows what it includes instead of a plan to buy.- There is one workspace and nobody else in it. You cannot add a second workspace, invite a person into yours, or join another workspace with this login. Your customers do not need logins: they are managed users and use your widgets and editors through you.
- Your account cannot be deleted by you. A partnership ends on a date, not by deleting the account: after the last day there are 60 days in which you can read and export everything, and then the account closes. See Ending a Partnership.
- One login is the owner of one partner, for good. Widgetic does not move a partnership to another login. If the shared mailbox changes hands, ask Widgetic to replace the address of the owner login: the old password stops working, the people who held the old mailbox are signed out everywhere, and a new invitation goes to the new address.
Your Account Status
A partner account starts inactive and has no trial: you pay from the first day, and Widgetic activates the account once your contract is in force and your storage works. An invoice of your contract that is still unpaid after its due date stops the account by itself until it is paid, and Widgetic can also pause an account by hand. While the account is stopped, paused or not yet active, your customers cannot use your widgets or editors, and what you can change is limited to paying, buying credits, your storage, your notifications and your keys. After the last day of a partnership the account only reads, and later it closes. See Account Status and Ending a Partnership.Architecture Overview
The dotted line is the short-lived token your server gives the page, so the editors work with one customer’s content and your API key stays on your server.Key Concepts
Managed Users
A managed user is a record of one of your customers in your partner registry. It is not a login, and it does not own anything: everything you create through the API belongs to your partner’s workspace. What you can do is file a composition, a widget or an upload under a managed user when you create it, and list your workspace’s items by that managed user later, so each of your customers sees only their own. You create and manage managed users via the API. When one of your customers asks for help, your dashboard’s End users page finds them by their id, name or email and opens everything they made (see Dashboard).Editor Sessions
An editor session is a short-lived token that your server makes for one managed user. Your page gives it to a Widgetic editor, which then reads and changes that customer’s content and nothing else. Your API key never reaches the browser. See Editor Sessions.UI Components
The UI SDK (@widgetic/ui-sdk) mounts five pieces in your own page. Each draws inside a shadow root, so your page’s styles and its own do not touch each other:
- File Browser: browse, upload and pick files, from Widgetic’s media library or from your own.
- Composition Editor: change the texts, pictures, colours and fonts of a widget, beside a live preview.
- Embed Editor: decide how and where a widget shows on a page and get the embed code to paste, with an assistant that sets the options from a sentence.
- Widget Creator: the whole Widgetic canvas, with the AI that builds a widget from a description.
- Workflows: chain a customer’s compositions into a path, with filters between them that decide which composition a visitor sees next.
Preset Widgets
A preset is a widget of your own that you offer your customers as a starting point, under a short key your code uses. Your server lists them and gives a customer a copy (or a composition) of the one they pick. See Preset Widgets. A workflow of yours can be a starting point too: your customers copy it, with a copy of every widget it chains, and build on it. See Starting points.Credits System
You pay Widgetic by invoice, and Widgetic issues each invoice by itself: one for the credits of every billing period, at your price for a credit. Paying it adds those credits to your account, and when they run out you can buy extra credits with one API call. Credits pay for Widgetic’s AI: each generation uses 1 credit. Creating compositions, embedding widgets, storage and API calls do not use credits. An invoice of your contract that is unpaid after its due date stops the account until it is paid. See Credits & Billing.Getting Started
1
Accept the Invitation and Make Your Partner Key
Contact our sales team to become a partner, and tell them the address of the shared mailbox of your company that will own your partner, and the website where you will integrate Widgetic, such as
acme.com. Widgetic sets up your partner and its one workspace, records that website as your platform domain, so it and all of its subdomains can always show your widgets (see Security), and sends an invitation to that mailbox. The account stays inactive until it is activated (see below). Open the invitation, choose a password, sign in, and make your own partner key under Settings → API keys in your partner’s home workspace, named after the integration it serves. The secret is shown once, so store it when you make it. See Security for rotating and deleting keys.2
Run the Four Connection Checks
With your partner id and key, run the four checks from your server before you write integration code.
3
Set Up Your Storage
Save a bucket of your own on any S3-compatible service with
PUT /partners/{partnerId}/storage. It is checked before it is saved, and every editor session and every upload with your key needs it. See Storage.4
Agree Your Billing and Get Activated
Read how credits and billing work, and agree the credits for each billing period, your price for a credit and the start date with Widgetic. Once your contract is in force and your storage works, Widgetic activates your account (see Account Status). There is no trial, so your first invoice is issued on the day your contract starts.
5
Keep Track of Your Customers
Create managed users for your platform’s customers.
6
Build and Embed Widgets
Create compositions with the API, publish them, and show them in your platform with the embed code.
7
Put the Editors in Your Page (optional)
Make an editor session for the customer who is on the page, and mount a Widgetic editor with the UI SDK, so your customers make and change widgets without leaving your product.
8
Watch Your Account
Open your dashboard for your credits, invoices, customers and analytics, and set an address for notifications so that your own system hears about invoices, low credits, pauses and stops.
Partner Endpoints
All partner endpoints require a partner key (wgt_prt_). Key endpoints include:
See the API Reference for complete endpoint documentation. Filter by the
Managed Users, Partners, Credits and Invoices tags.Next Steps
Managed Users
Keep a record of your customers
Editor Sessions
Let a customer use Widgetic’s editors in your page
Credits & Billing
How you pay and how credits work
Account Status
Activation, pauses and what each one stops