MooverApp Tenant API
MooverApp Tenant API
Everything a site is made of, as an API: accounts and projects, websites and the domains they answer on, pages, blocks, menus, blog, media, themes, views and settings. This is the surface the MooverApp admin itself is written against — there is no capability behind it that the UI has and a client does not.
The semantics are AIP over plain REST/JSON: five standard methods on named resources, snake_case bodies, page_size/page_token/order_by/filter on every list, google.rpc.Status errors, etag + If-Match for concurrency, and an Operation to poll whenever the work outlives the call. Authenticate with POST /tenant-api/v1/users:authenticate and send the JWT as Authorization: Bearer <token>.
Tags
Sign-in
Sign-in and the password lifecycle.
:authenticate returns the bearer JWT every other call needs, a forgotten password is reset through a mailed one-time link, and a user who has just signed up trades the token of the signup for a session without typing the password again.Profile
The signed-in user’s own profile — read it, patch it, or close the account with
:delete_account. There is no id to address: the bearer token already says whose profile it is.Accounts
The account a tenant signs in to, at the top of the ownership tree: it owns the projects, and every website hangs off one of them. A user reaches an account only through a membership, and its owner hands it over with
:transfer_ownership.Members
Who belongs to an account, and with which role. A route a member’s role does not reach answers PERMISSION_DENIED. Every member may read their own membership and leave the account — except the owner, who hands ownership over first.
Invitations
The people asked to join an account by e-mail, each with the role the membership will hold. Whoever holds the mailed link reads what it is for with
invitations:inspect and takes it up with invitations:accept; :resend mails a fresh link.Roles & permissions
What a member may do.
permissions is the tree of sections a right is granted on — READ or WRITE, and a grant covers everything under its section; roles are the three every account has — administrator, editor, and one that holds only the sections its membership grants — beside the named sets of grants an account defines for itself.Projects
A grouping of websites inside one account — the parent a website is created under. One project is enough for a single site; an agency keeps one per client.
Websites
The unit the platform publishes. Creating one starts provisioning and answers with an Operation to poll (§17);
code is immutable because the platform hostname is built from it, and a provisioning that failed is started again with :retry_provisioning. :reindex_search rebuilds the website’s search corpus — there is no query endpoint here: ranked search is served on the site’s own domain.Custom domain
A read-only projection of where a website answers: platform hostname, connection status, and the record
:verify checks. The domain itself is written through the general.web.custom_domain setting.Modules
The functions of the platform a website is given one at a time — its modules — each with whether it is on for this website. Turning one on or off is an Update of
enabled; a module that requires another is refused until that one is on, and the refusal names it. A module turned off keeps its data until :purge_data deletes it.Operations
The long-running operation of §17: poll until
done, then read exactly one of response / error. :cancel asks a running one to stop.Views
A view is one presentation of a website — its locale, its URL prefix and its fallback. Content carries a per-view overlay, and settings can be overridden per view.
View settings
Settings overridden for one view, addressed by their dotted path, plus
setting_descriptors — the registry of paths that may be overridden at all.Website settings
Website-wide settings, addressed by their dotted path. The platform decides which paths exist, so there is no Create, and
:batch_update writes many of them atomically.Themes
The CSS-variable map a site renders with, plus the branding and wiring around it: logo, favicon, main menu and footer block. A known variable takes a value of its kind, an unknown one survives a round trip, and
:check weighs the colours' contrast.Theme tokens
The variables a theme takes — each with the kind of value it takes, what it paints, its default and the backgrounds it must stand out from. The same for every website.
CMS pages
Pages of the site — title,
url_key, rich-text content and SEO metadata. An empty visible_view_ids means every view, not none. A page also has a per-view overlay — what one view says instead of the master, a field counting as overridden only while its name is in overridden — and versions for customer groups: what a signed-in customer of the group reads instead of the page. The group with the highest priority wins; everybody else reads the page.CMS blocks
Reusable fragments of content, addressed by
identifier and pulled into pages, themes and smart links, each with a per-view overlay of its content in that view.Menus
The named navigation menus of a website — the containers the links hang off. A theme points at a menu by its
code.Menu items
The entries of a menu: what each points at, nesting and order through
:move, plus the per-view overlay of a single item’s title, URL and visibility. A link to a page names the page, so it survives the page being renamed.Email templates
The subject and text of the emails a website sends — the contact form’s notification today — as plain text with
{{placeholders}}, plus the per-view overlay that says it in another view’s language. The platform creates the default template of each kind; it can be edited, not deleted.Blog posts
The articles of a website’s blog — headline, slug, body, byline and dates, and the categories and tags they are filed under — each with a per-view overlay of its own. A post is live once it is active and its
publish_time has passed.Blog categories
The sections of the blog. Categories form a tree reordered with
:move, :set_posts replaces the posts of one category in a single call, and each category has a per-view overlay of its own.Blog tags
Flat labels a post can carry — the cross-cutting counterpart of a category — each with a per-view overlay of its name and URL segment.
Blog authors
The people posts are credited to — a name, a slug, a portrait and a short biography — each with a per-view overlay of what is translatable.
Catalog products
The products of a website’s catalog, managed in the admin: name, prices and pictures, the categories they are filed in and the values of their attributes, with a per-view overlay of their texts. The catalog is a module of the website: while it is off, every route of it answers
MODULE_DISABLED.Catalog variants
The sellable combinations of one product’s options — a colour and a size — each with an SKU of its own and prices and pictures of its own or else the product’s. Every product has at least one, and
:batch_create, :batch_update and :batch_delete write many at once, all or none.Catalog categories
The tree of categories products are filed in, reshaped with
:move, with a per-view overlay of each category’s name, text and URL segment.Catalog attributes
The attributes products are described by — typed, localized, put in order with
:move. Which products have one is decided by the attribute sets that list it.Catalog attribute sets
The attribute sets that say which attributes a product has and in which sections of its form. Every product names one, and the website’s first is created when the catalog is turned on.
Catalog currencies
The currencies a website sells in besides its base one: each with its rate to the base, whether a product without a price of its own in it is converted or has none there, and how a converted price is rounded. Products and variants are priced in it apart by entries of their
prices.Catalog markets
The commercial units of a website: each with the currency it sells in and the countries it sells to.
Catalog tax classes
The exceptions from a country’s standard tax rate — «Reduced rate», «Books», «Tax free». What a class costs in a country is in that country’s tax rate.
Catalog tax rates
The tax of each country: the name the buyer reads, the standard rate and the rates of the tax classes that differ from it. A country without one is not taxed.
Catalog shipping classes
What sets products apart for a shipping rate — «Bulky», «Fragile», «Frozen». A product names one; a shipping table prices each class through its own rates.
Catalog price lists
Prices apart from the products’ own — for some customer groups, some views, one currency or every one, over a period. Where several active lists apply, the highest
priority wins; a website prices at most 20 customer groups apart.Catalog price list entries
What a product — every variant of it — or one variant costs under a price list from a quantity on: an amount in the list’s currency or a percentage off the regular price.
:batch_create writes up to 1000 at once, all or none.Catalog price rules
Discounts on every product a condition picks — a filter over the products’ categories, set and attribute values, written as their List takes it — for some customer groups and views, over a period: a percentage or an amount off, applied by
priority. The products a rule is on say so in their price_rule_ids.Orders
The orders placed on the website: what was bought at what price, whom it goes to and where, and how it is paid. The checkout places them on the engine API; here the shop reads them and records what happens to them —
:mark_paid, their fulfillments and refunds, :cancel, which gives the units back to the stock — and their statuses follow from those facts.Draft orders
The orders the shop puts together itself — taken by phone, by email, at the counter — before they are placed: a view, lines, the customer or a guest, the addresses, the ways to ship and to pay. Every write prices the draft as the checkout prices a cart and says what still keeps it from being placed (
completion_issues).Draft order lines
The lines of a draft order, in the order they were added: one variant each, how many of it, its price for the draft's customer, its product as the draft's view shows it and the units in stock. Every write of a line prices the draft again.
Fulfillments
What the shop sent of an order: units of its lines shipped together, each fulfillment with the tracking of its parcel. An order is sent in one or in several; a fulfillment is marked delivered, or cancelled to send its units again.
Refunds
Money of an order given back to the customer: for units not sent, which it takes off the order and back to the stock, for the units of a return, or as money off a line's price. Worked out line by line to the minor unit of the currency — ask with
validate_only first — and marked paid once the money went.Returns
Goods of an order the customer sends back: only units sent, each once at a time. The shop records a return, takes its units in as they arrive — back to the stock — gives money back for them with a refund naming it, and the return closes once every unit is received and refunded.
Payment sessions
The customer's attempts to pay an order online, each a page at the payment provider of its way to pay for what was outstanding then, open until the order's
payment_due_time. Read only: the customer opens them at the checkout or from their account.Disputes
The chargebacks a customer's bank opened against a payment of an order, as the payment provider reports them: the amount, the provider's reason, when the evidence is due and how the dispute ended. Read only: the shop answers a dispute at the provider's dashboard, and one lost takes its amount back from the order as a
CHARGEBACK.Carts
The carts the visitors of the website are filling, a guest's or a signed-in customer's, read as they are: their status, their totals and the order a checked-out one became. Read only: a cart is its visitor's to change.
Cart lines
The lines of a cart, a page at a time and the newest first: one variant each, how many of it, and its price as the cart last resolved it.
Inventory levels
How many units of each variant of the catalog the website has in stock, one level per variant and named by it. Placing an order takes its units off and refuses a quantity the stock does not cover;
:adjust moves the stock by a difference in one atomic write. A variant without a level is sold in any quantity.Payment providers
The providers the website's customers can pay its orders online through, and the website's own account at each:
:connect with its credentials — checked with the provider, kept sealed and never answered back — :verify and :disconnect. A connected provider's ways to pay are offered where checkout.payment_methods names them.Shipping tables
The ways to ship the shop writes down itself, each priced by its rates — by where the cart goes, its subtotal, weight and quantity and its products' shipping classes. A table is offered in its one currency, on its views and to its customer groups, while it is active.
Shipping table rates
The rates of a shipping table: where a cart goes — a country, a region, a city, a postal code or a range of them — its bounds of subtotal, weight and quantity, the shipping class of its products, and the price the table charges then.
:batch_create imports up to 1000 at once, all or none; :purge deletes them all.Invoices
The fiscal documents of the orders: an invoice of a sale, a credit note that corrects one. Where
invoicing.mode is EXTERNAL, an ERP or the issuer of a Brazilian NF-e issues each document itself and attaches it to its order here — number, series, access key, date, amounts and links to its files; read the orders that changed by update_time to know what to issue.Wishlists
The lists of products the visitors of the website saved with the heart of the storefront — a guest's one list, a signed-in customer's default list and named ones — read as they are.
:top_products reports the products saved most, by how many visitors keep them. Read only: a list is its visitor's to change.Wishlist items
The products of a list, a page at a time and the most recently saved first, each with its name and SKU as the catalog has them now.
Customers
The visitors who have an account on a website. A customer belongs to one website, and signs in to it on the site itself; what is managed here is who they are, which groups they are in, and whether they may sign in at all.
Customer addresses
A customer's address book: up to 100 addresses, each kept once, and which of them their orders go to and are billed to unless they choose another.
Address formats
How an address is written in each country: the parts it uses and requires, its regions and its postal code — what an address form is built from. The platform's catalogue, read one country at a time.
Customer groups
The groups customers are segmented into — by hand in a
MANUAL group, by a rule in a DYNAMIC one. A group decides who a page is shown to, and whose version of a page a customer reads.Customer attributes
The fields a website adds to its customers — typed, localized, required or not, asked on the registration form or not — put in order with
:move.Customer attribute groups
The sections the admin’s customer form gathers customer attributes under, put in order with
:move. The registration form on the site lists its fields flat and ignores them.Customer sign-in providers
Google, Apple and Facebook, which customers sign in to the website through, and the shop's own app at each:
:connect with its keys — checked with the provider, the secret ones kept sealed and never answered back — :verify and :disconnect. Register the website's redirect_uris in the app first.Editorial plan
The publication rules of one website: on which days and at what times posts go out, and how far ahead the calendar is filled. A singleton that always exists;
:refill fills the calendar on demand.Editorial topics
The backlog of what a website means to write about. A topic outlives the article it becomes, one turned down stays turned down, and
:accept takes in an idea the desk’s AI proposed.Editorial slots
The rolling calendar that turns the plan and the backlog into dated drafts: a slot becomes a post with
:materialize and goes live with :publish, and :skip drops a date without giving it up.Editorial AI policy
The desk writing its own drafts: the policy that names which of the account’s AI agents write, review and translate, and what an article that passed review may do on its own. A singleton that always exists.
Editorial generations
One run of the desk’s pipeline for one slot, with its steps, the AI executions behind them, a verdict and a cost. A run never overwrites a field a person edited, and publishes nothing its verdict did not pass.
Media files
The image library: multipart upload, and the read that serves a stored file transformed on the fly —
w, h, crop, q and fmt are the whole vocabulary, and it is the same URL a rendered site fetches. :usages says where a file is used, and :unused lists the files nothing uses.Media folders
The folders of the media library — a tree reshaped with
:move. A file’s folder is the folder_id on the file itself.Image generations
Pictures an AI model draws straight into the library: one run per picture, drawn in the background — create it, read it until it ends, and its
media_id is the new file. Pictures of the library to work from make it an edit; :cancel stops one the provider has not drawn yet.Analytics metrics
What a website’s visitors did, as metrics rather than as events: requests, page views, unique visitors and who is on the site right now.
:query reads one metric over a period in the site’s own time zone, as a total and as a series; anything counted with a probabilistic sketch says so with approximate. Collection happens on the site’s own domain and is not part of this API.Dashboard
The widget grid a tenant arranges for one website — what is on it, where, and how each tile is configured — plus
dashboard_widget_types, the platform’s catalogue of tiles it can hold. The dashboard is a singleton that always exists: read it before anything was ever saved and it answers with the default layout, and :reset puts that layout back.AI connections
The connection that pays for an account’s AI work: its own provider key, or the platform’s, paid from the AI balance. Every account has the platform’s from the start, and
:verify asks the provider whether a key still works.AI agents
The agent that says by which rules an account’s AI work runs — which instruction, which model, how hard to try and how long to wait. Every change is a new version, and the settings of each version stay readable.
AI instructions
The versioned instruction an agent renders: a prompt template whose text lives in immutable versions. Writing the next version and pointing
active_version at it is how the text changes.AI executions
The execution — one persistent run, with its model, its attempts, its tokens and its output. Runs are carried out in the background;
:cancel stops one and :retry runs it again.AI models
The platform’s own read-only catalogue of the models an agent can run on, with what each one can do.
AI system agents
The platform’s own read-only catalogue of ready-made agents to build on: read one to see its instruction and settings, and copy it into an account to get an agent of your own.
AI billing
What an account’s AI work may cost: the balance it is spent from and the limits it is spent against. Runs on a key of the account’s own are neither charged nor limited.
AI transactions
The immutable ledger of every charge to an account’s AI balance and every change the platform made to it. A correction is a row of its own.
AI usage records
The usage record of every attempt of an account’s AI runs, in tokens — kept for a key of the account’s own too, where nothing is charged.
Assistant settings
Whether an account’s members may talk to its AI assistant, on which model, paid by whom, and whether it may read the shop’s customers. A singleton that always exists, off until switched on.
Assistant conversations
A member’s conversations with the assistant — each one its author’s alone. Deleting one deletes its turns.
Assistant turns
One question and its answer: every step the assistant took, the tools it read the account with, and the words, written as they arrive.
:stream follows a turn as it happens; :cancel stops it.Assistant change sets
What the assistant changed, or asks to change, as one set: applied at once, or waiting for its user’s
:apply or :reject; :revert takes it back. A large set is applied in the background: :stream follows it, :cancel stops it. Read across conversations, the account’s journal of the assistant’s changes.Assistant change set items
The calls of a change set in the order it applies them, each with what was there before and what it left.
Security Schemes
bearerAuth
§19:
Authorization: Bearer <jwt>. No API keys, no tokens in query strings, no session cookies.http